From: mark at temporal-solutions dot co dot uk
Operating system: Windows XP SP2
PHP version: 5.2.0
PHP Bug Type: Reproducible crash
Bug description: CGI crash on certain constuctors
Description:
------------
PHP causing php-cgi.exe crash when creating child class with default
constructor values.
$this->sp_user_count = new oopi_Label($this);
oopi_label is class oopi_Label extends oopi_Control which just happens to
have constructor
__construct($parent, $id = '', $value = NULL)
somehow just calling it with $this resulted in PHP self destructing
Reproduce code:
---------------
class oopi_Control
{
public $id;
public function __construct($parent, $id = '', $value = NULL)
{
...
$this->id = $id;
...
}
};
class oopi_Label extends oopi_Control
{
...
};
$sp_user_count = new oopi_Label($this);
Expected result:
----------------
Created object with default id of ''
Actual result:
--------------
No results - CGI crash reading null pointer and returning no headers.
--
Edit bug report at http://bugs.php.net/?id=39659&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=39659&r=trysnapshot44
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=39659&r=trysnapshot52
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=39659&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=39659&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=39659&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=39659&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=39659&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=39659&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=39659&r=support
Expected behavior: http://bugs.php.net/fix.php?id=39659&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=39659&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=39659&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=39659&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=39659&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=39659&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=39659&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=39659&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=39659&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=39659&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=39659&r=mysqlcfg