From: roman dot vanicek at gmail dot com Operating system: Ubuntu Linux 6.06 PHP version: 5.2.3 PHP Bug Type: Reproducible crash Bug description: file_get_contents crashes on some SSL sites
Description: ------------ I have a PHP compiled with OpenSSL support. Calling function file_get_contents with an URL should give me a string but it crashes instead (segmentation fault). If my PHP runs as CLI or Apache2 module, it works fine. If my PHP runs as Apache1.3 module, it segfaults. With HTTP url, it works. With HTTPS url it works for some sites and crashes for others. With PHP version 5.2.0, everything works fine under the same circumstances (Apache1.3 module, HTTPS, same sites). Reproduce code: --------------- <?php $s = file_get_contents( "https://www.mikropost.cz/index.php" ); var_dump($s); ?> Expected result: ---------------- The contents of the web-page. Actual result: -------------- Nothing - Apache process ends with segmentation fault. -- Edit bug report at http://bugs.php.net/?id=41889&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=41889&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=41889&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=41889&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=41889&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=41889&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=41889&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=41889&r=needscript Try newer version: http://bugs.php.net/fix.php?id=41889&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=41889&r=support Expected behavior: http://bugs.php.net/fix.php?id=41889&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=41889&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=41889&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=41889&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=41889&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=41889&r=dst IIS Stability: http://bugs.php.net/fix.php?id=41889&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=41889&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=41889&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=41889&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=41889&r=mysqlcfg
