|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-03-31 06:25 UTC] mike@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 25 07:00:02 2025 UTC |
Description: ------------ Source code doesn't run. I've tried it in my XP width apache 2.2 and php 5.2.1, and on a linux server with apache 2.0 and php 4.4.0 I have known about this bug long time, but now i managed to repoduce it. As you see derived class constructor calls super constructor, these class made to compatible width php 4 and 5. Reproduce code: --------------- class Super { function Super() { $this->__construct(); } function __construct() { echo "Super\n"; } } class Derived extends Super { function __construct() { $this->Derived(); } function Derived() { parent::Super(); echo "Derived"; } } $a = new Derived(); Expected result: ---------------- Super Derived Actual result: -------------- nothing at all. apache log: Parent: child process exited with status 3221225477 -- Restarting.