php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #19865 explode bug
Submitted: 2002-10-11 08:57 UTC Modified: 2002-10-11 09:58 UTC
From: vvtk@php.net Assigned:
Status: Closed Package: *General Issues
PHP Version: 4.3.0-pre1 OS: RedHat 7.1
Private report: No CVE-ID: None
 [2002-10-11 08:57 UTC] vvtk@php.net
I have next code:
<?
$testline = "a"."\1"."b"."\0"."d"."\1"."f"."\1"."1"."\1"."d";
var_dump(explode("\1",$testline));
?>

In PHP 4.2.3 it work as expected, I see:
array(5) { [0]=> string(1) "a" [1]=> string(3) "bd" [2]=> string(1) "f" [3]=> string(1) "1" [4]=> string(1) "d" } 

In PHP 4.3pre1:
array(2) { [0]=> string(1) "a" [1]=> string(9) "bdf1d" } 

Same effect if "\0" replace to "\2".

My config line:
'./configure' '--with-apxs=/usr/local/apache/bin/apxs' '--with-pfpro' '--enable-inline-optimization' '--with-mysql' '--enable-track-vars' '--disable-debug' '--disable-pic' '--disable-ctype' '--disable-mbstring' '--disable-xml' '--disable-tokenizer' '--with-zlib' '--enable-sysvshm' '--enable-sysvsem' '--enable-shmop' '--enable-costaid' '--with-mm' '--with-imap=/usr/install/imap-2002.RC5' '--with-gdbm' '--with-oci8' '--enable-sigchild' '--without-gd' '--with-curl' '--with-dom-exslt' '--with-dom-xslt' '--with-dom' 

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-10-11 09:58 UTC] iliaa@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Dec 25 06:01:29 2024 UTC