Re: Bug #12040: PHP dumps core when using a 3x derived class from a series of included files
| From: | lenar | Date: | Wed, 11 Jul 2001 14:42:47 +0000 |
| Subject: | Re: Bug #12040: PHP dumps core when using a 3x derived class from a series of included files | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-59720@lists.php.net to get a copy of this message | ||
in PHP 4.0.5 this resulted in engine error. Zeev said it is fixed in CVS, so right now I can't
compile CVS to check it out, but maybe you can.
And does this crash disappears when you use explicit class names instead parent:: (a::, b:: ...
etc)? In my case it helped.
Lenar
<patrick@jordan-smith.org> wrote in message news:bug-12040@bugs.php.net...
> From: patrick@jordan-smith.org
> Operating system: Debian/GNULinux unstable
> PHP version: 4.0.6
> PHP Bug Type: Reproducible crash
> Bug description: PHP dumps core when using a 3x derived class from a series of included files
>
> 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 bug report at: http://bugs.php.net/?id=12040&edit=1
>