[phpa] Re: PHPA bug

  • From: Nick Lindridge <nick@xxxxxxxxxxxxxxxxx>
  • To: phpa@xxxxxxxxxxxxx
  • Date: Tue, 30 Oct 2001 08:35:42 +0000

On Mon, Oct 29, 2001 at 10:30:48PM +0100, Holger Bahr wrote:
> 
> Hello Nick,
> 
> i have set up a neat demonstration for you.

Hi, 

Thanks for this. There was another report yesterday that
sounded like the same issue. I'm suprised that this never
cropped up before to my knowledge. I'll investigate - it
should be easy to reproduce.  

Thanks for the example!

Nick

> 
> --------------------------------------------------------
> ---hans.inc---------------------------------------------
> 
> <?php
> 
>    class hans
>    {
>      var $name = "peter";
>   
>      function hans() //constructor
>      {
>        echo $this->name;
>      }
>    }
> 
> ?>  
> 
> ---peter.php---------------------------------------------
> 
> <?php
> 
>    // include("hans.inc");     remarked bec. we wanna use
>    //                                        auto_prepend
>    
>    class georg extends hans
>    {
>      var $name = "andrea";
>    }
>    
>    $test = new georg;
>    
> ?>
> 
> ---httpd.conf (or php.ini)-------------------------------
> 
> auto_prepend_file "/wherever/it/is/hans.inc"
> 
> ---------------------------------------------------------
> ---------------------------------------------------------
> 
> This "Setup" wont work with the accellerator.
> If you dont use auto_prepend and include "hans.inc", it
> works...
> 
> Best regards,
>  Holger                          mailto:hb@xxxxxxxxx
> 
> 
> ------------------------------------------------------------------------
>   www.php-accelerator.co.uk           Home of the free PHP Accelerator
> 
> To post, send email to phpa@xxxxxxxxxxxxx
> To unsubscribe, email phpa-request@xxxxxxxxxxxxx with subject unsubscribe
> 
------------------------------------------------------------------------
  www.php-accelerator.co.uk           Home of the free PHP Accelerator

To post, send email to phpa@xxxxxxxxxxxxx
To unsubscribe, email phpa-request@xxxxxxxxxxxxx with subject unsubscribe


Other related posts: