php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #706 explode("\0", anystring) crashes
Submitted: 1998-08-30 14:04 UTC Modified: 2004-09-02 07:03 UTC
From: sgk at happysize dot co dot jp Assigned:
Status: Closed Package: Reproducible Crash
PHP Version: 3.0.3 OS: Solaris 2.5.1, FreeBSD 2.1.5
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: sgk at happysize dot co dot jp
New email:
PHP Version: OS:

 

 [1998-08-30 14:04 UTC] sgk at happysize dot co dot jp
Script like

    <?
        explode("\0", "anystring");
    ?>

results in bus error or segmentation violation.
I believe that the PHP string is not a sort of C string
which is not able to contain a null \0 character.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-08-30 16:15 UTC] zeev
Fixed, empty delimiters are no longer allowed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 17:01:30 2024 UTC