From: jacob@siamesecode.com
Operating system: Linux 2.4.x
PHP version: 4.1.1
PHP Bug Type: cURL related
Bug description: Segmentation fault if cURL tries to get a page and the server returns nothing.
I found this behavior while building a client-server system
that uses cURL to get data from the server; when my
server-side script didn't return anything at all, it caused
the client side Apache process to actually die with a signal
11. I have the latest libcurl and the latest PHP, and I've
just tried updating Apache to see if that affects the
behavior (it doesn't, but it seemed like a good excuse to
get my development system up to date).
The only option I'm using for cURL is CURLOPT_RETURNTRANSFER.
I'm not sure if this means anything, but if I run cURL from
the command line, it doesn't segfault when visiting the same
totally empty URL.
Thanks for PHP! It's good, fast, AND cheap
--
Edit bug report at: http://bugs.php.net/?id=15307&edit=1