Mailinglisten-Archive |
Zitat Rasmus:
----------
Unfortunately a bug slipped by our vigorous quality assurance inspection
team ;) prior to PHP 3.0.8 going out the door. If you rely on things
like: $array = file("http://domain.com/file.html"); or any other PHP
function that make an HTTP request and fetch data, you are likely to be
hit by this.
It is a one-line fix to the fopen_wrappers.c file. The fix is described
here:
http://cvs.php.net/cvsweb.cgi/fopen-wrappers.c.diff?r1=1.59&r2=1.60&f=h
Basically it says to change line 593 from:
if (SOCK_FGETC(*socketd) == SOCK_RECV_ERR) {
to:
if ((buf[0] = SOCK_FGETC(*socketd)) == SOCK_RECV_ERR) {
---------
Emilio Paolini wrote:
>
> Moin!
>
> Auf einer meiner Linux-Maschinen bekomme ich ein "Segmentation fault",
> wenn ich die Funktion
>
> file("http://irgendwas...")
>
> benutze. Auf den anderen Kisten laeuft es. Hatte das schon mal einer ?
>
> BY(e) Emilio
>
> --
> | Emilio Paolini <ep_(at)_IM-NETZ.de>......................... 13349 Berlin
> | IM-NETZ Internet Services, Berlin............. http://www.IM-NETZ.de
> | Telekom ...................... ++49 30 4511000 (Q) und 0177 451 2000
>
> --
> ** Durchgehend geöffnet: http://www.php-center.de **
> Die PHP-Liste: mailto:php_(at)_infosoc.uni-koeln.de
> http://infosoc.uni-koeln.de/mailman/listinfo/php
--
w e b f a c t o r y
Philipp Bosch <pb_(at)_webfactory.de> - Geschaeftsfuehrer
Im Uckerfeld 19 - 53127 Bonn - http://www.webfactory.de/
Fon: 0228-9195200 - Fax: 0228-9195202 - ICQ: 6907593
php::bar PHP Wiki - Listenarchive