Home>
Troubled

In the following source code, the process stops unexpectedly at the simplexml_load_string line.


・ ・
・ ・
echo "AAA";
$test = simplexml_load_string ("xxxxxxxxx");
echo "BBB";
・ ・
・ ・
・ ・
(AAA is output, but BBB is not output)

I can't explain in detail,
Processing stops at this line.

It works in other environments, but only stops in certain environments.
Also, nothing is output to the Apache or PHP error log.

If there is no problem in the source code, what can be considered as the cause of the stoppage?
I am thinking that there is something missing in the description of php.ini, but I haven't found an answer yet.

What I did last time

Apache and PHP were uninstalled.
After that, I reinstalled Apache and PHP.

The PHP version has been increased from 5.3 to 5.5.

The OS is CentOS6.

Notes

There is a method that returns a string in the "xxxxxxxx" section of the code,
Even if you follow the source code, it will not enter the method, so I think that it is probably different from the cause this time.

php
  • Answer # 1

    From where you pick up the error

    error_reporting (E_ALL);
    ini_set ("display_errors", 1);
    echo "AAA";
    $test = simplexml_load_string ("xxxxxxxxx");
    echo "BBB";