#40049 [NEW]: Closing an SSL connection results in a Segmentation fault
| From: | bugs dot php dot net at daskalou dot com | Date: | Sun, 07 Jan 2007 16:44:05 +0000 |
| Subject: | #40049 [NEW]: Closing an SSL connection results in a Segmentation fault | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-107278@lists.php.net to get a copy of this message | ||
From: bugs dot php dot net at daskalou dot com
Operating system: CentOS 3.8 (Linux Kernel 2.4.20)
PHP version: 5.2.0
PHP Bug Type: cURL related
Bug description: Closing an SSL connection results in a Segmentation fault
Description:
------------
When using either the curl_close() or fclose() functions on an open
HTTPS/SSL connection (open with either the curl functions or fopen() or
fsockopen()) using the PHP CLI, I get this:
Segmentation fault (core dumped)
Note that the problem only occurs when using the HTTPS protocol but not
with the HTTP protocol.
Others are having this same problem with HTTPS/SSL access but it looks
like the PHP developers are saying it's not a bug with PHP but rather with
MySQL:
http://bugs.php.net/bug.php?id=39570
http://bugs.php.net/bug.php?id=38393
My current installation details are:
PHP 5.2
MySQL 5.0.27-0
Apache 1.3.37
Hosted on a CentOS 3.8 installation (which includes cPanel)
This bug was not present when I had PHP 4.4.3 and MySQL 5.0.25 installed.
Reproduce code:
---------------
$fp = fopen("https://webmail.optusnet.com.au/",
"r");
fclose($fp);
echo "done!";
Expected result:
----------------
It should print out "done!"
Actual result:
--------------
Segmentation fault (cored dumped)
--
Edit bug report at http://bugs.php.net/?id=40049&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=40049&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=40049&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=40049&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=40049&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=40049&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=40049&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=40049&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=40049&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=40049&r=support
Expected behavior: http://bugs.php.net/fix.php?id=40049&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=40049&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=40049&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=40049&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=40049&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=40049&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=40049&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=40049&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=40049&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=40049&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=40049&r=mysqlcfg