#25907 [Opn->Bgs]: Missing comma in explode() causes zero output.

From: Date: Sun, 19 Oct 2003 05:29:21 +0000
Subject: #25907 [Opn->Bgs]: Missing comma in explode() causes zero output.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-49185@lists.php.net to get a copy of this message
ID: 25907 Updated by: sniper@php.net 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

« previous php.bugs (#49185) next »