ID: 33770
Updated by: [EMAIL PROTECTED]
Reported By: subscription at nazarenko dot net
Status: Open
Bug Type: OpenSSL related
Operating System: Linux SuSE 9.3
PHP Version: 5.0.4 & 5.1.x-devel
New Comment:
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!)
Previous Comments:
------------------------------------------------------------------------
[2005-07-19 15:23:26] subscription at nazarenko dot net
Tried the latest snapshot as advised. Same effect as before, the
problem persists.
The configure line was given wrong. The actual is:
./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 \
--with-openssl=/usr \
--disable-simplexml \
--disable-tokenizer \
--with-curlwrappers \
--enable-memory-limit \
--enable-discard-path \
--program-suffix=-net \
--enable-ucd-snmp-hack \
--with-openssl-dir=/usr \
--with-config-file-path=/etc \
--with-mysqli=/usr/bin/mysql_config
And here is the tcpdump output for the following script run on the
machine "host1":
<? var_dump(file("https://host2/")); ?>
Both "host1" and "host2" are on the same subnet.
listening on eth0, link-type EN10MB (Ethernet), capture size 1500
bytes
15:00:48.017717 IP host2.57868 > host.https: S 1342601093:1342601093(0)
win 5840 <mss 1460,sackOK,timestamp 77012717 0,nop,wscale 2>
0x0000: 4500 003c 6968 4000 4006 f142 ac11 43fa
E..<[EMAIL PROTECTED]@..B..C.
0x0010: ac11 43f4 e20c 01bb 5006 7785 0000 0000
..C.....P.w.....
0x0020: a002 16d0 824c 0000 0204 05b4 0402 080a
.....L..........
0x0030: 0497 1eed 0000 0000 0103 0302 ............
15:00:48.017867 IP host.https > host2.57868: S 3439729057:3439729057(0)
ack 1342601094 win 5792 <mss 1460,sackOK,timestamp 13469031
77012717,nop,wscale 0>
0x0000: 4500 003c 12b7 4000 4006 47f4 ac11 43f4
E..<[EMAIL PROTECTED]@.G...C.
0x0010: ac11 43fa 01bb e20c cd06 19a1 5006 7786
..C.........P.w.
0x0020: a012 16a0 1591 0000 0204 05b4 0402 080a
................
0x0030: 00cd 8567 0497 1eed 0103 0300 ...g........
15:00:48.017888 IP host2.57868 > host.https: . ack 1 win 1460
<nop,nop,timestamp 77012718 13469031>
0x0000: 4500 0034 696a 4000 4006 f148 ac11 43fa
[EMAIL PROTECTED]@..H..C.
0x0010: ac11 43f4 e20c 01bb 5006 7786 cd06 19a2
..C.....P.w.....
0x0020: 8010 05b4 5541 0000 0101 080a 0497 1eee
....UA..........
0x0030: 00cd 8567 ...g
15:00:48.023936 IP host2.57868 > host.https: F 1:1(0) ack 1 win 1460
<nop,nop,timestamp 77012724 13469031>
0x0000: 4500 0034 696c 4000 4006 f146 ac11 43fa
[EMAIL PROTECTED]@..F..C.
0x0010: ac11 43f4 e20c 01bb 5006 7786 cd06 19a2
..C.....P.w.....
0x0020: 8011 05b4 553a 0000 0101 080a 0497 1ef4
....U:..........
0x0030: 00cd 8567 ...g
15:00:48.024125 IP host.https > host2.57868: F 1:1(0) ack 2 win 5792
<nop,nop,timestamp 13469032 77012724>
0x0000: 4500 0034 12b1 4000 4006 4802 ac11 43f4
[EMAIL PROTECTED]@.H...C.
0x0010: ac11 43fa 01bb e20c cd06 19a2 5006 7787
..C.........P.w.
0x0020: 8011 16a0 444c 0000 0101 080a 00cd 8568
....DL.........h
0x0030: 0497 1ef4 ....
15:00:48.024141 IP host2.57868 > host.https: . ack 2 win 1460
<nop,nop,timestamp 77012724 13469032>
0x0000: 4500 0034 696e 4000 4006 f144 ac11 43fa
[EMAIL PROTECTED]@..D..C.
0x0010: ac11 43f4 e20c 01bb 5006 7787 cd06 19a3
..C.....P.w.....
0x0020: 8010 05b4 5538 0000 0101 080a 0497 1ef4
....U8..........
0x0030: 00cd 8568 ...h
------------------------------------------------------------------------
[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