> Works just fine with 4.2.0-dev.  However I can verify it on 4.0.6,
> so I'm guessing this  problem was fixed.
ok, thanks
does anyone know a work around until teh new php-version(s) are/is 
released?
i need to get it running on a current version

thanks

-- 
Wolfram

> -Chris
>
> -----Original Message-----
> From: Wolfram Kriesing [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, November 10, 2001 11:25 AM
> To: list; list
> Subject: [PHP-DEV] class xxx extends a_class_from_the_include_path
> - problem
>
>
> i have the following script:
>
> <?php
>
> require_once("PEAR.php");
>
> class super extends PEAR
> {
>     function setup()
>     {
>         print("i am super<br>");
>     }
> }
>
> class super1 extends super
> {
>     function setup()
>     {
>         print("i am super1<br>");
>         parent::setup();
>     }
> }
>
> class super2 extends super1
> {
>     function setup()
>     {
>         print("i am super2<br>");
>         parent::setup();
>     }
> }
>
> $s2 = new super2;
> $s2->setup();
>
> ?>
>
> it prints
>       i am super2
>       i am super1
>       i am super1
>       i am super1
>       i am super1
>       i am super1
>       .... and so on
>
> if class super _doesnt_ extend PEAR the expected output is printed
>       i am super2
>       i am super1
>       i am super
>
> i was looking for the error in PEAR.php but even if i empty the
> file and leave _only_ "class PEAR { } " in there it still does the
> unexpected, i can extend any class from the include_path, they all
> have this effect ... strange
>
> so it's _not_ PEAR's fault, is this a php-bug? i am using 4.0.5 and
> 6

-- 
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]

Reply via email to