#38982 [Fbk]: No SSL-socket functions in CLI

From: Date: Thu, 28 Sep 2006 15:28:02 +0000
Subject: #38982 [Fbk]: No SSL-socket functions in CLI
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-102873@lists.php.net to get a copy of this message
 ID:               38982
 Updated by:       tony2001@php.net
 Reported By:      admin at denic-294 dot de
 Status:           Feedback
 Bug Type:         OpenSSL related
 Operating System: Debian different releases
 PHP Version:      4.4.4
 New Comment:

Please try to configure it with just ./configure --disable-all
--with-openssl.


Previous Comments:
------------------------------------------------------------------------

[2006-09-28 15:10:04] iliaa@php.net

Does php -m show the ssl extension as being loaded?

------------------------------------------------------------------------

[2006-09-28 14:59:59] admin at denic-294 dot de

The php-source:
---------------
1: #!/root/php-4.4.4/sapi/cli/php
2: <?php
[...]
67: $fp=fsockopen("ssl://".$host,$port,$errno,$errstr);
[...]

The result:
-----------
Warning: fsockopen(): no SSL support in this build in
/home/.../script.php on line 67

Warning: fsockopen(): unable to connect to xxxx.xxxx:12345 in
/home/.../script.php on line 67

The configure-command:
----------------------
./configure --disable-cgi --with-mysql --with-openssl
(It worked with the same command after the patch)

I tried compiling with debian woody and debian sarge on different
servers which did not affect the result in any way.

Is there any more information that would help you ?

------------------------------------------------------------------------

[2006-09-28 14:31:42] tony2001@php.net

ssl://, ftps:// and https:// work here in CLI with just --with-openssl
and without any patches.
I asked you for additional information, I didn't ask you to repeat the
same as in your first message.

------------------------------------------------------------------------

[2006-09-28 14:20:38] admin at denic-294 dot de

1. I did NOT use any binary build. i downloaded the source.tar.gz from
php.net and compiled it myself (why else would i speak about configure
options or adding an include-line to the sourcecode???) !

2. It works perfectly fine with the apache module. I do not know if it
works with the CGI-version. But it definatly does NOT work on the
CLI-version !

So do NOT set my report to bogus. If you dont want any help just tell
me and ill never report anything ever again.

------------------------------------------------------------------------

[2006-09-28 14:08:42] tony2001@php.net

Works perfectly fine. 
And we don't support any unofficial binary builds, so please report it
to maintainers of your .deb package.

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/38982

-- 
Edit this bug report at http://bugs.php.net/?id=38982&edit=1


Thread (12 messages)

« previous php.bugs (#102873) next »