3v4l.org

run code in 300+ PHP versions simultaneously
<?php # RightNow Cron Job $url = "http://support-upgrade.infoblox.com/cgi-bin/infoblox.cfg/services/soap?wsdl=typed"; $client = new SoapClient($url, array('classmap' => array('Incident' => 'Incident', 'PersonName' => 'PersonName', 'GenericField' => 'GenericField', 'DataValue' => 'DataValue', 'ObjectType' => 'ObjectType', 'UpdateProcessingOptions' => 'UpdateProcessingOptions', 'BatchRequestItem' => 'BatchRequestItem', 'UpdateMsg' => 'UpdateMsg', 'ID'=>'ID'),"trace" => 1)); $headers = array(); class PersonName { var $First; var $Last; } class RunAnalyticsReportMsg { var $AnalyticsReport; var $Limit; var $Start; var $Delimiter; var $ReturnRawResult; var $DisableMTOM; } class AnalyticsReport { var $ID; } class UpdateMsg { var $RNObjects; var $ProcessingOptions; } class BatchRequestItem { var $UpdateMsg; var $CommitAfter; var $PreserveChainID; } class ID { var $ID; } class RNObject { private $id; function RNObject($id) { $this->id=$id; } } class Incident { var $ID; } class Contact { var $ID; var $Name; } class UpdateProcessingOptions { var $SuppressExternalEvents; var $SuppressRules; } class clsWSSEAuth { private $Username; private $Password; function __construct($username, $password) { $this->Username=$username; $this->Password=$password; } } class clsWSSEToken { private $UsernameToken; function __construct ($innerVal){ $this->UsernameToken = $innerVal; } } class App { private $AppID; function __construct($app) { $this->AppID = $app; } } class RNObjectType { var $Namespace; } class DataValue { var $StringValue; var $ObjectValue; var $DateTimeValue; } class GenericObject { var $ObjectType; var $GenericFields; } class GenericField { var $DataValue; var $dataType; var $name; } date_default_timezone_set("America/Chicago"); print("time = ". date("Y-m-d H:i:s") ."\n\n"); #$logfile = './runCXAutoMessagingLog.log'; $logfile = '/var/www/html/cron-jobs/RightNow/runCXAutoMessagingLog.log'; if(filesize($logfile)>6000) unlink($logfile); if (file_exists($logfile)) { $fh = fopen($logfile, "a"); fputs($fh, sprintf("[%s]Automated processing started\n", date("Y-m-d H:i:s"))); fclose($fh); } else { $fh = fopen($logfile, "a"); if($fh==false) die("unable to create file"); fputs($fh, sprintf("[%s]Automated processing started\n", date("Y-m-d H:i:s"))); fclose($fh); } require_once 'config.default.php'; //Check with your provider which security name-space they are using. $strWSSENS = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"; $objSoapVarUser = new SoapVar($username, XSD_STRING, NULL, $strWSSENS, NULL, $strWSSENS); $objSoapVarPass = new SoapVar($password, XSD_STRING, NULL, $strWSSENS, NULL, $strWSSENS); $objWSSEAuth = new clsWSSEAuth($objSoapVarUser, $objSoapVarPass); $objSoapVarWSSEAuth = new SoapVar($objWSSEAuth, SOAP_ENC_OBJECT, NULL, $strWSSENS, 'UsernameToken', $strWSSENS); $objWSSEToken = new clsWSSEToken($objSoapVarWSSEAuth); $objSoapVarWSSEToken = new SoapVar($objWSSEToken, SOAP_ENC_OBJECT, NULL, $strWSSENS, 'UsernameToken', $strWSSENS); $objSoapVarHeaderVal=new SoapVar($objSoapVarWSSEToken, SOAP_ENC_OBJECT, NULL, $strWSSENS, 'Security', $strWSSENS); $objSoapVarWSSEHeader = new SoapHeader($strWSSENS, 'Security', $objSoapVarHeaderVal,true, 'http://abce.com'); $objSoapVarAppID = new SoapVar('testcall', XSD_STRING, NULL, $strWSSENS, NULL, $strWSSENS); $paramApp = new App($objSoapVarAppID); try { $objSoapVarClientInfoHeader = new SoapHeader("urn:messages.ws.rightnow.com/v1_3", 'ClientInfoHeader',$paramApp,false); $client->__setSoapHeaders(array($objSoapVarClientInfoHeader,$objSoapVarWSSEHeader)); //report ids processReminders(103247,'notify_rma_21day'); //dev 101381 test 101925 processReminders(103248,'notify_rma_28day'); //dev 101382 test 101926 processReminders(103249,'notify_rma_35day'); //dev 101383 test 101927 processReminders(103250,'queue_rma_followup'); //dev 101386 test processClosedSurveys(103246, date('c')); //dev 101384 test 101924 } catch (SoapFault $sf) { //this code was not reached echo $sf->getMessage(); echo $client->__getLastRequest(); echo $client->__getLastResponse(); } catch (Exception $e) { echo $client->__getLastRequest(); echo $client->__getLastResponse(); echo $e->getMessage(); } function processClosedSurveys($rpt_id, $timestamp) { global $client,$logfile; $rptID = array("id"=>$rpt_id); $rpt = new AnalyticsReport(); $rpt->ID = $rptID; $rpt_msg = new RunAnalyticsReportMsg(); $rpt_msg->AnalyticsReport = $rpt; $result = $client->RunAnalyticsReport($rpt_msg); echo $client->__getLastRequest(); print_r($result); //for the batch $batchArr = array(); if($result && $result->CSVTableSet->CSVTables->CSVTable->Rows) { //need in array form, even when one result $resultArr = array(); if(isset($result->CSVTableSet->CSVTables->CSVTable->Rows->Row) && is_array($result->CSVTableSet->CSVTables->CSVTable->Rows->Row)) { for($i=0; $i<count($result->CSVTableSet->CSVTables->CSVTable->Rows->Row); $i++) { $resultArr[] = $result->CSVTableSet->CSVTables->CSVTable->Rows->Row[$i]; } } else if(isset($result->CSVTableSet->CSVTables->CSVTable->Rows->Row)) { $resultArr[] = $result->CSVTableSet->CSVTables->CSVTable->Rows->Row; } foreach($resultArr as $row) { $incident = new Incident(); $incident->ID = array("id"=>$row); $incident->CustomFields = setCustomField("date_survey_sent", $timestamp, "DATETIME"); $upo = new UpdateProcessingOptions(); $upo->SuppressExternalEvents = true; $upo->SuppressRules = false; $updmsg = new UpdateMsg(); $updmsg->RNObjects = $incident; $updmsg->ProcessingOptions = $upo; $bri = new BatchRequestItem(); $bri->UpdateMsg = $updmsg; $bri->CommitAfter = "false"; $batchArr[] = $bri; //$result = $client->update($updmsg); } // end foreach if(count($batchArr) > 0) { $batchChunks = array_chunk($batchArr,90); foreach($batchChunks as $batch){ $result = $client->Batch($batch); print_r($result); } } } //end if result if (file_exists($logfile)) { $fh = fopen($logfile, "a"); fputs($fh, sprintf("[%s]Process Send Surveys:count=%d\n", date("Y-m-d H:i:s"),count($batchArr))); fclose($fh); } } function processReminders($rpt_id, $trigger_message) { global $client,$logfile; //identify rma returns at 21 days $rptID = array("id"=>$rpt_id); $rpt = new AnalyticsReport(); $rpt->ID = $rptID; $rpt_msg = new RunAnalyticsReportMsg(); $rpt_msg->AnalyticsReport = $rpt; $result = $client->RunAnalyticsReport($rpt_msg); echo $client->__getLastRequest(); print_r($result); //for the batch $batchArr = array(); if($result && $result->CSVTableSet->CSVTables->CSVTable->Rows) { //need in array form, even when one result $resultArr = array(); if(isset($result->CSVTableSet->CSVTables->CSVTable->Rows->Row) && is_array($result->CSVTableSet->CSVTables->CSVTable->Rows->Row)) { for($i=0; $i<count($result->CSVTableSet->CSVTables->CSVTable->Rows->Row); $i++) { $resultArr[] = $result->CSVTableSet->CSVTables->CSVTable->Rows->Row[$i]; } } else if(isset($result->CSVTableSet->CSVTables->CSVTable->Rows->Row)) { $resultArr[] = $result->CSVTableSet->CSVTables->CSVTable->Rows->Row; } foreach($resultArr as $row) { $incident = new Incident(); $incident->ID = array("id"=>$row); $incident->CustomFields = setCustomField("trigger_msg", $trigger_message, "STRING"); $upo = new UpdateProcessingOptions(); $upo->SuppressExternalEvents = true; $upo->SuppressRules = false; $updmsg = new UpdateMsg(); $updmsg->RNObjects = $incident; $updmsg->ProcessingOptions = $upo; $bri = new BatchRequestItem(); $bri->UpdateMsg = $updmsg; $bri->CommitAfter = "false"; $batchArr[] = $bri; //$result = $client->update($updmsg); } // end foreach if(count($batchArr) > 0) { $batchChunks = array_chunk($batchArr,90); foreach($batchChunks as $batch){ $result = $client->Batch($batch); } } } //end if result if (file_exists($logfile)) { $fh = fopen($logfile, "a"); fputs($fh, sprintf("[%s]Process Reminders %s:count=%d\n", date("Y-m-d H:i:s"),$trigger_message ,count($batchArr))); fclose($fh); } } function setCustomField($cf_name, $cf_value, $cf_type) { // //set custom field - admin_last_msg // $objtype = new RNObjectType(); $objtype->TypeName = "IncidentCustomFields"; $genobj = new GenericObject(); $genobj->ObjectType = $objtype; $objtype2 = new RNObjectType(); $objtype2->TypeName = "IncidentCustomFields"; $genobj2 = new GenericObject(); $genobj2->ObjectType = $objtype2; $dv_value = new DataValue(); if($cf_type == 'DATETIME') $dv_value->DateTimeValue = $cf_value; else $dv_value->StringValue = $cf_value; $genfld_cfvalue = new GenericField(); $genfld_cfvalue->name = $cf_name; $genfld_cfvalue->dataType = $cf_type; $genfld_cfvalue->DataValue = $dv_value; $genobj2->GenericFields = $genfld_cfvalue; $dv_container = new DataValue(); $dv_container->ObjectValue = $genobj2; $genfld_cf = new GenericField(); $genfld_cf->name = 'c'; $genfld_cf->dataType = "OBJECT"; $genfld_cf->DataValue = $dv_container; $genobj->GenericFields = $genfld_cf; return $genobj; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 22, Position 2 = 25
Branch analysis from position: 22
2 jumps found. (Code = 43) Position 1 = 29, Position 2 = 49
Branch analysis from position: 29
1 jumps found. (Code = 42) Position 1 = 71
Branch analysis from position: 71
1 jumps found. (Code = 42) Position 1 = 211
Branch analysis from position: 211
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 49
2 jumps found. (Code = 43) Position 1 = 56, Position 2 = 57
Branch analysis from position: 56
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 57
1 jumps found. (Code = 42) Position 1 = 211
Branch analysis from position: 211
Branch analysis from position: 25
Found catch point at position: 190
Branch analysis from position: 190
2 jumps found. (Code = 107) Position 1 = 191, Position 2 = 201
Branch analysis from position: 191
1 jumps found. (Code = 42) Position 1 = 211
Branch analysis from position: 211
Branch analysis from position: 201
2 jumps found. (Code = 107) Position 1 = 202, Position 2 = -2
Branch analysis from position: 202
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 201
Branch analysis from position: 201
filename:       /in/Kup3t
function name:  (null)
number of ops:  212
compiled vars:  !0 = $url, !1 = $client, !2 = $headers, !3 = $logfile, !4 = $fh, !5 = $strWSSENS, !6 = $objSoapVarUser, !7 = $username, !8 = $objSoapVarPass, !9 = $password, !10 = $objWSSEAuth, !11 = $objSoapVarWSSEAuth, !12 = $objWSSEToken, !13 = $objSoapVarWSSEToken, !14 = $objSoapVarHeaderVal, !15 = $objSoapVarWSSEHeader, !16 = $objSoapVarAppID, !17 = $paramApp, !18 = $objSoapVarClientInfoHeader, !19 = $sf, !20 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2Fsupport-upgrade.infoblox.com%2Fcgi-bin%2Finfoblox.cfg%2Fservices%2Fsoap%3Fwsdl%3Dtyped'
    9     1        NEW                                              $22     'SoapClient'
          2        SEND_VAR_EX                                              !0
          3        SEND_VAL_EX                                              <array>
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !1, $22
   27     6        ASSIGN                                                   !2, <array>
  239     7        INIT_FCALL                                               'date_default_timezone_set'
          8        SEND_VAL                                                 'America%2FChicago'
          9        DO_ICALL                                                 
  241    10        INIT_FCALL                                               'date'
         11        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
         12        DO_ICALL                                         $27     
         13        CONCAT                                           ~28     'time+%3D+', $27
         14        CONCAT                                           ~29     ~28, '%0A%0A'
         15        ECHO                                                     ~29
  247    16        ASSIGN                                                   !3, '%2Fvar%2Fwww%2Fhtml%2Fcron-jobs%2FRightNow%2FrunCXAutoMessagingLog.log'
  251    17        INIT_FCALL                                               'filesize'
         18        SEND_VAR                                                 !3
         19        DO_ICALL                                         $31     
         20        IS_SMALLER                                               6000, $31
         21      > JMPZ                                                     ~32, ->25
  253    22    >   INIT_FCALL                                               'unlink'
         23        SEND_VAR                                                 !3
         24        DO_ICALL                                                 
  257    25    >   INIT_FCALL                                               'file_exists'
         26        SEND_VAR                                                 !3
         27        DO_ICALL                                         $34     
         28      > JMPZ                                                     $34, ->49
  259    29    >   INIT_FCALL                                               'fopen'
         30        SEND_VAR                                                 !3
         31        SEND_VAL                                                 'a'
         32        DO_ICALL                                         $35     
         33        ASSIGN                                                   !4, $35
  261    34        INIT_FCALL                                               'fputs'
         35        SEND_VAR                                                 !4
         36        INIT_FCALL                                               'sprintf'
         37        SEND_VAL                                                 '%5B%25s%5DAutomated+processing+started%0A'
         38        INIT_FCALL                                               'date'
         39        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
         40        DO_ICALL                                         $37     
         41        SEND_VAR                                                 $37
         42        DO_ICALL                                         $38     
         43        SEND_VAR                                                 $38
         44        DO_ICALL                                                 
  263    45        INIT_FCALL                                               'fclose'
         46        SEND_VAR                                                 !4
         47        DO_ICALL                                                 
         48      > JMP                                                      ->71
  271    49    >   INIT_FCALL                                               'fopen'
         50        SEND_VAR                                                 !3
         51        SEND_VAL                                                 'a'
         52        DO_ICALL                                         $41     
         53        ASSIGN                                                   !4, $41
  273    54        BOOL_NOT                                         ~43     !4
         55      > JMPZ                                                     ~43, ->57
  275    56    > > EXIT                                                     'unable+to+create+file'
  277    57    >   INIT_FCALL                                               'fputs'
         58        SEND_VAR                                                 !4
         59        INIT_FCALL                                               'sprintf'
         60        SEND_VAL                                                 '%5B%25s%5DAutomated+processing+started%0A'
         61        INIT_FCALL                                               'date'
         62        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
         63        DO_ICALL                                         $44     
         64        SEND_VAR                                                 $44
         65        DO_ICALL                                         $45     
         66        SEND_VAR                                                 $45
         67        DO_ICALL                                                 
  279    68        INIT_FCALL                                               'fclose'
         69        SEND_VAR                                                 !4
         70        DO_ICALL                                                 
  289    71    >   INCLUDE_OR_EVAL                                          'config.default.php', REQUIRE_ONCE
  297    72        ASSIGN                                                   !5, 'http%3A%2F%2Fdocs.oasis-open.org%2Fwss%2F2004%2F01%2Foasis-200401-wss-wssecurity-secext-1.0.xsd'
  301    73        NEW                                              $50     'SoapVar'
         74        SEND_VAR_EX                                              !7
         75        FETCH_CONSTANT                                   ~51     'XSD_STRING'
         76        SEND_VAL_EX                                              ~51
         77        SEND_VAL_EX                                              null
         78        SEND_VAR_EX                                              !5
         79        SEND_VAL_EX                                              null
         80        SEND_VAR_EX                                              !5
         81        DO_FCALL                                      0          
         82        ASSIGN                                                   !6, $50
  303    83        NEW                                              $54     'SoapVar'
         84        SEND_VAR_EX                                              !9
         85        FETCH_CONSTANT                                   ~55     'XSD_STRING'
         86        SEND_VAL_EX                                              ~55
         87        SEND_VAL_EX                                              null
         88        SEND_VAR_EX                                              !5
         89        SEND_VAL_EX                                              null
         90        SEND_VAR_EX                                              !5
         91        DO_FCALL                                      0          
         92        ASSIGN                                                   !8, $54
  307    93        NEW                                              $58     'clsWSSEAuth'
         94        SEND_VAR_EX                                              !6
         95        SEND_VAR_EX                                              !8
         96        DO_FCALL                                      0          
         97        ASSIGN                                                   !10, $58
  311    98        NEW                                              $61     'SoapVar'
         99        SEND_VAR_EX                                              !10
        100        FETCH_CONSTANT                                   ~62     'SOAP_ENC_OBJECT'
        101        SEND_VAL_EX                                              ~62
        102        SEND_VAL_EX                                              null
        103        SEND_VAR_EX                                              !5
        104        SEND_VAL_EX                                              'UsernameToken'
        105        SEND_VAR_EX                                              !5
        106        DO_FCALL                                      0          
        107        ASSIGN                                                   !11, $61
  315   108        NEW                                              $65     'clsWSSEToken'
        109        SEND_VAR_EX                                              !11
        110        DO_FCALL                                      0          
        111        ASSIGN                                                   !12, $65
  319   112        NEW                                              $68     'SoapVar'
        113        SEND_VAR_EX                                              !12
        114        FETCH_CONSTANT                                   ~69     'SOAP_ENC_OBJECT'
        115        SEND_VAL_EX                                              ~69
        116        SEND_VAL_EX                                              null
        117        SEND_VAR_EX                                              !5
        118        SEND_VAL_EX                                              'UsernameToken'
        119        SEND_VAR_EX                                              !5
        120        DO_FCALL                                      0          
        121        ASSIGN                                                   !13, $68
  323   122        NEW                                              $72     'SoapVar'
        123        SEND_VAR_EX                                              !13
        124        FETCH_CONSTANT                                   ~73     'SOAP_ENC_OBJECT'
        125        SEND_VAL_EX                                              ~73
        126        SEND_VAL_EX                                              null
        127        SEND_VAR_EX                                              !5
        128        SEND_VAL_EX                                              'Security'
        129        SEND_VAR_EX                                              !5
        130        DO_FCALL                                      0          
        131        ASSIGN                                                   !14, $72
  327   132        NEW                                              $76     'SoapHeader'
        133        SEND_VAR_EX                                              !5
        134        SEND_VAL_EX                                              'Security'
        135        SEND_VAR_EX                                              !14
        136        SEND_VAL_EX                                              <true>
        137        SEND_VAL_EX                                              'http%3A%2F%2Fabce.com'
        138        DO_FCALL                                      0          
        139        ASSIGN                                                   !15, $76
  331   140        NEW                                              $79     'SoapVar'
        141        SEND_VAL_EX                                              'testcall'
        142        FETCH_CONSTANT                                   ~80     'XSD_STRING'
        143        SEND_VAL_EX                                              ~80
        144        SEND_VAL_EX                                              null
        145        SEND_VAR_EX                                              !5
        146        SEND_VAL_EX                                              null
        147        SEND_VAR_EX                                              !5
        148        DO_FCALL                                      0          
        149        ASSIGN                                                   !16, $79
  335   150        NEW                                              $83     'App'
        151        SEND_VAR_EX                                              !16
        152        DO_FCALL                                      0          
        153        ASSIGN                                                   !17, $83
  345   154        NEW                                              $86     'SoapHeader'
        155        SEND_VAL_EX                                              'urn%3Amessages.ws.rightnow.com%2Fv1_3'
        156        SEND_VAL_EX                                              'ClientInfoHeader'
        157        SEND_VAR_EX                                              !17
        158        SEND_VAL_EX                                              <false>
        159        DO_FCALL                                      0          
        160        ASSIGN                                                   !18, $86
  349   161        INIT_METHOD_CALL                                         !1, '__setSoapHeaders'
        162        INIT_ARRAY                                       ~89     !18
        163        ADD_ARRAY_ELEMENT                                ~89     !15
        164        SEND_VAL_EX                                              ~89
        165        DO_FCALL                                      0          
  355   166        INIT_FCALL_BY_NAME                                       'processReminders'
        167        SEND_VAL_EX                                              103247
        168        SEND_VAL_EX                                              'notify_rma_21day'
        169        DO_FCALL                                      0          
  357   170        INIT_FCALL_BY_NAME                                       'processReminders'
        171        SEND_VAL_EX                                              103248
        172        SEND_VAL_EX                                              'notify_rma_28day'
        173        DO_FCALL                                      0          
  359   174        INIT_FCALL_BY_NAME                                       'processReminders'
        175        SEND_VAL_EX                                              103249
        176        SEND_VAL_EX                                              'notify_rma_35day'
        177        DO_FCALL                                      0          
  361   178        INIT_FCALL_BY_NAME                                       'processReminders'
        179        SEND_VAL_EX                                              103250
        180        SEND_VAL_EX                                              'queue_rma_followup'
        181        DO_FCALL                                      0          
  363   182        INIT_FCALL_BY_NAME                                       'processClosedSurveys'
        183        SEND_VAL_EX                                              103246
        184        INIT_FCALL                                               'date'
        185        SEND_VAL                                                 'c'
        186        DO_ICALL                                         $95     
        187        SEND_VAR_NO_REF_EX                                       $95
        188        DO_FCALL                                      0          
        189      > JMP                                                      ->211
  369   190  E > > CATCH                                                    'SoapFault', ->201
  373   191    >   INIT_METHOD_CALL                                         !19, 'getMessage'
        192        DO_FCALL                                      0  $97     
        193        ECHO                                                     $97
  375   194        INIT_METHOD_CALL                                         !1, '__getLastRequest'
        195        DO_FCALL                                      0  $98     
        196        ECHO                                                     $98
  377   197        INIT_METHOD_CALL                                         !1, '__getLastResponse'
        198        DO_FCALL                                      0  $99     
        199        ECHO                                                     $99
        200      > JMP                                                      ->211
  381   201  E > > CATCH                                       last         'Exception'
  383   202    >   INIT_METHOD_CALL                                         !1, '__getLastRequest'
        203        DO_FCALL                                      0  $100    
        204        ECHO                                                     $100
  385   205        INIT_METHOD_CALL                                         !1, '__getLastResponse'
        206        DO_FCALL                                      0  $101    
        207        ECHO                                                     $101
  387   208        INIT_METHOD_CALL                                         !20, 'getMessage'
        209        DO_FCALL                                      0  $102    
        210        ECHO                                                     $102
  787   211    > > RETURN                                                   1

