|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-11-28 12:57 UTC] mark at temporal-solutions dot co dot uk
[2006-11-28 13:00 UTC] tony2001@php.net
[2006-11-28 15:12 UTC] mark at temporal-solutions dot co dot uk
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 06 17:00:01 2025 UTC |
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.