From: waka0831 at hotmail dot com Operating system: Linux (version?) PHP version: 4.3.1 PHP Bug Type: Compile Failure Bug description: Missing comma in explode() causes zero output.
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 bug report at http://bugs.php.net/?id=25907&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25907&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25907&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=25907&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=25907&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=25907&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=25907&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=25907&r=support Expected behavior: http://bugs.php.net/fix.php?id=25907&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=25907&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=25907&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=25907&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25907&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=25907&r=dst IIS Stability: http://bugs.php.net/fix.php?id=25907&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=25907&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=25907&r=float