Date: 07/31/01
- Next message: sulka <email protected>: "[PHP-DEV] Bug #12455 Updated: Srand and shuffle give odd results"
- Previous message: jflemer <email protected>: "[PHP-DEV] Bug #12455 Updated: Srand and shuffle give odd results"
- Next in thread: J Smith: "[PHP-DEV] Re: PHP dies on URL fopen"
- Reply: J Smith: "[PHP-DEV] Re: PHP dies on URL fopen"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Recently, PHP started to segfault for me on URL fopen, e.g.:
fopen("http://www.host.com","r") brings immediate segfault.
Investigation showed that the problem happens in php_sock_fgets_internal
(file fsock.c), in the first SEARCHCR() statement and is because when sock
parameter is passed to php_sock_fgets_internal, both readbuf and readpos
are 0, and SEARCHCR does p = READPTR(sock), which makes p be 0 too, and
then uses *p != '\n' as a condition.
Could anybody who know the code look at this and check what has gone
wrong?
-- Stanislav Malyshev, Zend Products Engineer stas <email protected> http://www.zend.com/ +972-3-6139665 ext.115-- 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>
- Next message: sulka <email protected>: "[PHP-DEV] Bug #12455 Updated: Srand and shuffle give odd results"
- Previous message: jflemer <email protected>: "[PHP-DEV] Bug #12455 Updated: Srand and shuffle give odd results"
- Next in thread: J Smith: "[PHP-DEV] Re: PHP dies on URL fopen"
- Reply: J Smith: "[PHP-DEV] Re: PHP dies on URL fopen"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

