> -----Original Message-----
> From: Richard Lynch [mailto:[EMAIL PROTECTED] 
> Subject: Re: [PHP-DEV] Performance problem in Windows between 
> 5.1 & 5.2
>
> <?php
>   $file = fopen('/tmp/foo', 'w'); //or whatever.
>   for ($i = 0; $i < 1000000; $i++){
>     $class = <<<EOC
> class foo_$i {
>   //more stuff here
> };
> EOC;
>     fwrite($file, $class);
>   }
>   fclose($file);
>   //start timer
>   require '/tmp/foo';
>   //end timer
> ?>
> 
> "Crude, but effective Captain." -- Spock

Hehe.. Nice :) Not to be included in the bench script but just to verify if
I was going on the right direction.

Actually, I think I've found my problem (and maybe the problem of the people
that answered off-list to me having the same problem). It only occurs on
Windows and it's related with relative path inclusions. You will certainly
notice it if you're using include_path and __autoload for your classes.

I've filled a bug report.
http://bugs.php.net/bug.php?id=41193 

Thank you all for your help.

Regards,
Mauro.

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to