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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: waka0831 at hotmail dot com
New email:
PHP Version: OS:

 

 [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: Thu Sep 19 15:01:27 2024 UTC