|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #47704 PHP crashes on some "bad" operations with string offsets
Submitted: 2009-03-18 10:39 UTC Modified: 2009-03-18 13:13 UTC
From: Assigned: dmitry
Status: Closed Package: Scripting Engine problem
PHP Version: 5.3CVS-2009-03-18 (CVS) OS: *
Private report: No CVE-ID:
 [2009-03-18 10:39 UTC]
The following script chrashes

Reproduce code:
$s = "abd";
$s[0]->a += 4;
echo "ok\n";

Expected result:

Actual result:
Segmentation fault


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2009-03-18 13:13 UTC]
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2015 The PHP Group
All rights reserved.
Last updated: Wed Oct 07 21:01:31 2015 UTC