ID: 33770
User updated by: subscription at nazarenko dot net
-Summary: file() does not work with https on 64-bit Linux
Reported By: subscription at nazarenko dot net
-Status: Feedback
+Status: Open
Bug Type: OpenSSL related
Operating System: Linux SuSE 9.3
PHP Version: 5CVS-2005-07-19
New Comment:
Thank you for a speedy response.
Indeed, with the minimal configure, it started working again.
After 1 hour of mixing and matching the modules I found the culprit.
It is: curl-7.13.0 libraries compiled in with the following
parameters:
--with-curl --with-curlwrappers
Actually, without "--with-curlwrappers" it works fine. Tested both for
5.0.4 and 5CVS
Previous Comments:
------------------------------------------------------------------------
[2005-07-19 21:32:47] [EMAIL PROTECTED]
Works fine for me under FC4 x86_64smp.
Try with this configure line:
./configure --disable-all --disable-cgi --with-openssl
And use sapi/cli/php to run your script.
------------------------------------------------------------------------
[2005-07-19 21:23:47] [EMAIL PROTECTED]
subscription at nazarenko dot net:
"Tried the latest snapshot as advised. Same effect as before, the
problem persists.
Test script:
<?php var_dump(file("https://host2/")); ?>
Both "host1" and "host2" are on the same subnet. "
(do NOT add any huge outputs of anything unless asked for!)
------------------------------------------------------------------------
[2005-07-19 14:38:45] [EMAIL PROTECTED]
Please try using this CVS snapshot:
http://snaps.php.net/php5-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5-win32-latest.zip
------------------------------------------------------------------------
[2005-07-19 14:35:37] subscription at nazarenko dot net
Description:
------------
I have 64bit SuSE 9.3 and try to use file() function to read a webpage
via http/https.
The http protocol is ok, however https returns empty result without any
errors/notices (E_ALL is on).
I have compiled in OpenSSL support (OpenSSL is v0.9.7e).
I have another machine with 32bit Linux on it in the same network, I
have compiled PHP with similar settings and https works fine on it.
Reproduce code:
---------------
Using the following configure:
./configure --with-snmp --enable-cli --with-curl \
-disable-dom --prefix=/usr --disable-cgi \
--disable-spl --disable-xml --without-pear \
--disable-ipv6 --enable-shmop --enable-pcntl \
--without-iconv --disable-ctype --disable-libxml \
--enable-sysvsem --enable-sysvshm --enable-sockets \
--without-sqlite --disable-session --enable-sigchild \
--disable-simplexml --disable-tokenizer \
--with-curlwrappers --enable-memory-limit \
--enable-discard-path --program-suffix=-net \
--enable-ucd-snmp-hack --with-config-file-path=/etc \
--with-mysqli=/usr/bin/mysql_config
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=33770&edit=1