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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: bfoddy at mn dot mediaone dot net
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Wed May 07 17:01:30 2025 UTC