php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10448 PHP core dumps after array_init
Submitted: 2001-04-22 23:46 UTC Modified: 2001-05-28 00:17 UTC
From: bfoddy at mn dot mediaone dot net Assigned:
Status: Closed Package: Reproducible crash
PHP Version: 4.0.4pl1 OS: Linux and Solaris
Private report: No CVE-ID: None
 [2001-04-22 23:46 UTC] bfoddy at mn dot mediaone dot net
I've found that any PHP function can cause a core dump (Seg Fault) if it performs an array_init (return_value) function, and then subsequently returns with RETURN_FALSE or RETURN_TRUE without adding any values to the array.  Perhaps occurs under other conditions also.

This can easily occur in code if after the array_init call
the program encounters a to which it wants to return ERROR
for.

Have I violated any Zend don't-do's by this?

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-05-04 19:53 UTC] bfoddy at mn dot mediaone dot net
I believe the root cause of this is a dupe of 2220.
I used a DL module with debugging turned on.
 [2001-05-28 00:17 UTC] sniper@php.net
we can close this as this only happens with debug builds.
And there is already one bug report open about this.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 09:01:26 2024 UTC