/* SRC: classes/exception.php line 123 */ String c_Exception::t_gettraceasstring() { INSTANCE_METHOD_INJECTION_BUILTIN(Exception, Exception::getTraceAsString); int64 v_i = 0; String v_s; Variant v_frame; v_i = 0LL; v_s = NAMSTR(s_sys_ss00000000, ""); { LOOP_COUNTER(1); Variant map2 = t_gettrace(); { StringBuffer tmp_sbuf_v_s(512); for (ArrayIter iter3 = map2.begin(s_class_name); !iter3.end(); iter3.next()) { LOOP_COUNTER_CHECK(1); iter3.second(v_frame); { if (!(x_is_array(v_frame))) { continue; } { tmp_sbuf_v_s.appendWithTaint("#", 1); tmp_sbuf_v_s.appendWithTaint(toString(v_i)); tmp_sbuf_v_s.appendWithTaint(" ", 1); tmp_sbuf_v_s.appendWithTaint(toString((isset(v_frame, NAMSTR(s_sys_ss8ce7db5b, "file"), true) ? ((Variant)(v_frame.rvalAt(NAMSTR(s_sys_ss8ce7db5b, "file"), AccessFlags::Error_Key))) : ((Variant)(NAMSTR(s_sys_ss00000000, "")))))); tmp_sbuf_v_s.appendWithTaint("(", 1); tmp_sbuf_v_s.appendWithTaint(toString((isset(v_frame, NAMSTR(s_sys_ssddf8728c, "line"), true) ? ((Variant)(v_frame.rvalAt(NAMSTR(s_sys_ssddf8728c, "line"), AccessFlags::Error_Key))) : ((Variant)(NAMSTR(s_sys_ss00000000, "")))))); tmp_sbuf_v_s.appendWithTaint("): ", 3); Variant tmp0; if (isset(v_frame, NAMSTR(s_sys_ssc82dbd12, "class"), true)) { const String &tmp1((toString(v_frame.rvalAt(NAMSTR(s_sys_ssc82dbd12, "class"), AccessFlags::Error_Key)))); const String &tmp2((toString(v_frame.rvalAt(NAMSTR(s_sys_ss724a760a, "type"), AccessFlags::Error_Key)))); tmp0 = (concat(tmp1, tmp2)); } else { tmp0 = (NAMSTR(s_sys_ss00000000, "")); } tmp_sbuf_v_s.appendWithTaint(toString(tmp0)); tmp_sbuf_v_s.appendWithTaint(toString(v_frame.rvalAt(NAMSTR(s_sys_ss52403931, "function"), AccessFlags::Error_Key))); tmp_sbuf_v_s.appendWithTaint("()\n", 3); ; } v_i++; } } concat_assign(v_s, tmp_sbuf_v_s.detachWithTaint()); } } concat_assign(v_s, concat3(NAMSTR(s_sys_ss8dc355aa, "#"), toString(v_i), NAMSTR(s_sys_ssfab32402, " {main}"))); return v_s; }
/* SRC: classes/soapfault.php line 12 */ void c_SoapFault::t___construct(Variant v_code, Variant v_message, Variant v_actor // = null , Variant v_detail // = null , Variant v_name // = null , Variant v_header // = null ) { INSTANCE_METHOD_INJECTION_BUILTIN(SoapFault, SoapFault::__construct); Variant v_fault_ns; Variant v_fault_code; int64 v_SOAP_1_1 = 0; int64 v_SOAP_1_2 = 0; String v_SOAP_1_1_ENV_NAMESPACE; String v_SOAP_1_2_ENV_NAMESPACE; int64 v_soap_version = 0; ObjectData *obj_tmp UNUSED; setNull(v_fault_ns); setNull(v_fault_code); if (x_is_string(v_code)) { { v_fault_code.assignVal(v_code); } } else { bool tmp0; { bool tmp1 = (x_is_array(v_code)); if (tmp1) { int64 tmp2((x_count(v_code))); tmp1 = (equal(tmp2, 2L)); } tmp0 = (tmp1); } if (tmp0) { { { const Variant &tmp0((x_array_values(v_code))); v_code.assignVal(tmp0); } { const Variant &tmp0((v_code.rvalAt(0L, AccessFlags::Error))); v_fault_ns.assignVal(tmp0); } { const Variant &tmp0((v_code.rvalAt(1L, AccessFlags::Error))); v_fault_code.assignVal(tmp0); } if ((!(x_is_string(v_fault_ns)) || !(x_is_string(v_fault_code)))) { { x_hphp_throw_fatal_error(NAMSTR(s_sys_ss5db5b000, "Invalid fault code")); return; } } } } else { { x_hphp_throw_fatal_error(NAMSTR(s_sys_ss5db5b000, "Invalid fault code")); return; } } } m_faultcodens.assignVal(v_fault_ns); m_faultcode.assignVal(v_fault_code); if (empty(m_faultcode)) { { x_hphp_throw_fatal_error(NAMSTR(s_sys_ss5db5b000, "Invalid fault code")); return; } } { Variant tmp0((m_message.assignVal(v_message))); m_faultstring.assignVal(tmp0); } m_faultactor.assignVal(v_actor); m_detail.assignVal(v_detail); m__name.assignVal(v_name); m_headerfault.assignVal(v_header); v_SOAP_1_1 = 1L; v_SOAP_1_2 = 2L; v_SOAP_1_1_ENV_NAMESPACE = NAMSTR(s_sys_ss0842226e, "http://schemas.xmlsoap.org/soap/envelope/"); v_SOAP_1_2_ENV_NAMESPACE = NAMSTR(s_sys_ss2cc85e9b, "http://www.w3.org/2003/05/soap-envelope"); { int64 tmp0((x__soap_active_version())); v_soap_version = tmp0; } if (empty(m_faultcodens)) { { if (equal(v_soap_version, v_SOAP_1_1)) { { if ((((equal(m_faultcode, NAMSTR(s_sys_ss129b7287, "Client")) || equal(m_faultcode, NAMSTR(s_sys_ss35d432f4, "Server"))) || equal(m_faultcode, NAMSTR(s_sys_ss4a69d66a, "VersionMismatch"))) || equal(m_faultcode, NAMSTR(s_sys_ss65decfcb, "MustUnderstand")))) { { m_faultcodens = v_SOAP_1_1_ENV_NAMESPACE; } } } } else if (equal(v_soap_version, v_SOAP_1_2)) { { if (equal(m_faultcode, NAMSTR(s_sys_ss129b7287, "Client"))) { { m_faultcode = NAMSTR(s_sys_ss58532c4b, "Sender"); m_faultcodens = v_SOAP_1_2_ENV_NAMESPACE; } } else if (equal(m_faultcode, NAMSTR(s_sys_ss35d432f4, "Server"))) { { m_faultcode = NAMSTR(s_sys_ss722b78d7, "Receiver"); m_faultcodens = v_SOAP_1_2_ENV_NAMESPACE; } } else if (((equal(m_faultcode, NAMSTR(s_sys_ss4a69d66a, "VersionMismatch")) || equal(m_faultcode, NAMSTR(s_sys_ss65decfcb, "MustUnderstand"))) || equal(m_faultcode, NAMSTR(s_sys_ss6d34f1cc, "DataEncodingUnknown")))) { { m_faultcodens = v_SOAP_1_2_ENV_NAMESPACE; } } } } } } }