ID: 25907
Updated by: [EMAIL PROTECTED]
Reported By: waka0831 at hotmail dot com
-Status: Open
+Status: Bogus
-Bug Type: Compile Failure
+Bug Type: Scripting Engine problem
Operating System: Linux (version?)
PHP Version: 4.3.1
New Comment:
# php t.php
Parse error: parse error in /home/jani/t.php on line 4
Check your php.ini for 'display_errors', 'error_reporting', etc.
options that control how errors are displayed.
Previous Comments:
------------------------------------------------------------------------
[2003-10-19 00:01:15] waka0831 at hotmail dot com
Description:
------------
Adding a call to explode() that is missing the
requisite comma between the first and second function
arguments causes zero output to be sent to the browser,
even if the explode() call is never executed.
Reproduce code:
---------------
if (false)
{
$testStr = "a,b,c";
$testArray = explode("," $testStr);
}
Expected result:
----------------
I expect a syntax error to be generated.
Actual result:
--------------
Zero output, seemingly regardless of other code in
file.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=25907&edit=1