[PHP-DEV] Bug #12040 Updated: PHP dumps core when using a 3x derived class from a series of included files
ID: 12040 Updated by: sniper Reported By: [EMAIL PROTECTED] Old Status: Status: Closed Bug Type: Reproducible crash Operating System: Debian/GNULinux unstable PHP Version: 4.0.6 New Comment: for some reason this report wasn't closed.. Now it should be. Previous Comments: [2001-07-11 21:19:51] [EMAIL PROTECTED] Okay, the cvs version fixes this crash, so I've closed the bug, thanks all for your suggestions and writing such a useful tool! [2001-07-11 04:40:39] [EMAIL PROTECTED] This is bug #12032 but I don't have a password to add more info to it (didn't enter one, was rushed) Yes,it seems to have to do with the calling of parent object fuctions in files incuded from files that have been included. Following are 3 php files that reproduce it,you run the D.PHP file. If the a.php file is included in d.php instead of b.php, there is no problem. // -- A.PHP -- ? class a { function a() { -_constructor(); } function _constructor() { } } ? // -- EOF -- // -- B.PHP -- ? include(a.php); class b extends a { function _constructor() { parent::_constructor(); } } class c extends b { function _constructor() { parent::_constructor(); } } ? // -- EOF -- // -- D.PHP -- ? { function _constructor() { parent::_constructor(); } } class c extends b { function _constructor() { parent::_constructor(); } } ? // -- EOF -- // -- D.PHP -- ? include(b.php); = new c; ? // -- EOF -- Edit this bug report at http://bugs.php.net/?id=12040edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12040 Updated: PHP dumps core when using a 3x derived class from a series of included files
ID: 12040 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Old Status: Open Status: Closed Bug Type: Reproducible crash Operating System: Debian/GNULinux unstable PHP Version: 4.0.6 New Comment: Okay, the cvs version fixes this crash, so I've closed the bug, thanks all for your suggestions and writing such a useful tool! Previous Comments: [2001-07-11 04:40:39] [EMAIL PROTECTED] This is bug #12032 but I don't have a password to add more info to it (didn't enter one, was rushed) Yes,it seems to have to do with the calling of parent object fuctions in files incuded from files that have been included. Following are 3 php files that reproduce it,you run the D.PHP file. If the a.php file is included in d.php instead of b.php, there is no problem. // -- A.PHP -- ? class a { function a() { -_constructor(); } function _constructor() { } } ? // -- EOF -- // -- B.PHP -- ? include(a.php); class b extends a { function _constructor() { parent::_constructor(); } } class c extends b { function _constructor() { parent::_constructor(); } } ? // -- EOF -- // -- D.PHP -- ? { function _constructor() { parent::_constructor(); } } class c extends b { function _constructor() { parent::_constructor(); } } ? // -- EOF -- // -- D.PHP -- ? include(b.php); = new c; ? // -- EOF -- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=12040edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]