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
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.
(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

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-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 12:01:27 2024 UTC