Bug #76968 [NEW]: error_log does not nt show correct ouput

From: Date: Thu, 04 Oct 2018 05:38:56 +0000
Subject: Bug #76968 [NEW]: error_log does not nt show correct ouput
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-217399@lists.php.net to get a copy of this message
From: forum at sodcore dot com Operating system: Debian PHP version: 7.0.32 Package: Apache2 related Bug Type: Bug Bug description:error_log does not nt show correct ouput Description: ------------ When error_log is run it addes extra lines to a variable like #12#11#11 Yet code runs correctly. Test script: --------------- <?php require "../standard/functions.php"; $d = ""; $temp = "data;"; // Check to make sure we have correct request method post and that the token key fits if ($_SERVER ["REQUEST_METHOD"] == "POST" && ! empty ( $_POST ["T"] ) && $_POST ["T"] == $TOKEN_LOCK_HTTP_POST) { if (!empty($_POST["d"])) { $d = $_POST["d"]; } // define variables and set to empty values $con = get_database_connection (); // If there is a result echo the results $sqlStatment = prepare_sql("select * from table,table2 WHERE table.id = table2.id and table2.serial = '$d';"); error_log($sqlStatment,0); if ($res = $con->query($sqlStatment)) { $res->data_seek(0); $totalRows = $res->num_rows; // Return the total number of rows if ($totalRows > 0) { while ($row = $res->fetch_assoc()) { $temp .= $row['f']; } } $res->close(); } else { $temp .= "-100"; } echo $temp; } ?> Expected result: ---------------- I expect error_log to log: select * from table,table2 WHERE table.id = table2.id and table2.serial = '$d'; But it logs: select * from table,table2 WHERE table#12#11#11.id = table2.id and table2.serial = '$d'; Yet the code works correctly. The logging is messed up in more then one of my files. Actual result: -------------- But it logs: select * from table,table2 WHERE table#12#11#11.id = table2.id and table2.serial = '$d'; -- Edit bug report at https://bugs.php.net/bug.php?id=76968&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=76968&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=76968&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=76968&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=76968&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=76968&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=76968&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=76968&r=needscript Try newer version: https://bugs.php.net/fix.php?id=76968&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=76968&r=support Expected behavior: https://bugs.php.net/fix.php?id=76968&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=76968&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=76968&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=76968&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=76968&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=76968&r=dst IIS Stability: https://bugs.php.net/fix.php?id=76968&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=76968&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=76968&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=76968&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=76968&r=mysqlcfg

« previous php.bugs (#217399) next »