The user receives a truncated message (max. 19109 characters) from a PHP script when mysqli_real_connect is called

I have a problem with 1 of our PHP scripts, it once returns a truncated message.

Flow:

  • Custom call in search.php
  • The script processes the request:

    • a DB connection
    • b XML assembly using the SimpleXML class
    • c type Paste SimpleXML into a string.
    • d print this line to the client.
  • The user receives (output to the browser) only part of the message in some cases

after studying this problem, these are the facts that I found:

  • The maximum length is 19109 characters → moreover, that it is truncated.
  • I registered the XML string 2.c typeCast and found out that the log contains full XML (not truncated!).
  • , / , .
  • - :

    • , SimpleXML - XML-String, ( ) diff-hardcoded-XML # 2.d → .

    • , ( diff-hardcoded-XML ), script, "die;". Iv'e , mysqli_real_connect mysql_real_connect , .

, / ?

+3
1

, # 2 ? , PHP , PHP.

, , , script. , - script mysql_real_connect, . script , . display_errors - .

, PHP ( diplay_errors config). - , mysql_real_connect function_exists

0

All Articles