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 Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
22 + 3 = ?
Subscribe to this entry?

 
 [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

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-08-30 16:15 UTC] zeev
Fixed, empty delimiters are no longer allowed
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Wed Jan 29 12:01:24 2020 UTC