|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #44046 array_slice(&$offset, $offset) crash
Submitted: 2008-02-04 22:31 UTC Modified: 2008-02-05 16:02 UTC
From: victor dot stinner at haypocalc dot com Assigned:
Status: Closed Package: Arrays related
PHP Version: 5.2.5 OS: Linux (Ubuntu Gutsy) on i386
Private report: No CVE-ID:
 [2008-02-04 22:31 UTC] victor dot stinner at haypocalc dot com


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2008-02-04 22:53 UTC] victor dot stinner at haypocalc dot com

 [2008-02-05 00:45 UTC]
My suggestion:

In .phpt for array_slice, the expected result treats 0 as NULL. Then, i guess that using long rather than zval could be used...
 [2008-02-05 16:02 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 Dec 02 01:01:35 2015 UTC