Re: [PHP-DEV] Re: Moved virtual cwd stuff to TSRM From: Andi Gutmans (andi <email protected>)
Date: 09/07/00

At 10:04 PM 9/7/00 +0200, Olivier Cahagne wrote:
>Hi Andi,
>
>>Thanks for giving me access to your machine. The crash bug you had on
>
>np, I leave the login/password available. If you need it later, you're
>welcome to use it.
>
>>PHP startup when it tries to open the php.ini file was due to the PHP
>>configuration not detecting the MAXPATHLEN on your system correctly. It
>>caused a stack overrun and therefore was so difficult to debug.
>>I have hopefully fixed this now in the latest CVS but haven't tested the
>>latest version of my patch on your system. Please grab the CVS and let
>>me know if your problem is fixed. Make sure to update TSRM too because
>>the main patch was there.
>
>I tried 200009071045 snapshot, and it worked fine on NetBSD 1.3.3 and
>OpenBSD 2.6. It's definitely fixed. Thanks.
>
>Any clue why it only happened with *BSD ?

MAXPATHLEN is 1024 on those machines and PHP assumed that it was 256. For
some reason, these BSD systems actually seem to overwrite all of the 1024
even when it's not needed. Sounds slow but that's what they seem to do.

Andi

---
Andi Gutmans <andi <email protected>>
http://www.zend.com/

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>