|  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
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
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.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [1998-08-30 16:15 UTC] zeev
Fixed, empty delimiters are no longer allowed
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Wed Oct 05 06:05:53 2022 UTC