Function processclosedsurveys:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 28, Position 2 = 33
Branch analysis from position: 28
2 jumps found. (Code = 43) Position 1 = 34, Position 2 = 141
Branch analysis from position: 34
2 jumps found. (Code = 46) Position 1 = 41, Position 2 = 48
Branch analysis from position: 41
2 jumps found. (Code = 43) Position 1 = 49, Position 2 = 69
Branch analysis from position: 49
1 jumps found. (Code = 42) Position 1 = 60
Branch analysis from position: 60
2 jumps found. (Code = 44) Position 1 = 68, Position 2 = 51
Branch analysis from position: 68
1 jumps found. (Code = 42) Position 1 = 82
Branch analysis from position: 82
2 jumps found. (Code = 77) Position 1 = 83, Position 2 = 121
Branch analysis from position: 83
2 jumps found. (Code = 78) Position 1 = 84, Position 2 = 121
Branch analysis from position: 84
1 jumps found. (Code = 42) Position 1 = 83
Branch analysis from position: 83
Branch analysis from position: 121
2 jumps found. (Code = 43) Position 1 = 125, Position 2 = 141
Branch analysis from position: 125
2 jumps found. (Code = 77) Position 1 = 131, Position 2 = 140
Branch analysis from position: 131
2 jumps found. (Code = 78) Position 1 = 132, Position 2 = 140
Branch analysis from position: 132
1 jumps found. (Code = 42) Position 1 = 131
Branch analysis from position: 131
Branch analysis from position: 140
2 jumps found. (Code = 43) Position 1 = 145, Position 2 = 166
Branch analysis from position: 145
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 166
Branch analysis from position: 140
Branch analysis from position: 141
Branch analysis from position: 121
Branch analysis from position: 51
2 jumps found. (Code = 44) Position 1 = 68, Position 2 = 51
Branch analysis from position: 68
Branch analysis from position: 51
Branch analysis from position: 69
2 jumps found. (Code = 43) Position 1 = 75, Position 2 = 82
Branch analysis from position: 75
2 jumps found. (Code = 77) Position 1 = 83, Position 2 = 121
Branch analysis from position: 83
Branch analysis from position: 121
Branch analysis from position: 82
Branch analysis from position: 48
Branch analysis from position: 141
Branch analysis from position: 33
filename:       /in/Kup3t
function name:  processClosedSurveys
number of ops:  167
compiled vars:  !0 = $rpt_id, !1 = $timestamp, !2 = $client, !3 = $logfile, !4 = $rptID, !5 = $rpt, !6 = $rpt_msg, !7 = $result, !8 = $batchArr, !9 = $resultArr, !10 = $i, !11 = $row, !12 = $incident, !13 = $upo, !14 = $updmsg, !15 = $bri, !16 = $batchChunks, !17 = $batch, !18 = $fh
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  393     0  E >   RECV                                             !0      
          1        RECV                                             !1      
  397     2        BIND_GLOBAL                                              !2, 'client'
          3        BIND_GLOBAL                                              !3, 'logfile'
  401     4        INIT_ARRAY                                       ~19     !0, 'id'
          5        ASSIGN                                                   !4, ~19
  403     6        NEW                                              $21     'AnalyticsReport'
          7        DO_FCALL                                      0          
          8        ASSIGN                                                   !5, $21
  405     9        ASSIGN_OBJ                                               !5, 'ID'
         10        OP_DATA                                                  !4
  409    11        NEW                                              $25     'RunAnalyticsReportMsg'
         12        DO_FCALL                                      0          
         13        ASSIGN                                                   !6, $25
  411    14        ASSIGN_OBJ                                               !6, 'AnalyticsReport'
         15        OP_DATA                                                  !5
  415    16        INIT_METHOD_CALL                                         !2, 'RunAnalyticsReport'
         17        SEND_VAR_EX                                              !6
         18        DO_FCALL                                      0  $29     
         19        ASSIGN                                                   !7, $29
  417    20        INIT_METHOD_CALL                                         !2, '__getLastRequest'
         21        DO_FCALL                                      0  $31     
         22        ECHO                                                     $31
  419    23        INIT_FCALL                                               'print_r'
         24        SEND_VAR                                                 !7
         25        DO_ICALL                                                 
  425    26        ASSIGN                                                   !8, <array>
  429    27      > JMPZ_EX                                          ~34     !7, ->33
         28    >   FETCH_OBJ_R                                      ~35     !7, 'CSVTableSet'
         29        FETCH_OBJ_R                                      ~36     ~35, 'CSVTables'
         30        FETCH_OBJ_R                                      ~37     ~36, 'CSVTable'
         31        FETCH_OBJ_R                                      ~38     ~37, 'Rows'
         32        BOOL                                             ~34     ~38
         33    > > JMPZ                                                     ~34, ->141
  435    34    >   ASSIGN                                                   !9, <array>
  439    35        FETCH_OBJ_IS                                     ~40     !7, 'CSVTableSet'
         36        FETCH_OBJ_IS                                     ~41     ~40, 'CSVTables'
         37        FETCH_OBJ_IS                                     ~42     ~41, 'CSVTable'
         38        FETCH_OBJ_IS                                     ~43     ~42, 'Rows'
         39        ISSET_ISEMPTY_PROP_OBJ                           ~44     ~43, 'Row'
         40      > JMPZ_EX                                          ~44     ~44, ->48
  441    41    >   FETCH_OBJ_R                                      ~45     !7, 'CSVTableSet'
         42        FETCH_OBJ_R                                      ~46     ~45, 'CSVTables'
         43        FETCH_OBJ_R                                      ~47     ~46, 'CSVTable'
         44        FETCH_OBJ_R                                      ~48     ~47, 'Rows'
         45        FETCH_OBJ_R                                      ~49     ~48, 'Row'
         46        TYPE_CHECK                                  128  ~50     ~49
         47        BOOL                                             ~44     ~50
         48    > > JMPZ                                                     ~44, ->69
  445    49    >   ASSIGN                                                   !10, 0
         50      > JMP                                                      ->60
  447    51    >   FETCH_OBJ_R                                      ~53     !7, 'CSVTableSet'
         52        FETCH_OBJ_R                                      ~54     ~53, 'CSVTables'
         53        FETCH_OBJ_R                                      ~55     ~54, 'CSVTable'
         54        FETCH_OBJ_R                                      ~56     ~55, 'Rows'
         55        FETCH_OBJ_R                                      ~57     ~56, 'Row'
         56        FETCH_DIM_R                                      ~58     ~57, !10
         57        ASSIGN_DIM                                               !9
         58        OP_DATA                                                  ~58
  445    59        PRE_INC                                                  !10
         60    >   FETCH_OBJ_R                                      ~60     !7, 'CSVTableSet'
         61        FETCH_OBJ_R                                      ~61     ~60, 'CSVTables'
         62        FETCH_OBJ_R                                      ~62     ~61, 'CSVTable'
         63        FETCH_OBJ_R                                      ~63     ~62, 'Rows'
         64        FETCH_OBJ_R                                      ~64     ~63, 'Row'
         65        COUNT                                            ~65     ~64
         66        IS_SMALLER                                               !10, ~65
         67      > JMPNZ                                                    ~66, ->51
         68    > > JMP                                                      ->82
  453    69    >   FETCH_OBJ_IS                                     ~67     !7, 'CSVTableSet'
         70        FETCH_OBJ_IS                                     ~68     ~67, 'CSVTables'
         71        FETCH_OBJ_IS                                     ~69     ~68, 'CSVTable'
         72        FETCH_OBJ_IS                                     ~70     ~69, 'Rows'
         73        ISSET_ISEMPTY_PROP_OBJ                                   ~70, 'Row'
         74      > JMPZ                                                     ~71, ->82
  455    75    >   FETCH_OBJ_R                                      ~73     !7, 'CSVTableSet'
         76        FETCH_OBJ_R                                      ~74     ~73, 'CSVTables'
         77        FETCH_OBJ_R                                      ~75     ~74, 'CSVTable'
         78        FETCH_OBJ_R                                      ~76     ~75, 'Rows'
         79        FETCH_OBJ_R                                      ~77     ~76, 'Row'
         80        ASSIGN_DIM                                               !9
         81        OP_DATA                                                  ~77
  461    82    > > FE_RESET_R                                       $78     !9, ->121
         83    > > FE_FETCH_R                                               $78, !11, ->121
  465    84    >   NEW                                              $79     'Incident'
         85        DO_FCALL                                      0          
         86        ASSIGN                                                   !12, $79
  467    87        INIT_ARRAY                                       ~83     !11, 'id'
         88        ASSIGN_OBJ                                               !12, 'ID'
         89        OP_DATA                                                  ~83
  471    90        INIT_FCALL_BY_NAME                                       'setCustomField'
         91        SEND_VAL_EX                                              'date_survey_sent'
         92        SEND_VAR_EX                                              !1
         93        SEND_VAL_EX                                              'DATETIME'
         94        DO_FCALL                                      0  $85     
         95        ASSIGN_OBJ                                               !12, 'CustomFields'
         96        OP_DATA                                                  $85
  475    97        NEW                                              $86     'UpdateProcessingOptions'
         98        DO_FCALL                                      0          
         99        ASSIGN                                                   !13, $86
  477   100        ASSIGN_OBJ                                               !13, 'SuppressExternalEvents'
        101        OP_DATA                                                  <true>
  479   102        ASSIGN_OBJ                                               !13, 'SuppressRules'
        103        OP_DATA                                                  <false>
  483   104        NEW                                              $91     'UpdateMsg'
        105        DO_FCALL                                      0          
        106        ASSIGN                                                   !14, $91
  485   107        ASSIGN_OBJ                                               !14, 'RNObjects'
        108        OP_DATA                                                  !12
  487   109        ASSIGN_OBJ                                               !14, 'ProcessingOptions'
        110        OP_DATA                                                  !13
  491   111        NEW                                              $96     'BatchRequestItem'
        112        DO_FCALL                                      0          
        113        ASSIGN                                                   !15, $96
  493   114        ASSIGN_OBJ                                               !15, 'U

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
273.76 ms | 1428 KiB | 34 Q