For Programmers: Free Programming Magazines  


Home > Archive > PHP Eaccelerator > August 2005 > Bug in eaccelerator 0.9.3









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Bug in eaccelerator 0.9.3
Simon Kissane

2005-08-09, 10:03 pm

Hi

I have found a bug in eAccelerator 0.9.3. It is a script that works fine
with eAccel off on 5.0.4, but with eAccel on it gives an error.
Here is a test case (this is actually only part of a big app -- i removed
all the code that isn't relevant):

Create three files:
========== test.php ==========
<?
require_once("x.inc");
require_once("y.inc");
========== x.inc ==========
<?
class E {
function h($errno, $errstr, $errfile, $errline) {
echo "Error!";
}
}
set_error_handler(array("E","h"));

========== y.inc ==========
<?
class x {
var $y;
}

Now, go to test.php in your browser. With eAccel off, it works as expected:
Error!
But with eAccel on, it doesn't:
*Fatal error*: Class 'E' not found in *<...path ommitted...>/y.inc* on line
*3*

I would very much appreciate if anyone could fix this.
I would really like to use eAccelerator on my application ....


Cheers
Simon Kissane

Bart Vanbrabant

2005-08-10, 4:04 am

Simon Kissane wrote:

> Hi
>
> I have found a bug in eAccelerator 0.9.3. It is a script that works
> fine with eAccel off on 5.0.4, but with eAccel on it gives an error.
> Here is a test case (this is actually only part of a big app -- i
> removed all the code that isn't relevant):
>
> Create three files:
> ========== test.php ==========
> <?
> require_once("x.inc");
> require_once("y.inc");
> ========== x.inc ==========
> <?
> class E {
> function h($errno, $errstr, $errfile, $errline) {
> echo "Error!";
> }
> }
> set_error_handler(array("E","h"));
>
> ========== y.inc ==========
> <?
> class x {
> var $y;
> }
>
> Now, go to test.php in your browser. With eAccel off, it works as
> expected:
> Error!
> But with eAccel on, it doesn't:
> *Fatal error*: Class 'E' not found in *<...path ommitted...>/y.inc* on
> line *3*
>
> I would very much appreciate if anyone could fix this.
> I would really like to use eAccelerator on my application ....
>
>
> Cheers
> Simon Kissane


I saw it in the bug tracker. But I can't fix it for now. I don't have
the time for the next month to work on eAccelerator. Because of my
studies. After that I'll take a look and try to fix the bug.

Cheers,

Bart

--
Bart Vanbrabant <bart.vanbrabant@zoeloelip.be>
PGP fingerprint: 093C BB84 17F6 3AA6 6D5E FC4F 84E1 FED1 E426 64D1


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com