php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #25907 Missing comma in explode() causes zero output.
Submitted: 2003-10-19 00:01 UTC Modified: 2003-10-19 01:29 UTC
From: waka0831 at hotmail dot com Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 4.3.1 OS: Linux (version?)
Private report: No CVE-ID: None
 [2003-10-19 00:01 UTC] 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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-10-19 01:29 UTC] sniper@php.net
# 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.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Sep 18 22:01:26 2024 UTC