ID: 41889 Updated by: [EMAIL PROTECTED] Reported By: roman dot vanicek at gmail dot com -Status: Open +Status: Feedback Bug Type: Reproducible crash Operating System: Ubuntu Linux 6.06 PHP Version: 5.2.3 New Comment:
Thank you for this bug report. To properly diagnose the problem, we need a backtrace to see what is happening behind the scenes. To find out how to generate a backtrace, please read http://bugs.php.net/bugs-generating-backtrace.php for *NIX and http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32 Once you have generated a backtrace, please submit it to this bug report and change the status back to "Open". Thank you for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2007-07-03 14:21:59] roman dot vanicek at gmail dot com 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 this bug report at http://bugs.php.net/?id=41889&edit=1