Bookmarks

Yahoo Gmail Google Facebook Delicious Twitter Reddit Stumpleupon Myspace Digg

Search queries



Links

Issociate
Impressum

#1: PHP 4.4.9, Windows: php_openssl.dll is loaded, but https wrapper not

Posted on 2009-02-10 21:03:50 by Jason Cipriani

I have PHP 4.4.9 running on Windows XP SP3. I am using the standalone
PHP interpreter, not through Apache (just php.exe from the Windows
binaries).

I am attempting to use file_get_content to get a resource over HTTPS.
At first I received an "invalid argument" error, and no other errors.
I've done a lot of research and everything seems to suggest that all I
have to do is load php_openssl.dll.

I've added php_openssl.dll to php.ini. Once I did that, the error changed to:

"Unable to find wrapper 'https' - did you forget to enable it when you
configured PHP?"

I guess I did forget to configure it, but I don't know how. Everything
I have seen so far suggests that simply loading the DLL is enough to
enable OpenSSL support, define the wrapper, and solve the problem, but
that does not seem to be the case. I have done a considerable amount
of experimenting and Google searching but have made no progress.

How can I make this work? I can verify that the DLL is loaded and that
I am using the PHP.INI file that I think I'm using (by moving the DLL
out of the path to verify that PHP.EXE fails, and by modifying the
PHP.INI file and verifying the effects). I can verify that openssl
support is enabled because the openssl modules shows up in phpinfo().
However, I'm not sure how to define the https wrapper.

Thanks,
Jason

PHP Configuration Follows:

phpinfo()
PHP Version => 4.4.9

System => Windows NT AK 5.1 build 2600
Build Date => Aug 7 2008 15:03:48
Server API => Command Line Interface
Virtual Directory Support => enabled
Configuration File (php.ini) Path => C:\WINDOWS\php.ini
PHP API => 20020918
PHP Extension => 20020429
Zend Extension => 20050606
Debug Build => no
Zend Memory Manager => enabled
Thread Safety => enabled
Registered PHP Streams => php, http, ftp, compress.zlib, compress.bzip2


This program makes use of the Zend Scripting Language Engine:
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies


____________________________________________________________ ___________


Configuration

PHP Core

Directive => Local Value => Master Value
allow_call_time_pass_reference => Off => Off
allow_url_fopen => On => On
always_populate_raw_post_data => Off => Off
arg_separator.input => & => &
arg_separator.output => & => &
asp_tags => Off => Off
auto_append_file => no value => no value
auto_prepend_file => no value => no value
browscap => no value => no value
default_charset => no value => no value
default_mimetype => text/html => text/html
define_syslog_variables => Off => Off
disable_classes => no value => no value
disable_functions => no value => no value
display_errors => Off => Off
display_startup_errors => Off => Off
doc_root => no value => no value
docref_ext => no value => no value
docref_root => no value => no value
enable_dl => On => On
error_append_string => no value => no value
error_log => no value => no value
error_prepend_string => no value => no value
error_reporting => 2047 => 2047
expose_php => On => On
extension_dir => ./ => ./
file_uploads => On => On
gpc_order => GPC => GPC
highlight.bg => #FFFFFF => #FFFFFF
highlight.comment => #FF8000 => #FF8000
highlight.default => #0000BB => #0000BB
highlight.html => #000000 => #000000
highlight.keyword => #007700 => #007700
highlight.string => #DD0000 => #DD0000
html_errors => Off => On
ignore_repeated_errors => Off => Off
ignore_repeated_source => Off => Off
ignore_user_abort => Off => Off
implicit_flush => On => Off
include_path => .;c:\php4\pear => .;c:\php4\pear
log_errors => On => On
log_errors_max_len => 1024 => 1024
magic_quotes_gpc => Off => Off
magic_quotes_runtime => Off => Off
magic_quotes_sybase => Off => Off
max_execution_time => 0 => 30
max_input_nesting_level => 500 => 500
max_input_time => 60 => 60
open_basedir => no value => no value
output_buffering => 0 => 4096
output_handler => no value => no value
post_max_size => 8M => 8M
precision => 14 => 14
register_argc_argv => On => Off
register_globals => Off => Off
report_memleaks => On => On
safe_mode => Off => Off
safe_mode_exec_dir => no value => no value
safe_mode_gid => Off => Off
safe_mode_include_dir => no value => no value
sendmail_from => no value => no value
sendmail_path => no value => no value
serialize_precision => 100 => 100
short_open_tag => On => On
SMTP => localhost => localhost
smtp_port => 25 => 25
sql.safe_mode => Off => Off
track_errors => Off => Off
unserialize_callback_func => no value => no value
upload_max_filesize => 2M => 2M
upload_tmp_dir => no value => no value
user_dir => no value => no value
variables_order => GPCS => GPCS
xmlrpc_error_number => 0 => 0
xmlrpc_errors => Off => Off
y2k_compliance => On => On

Win32 API

Win32 API Support => enabled

bcmath

BCMath support => enabled

bz2

BZip2 Support => Enabled
BZip2 Version => 1.0.2, 30-Dec-2001

calendar

Calendar support => enabled

com

Directive => Local Value => Master Value
com.allow_dcom => Off => Off
com.autoregister_casesensitive => On => On
com.autoregister_typelib => Off => Off
com.autoregister_verbose => Off => Off
com.typelib_file => no value => no value

cpdf

CPDF Support => enabled
Version => 2.02-r1-2

crack

crack support => enabled

Directive => Local Value => Master Value
crack.default_dictionary => no value => no value

ctype

ctype functions => enabled

curl

CURL support => enabled
CURL Information => libcurl/7.16.0 OpenSSL/0.9.8j zlib/1.2.3

db


flat file support enabled
dba

DBA support => enabled
Supported handlers => cdb cdb_make db3 inifile flatfile

dbx

dbx support => enabled
dbx version => 1.0.0
supported databases => MySQL
ODBC
PostgreSQL
Microsoft SQL Server
FrontBase
Oracle 8 (oci8)
Sybase-CT

Directive => Local Value => Master Value
dbx.colnames_case => lowercase => lowercase

domxml

DOM/XML => enabled
DOM/XML API Version => 20020815
libxml Version => 20632
HTML Support => enabled
XPath Support => enabled
XPointer Support => enabled
DOM/XSLT => enabled
libxslt Version => 1.1.23
libxslt compiled against libxml Version => 2.6.32
DOM/EXSLT => enabled
libexslt Version => 0.8.13

exif

EXIF Support => enabled
EXIF Version => 1.4 $Id: exif.c,v 1.118.2.37.2.8 2007/12/31 07:22:46
sebastian Exp $
Supported EXIF Version => 0220
Supported filetypes => JPEG,TIFF

ftp

FTP support => enabled

gd

GD Support => enabled
GD Version => bundled (2.0.28 compatible)
FreeType Support => enabled
FreeType Linkage => with freetype
GIF Read Support => enabled
GIF Create Support => enabled
JPG Support => enabled
PNG Support => enabled
WBMP Support => enabled
XBM Support => enabled

gettext

GetText Support => enabled

hyperwave

Hyperwave Support => enabled
HG-CSP Version => 7.17

Directive => Local Value => Master Value
hyperwave.allow_persistent => 0 => 0
hyperwave.default_port => 418 => 418

iconv

iconv support => enabled
iconv implementation => libiconv
iconv library version => 1.8

Directive => Local Value => Master Value
iconv.input_encoding => ISO-8859-1 => ISO-8859-1
iconv.internal_encoding => ISO-8859-1 => ISO-8859-1
iconv.output_encoding => ISO-8859-1 => ISO-8859-1

imap

IMAP c-Client Version => 2004
SSL Support => enabled

java

Directive => Local Value => Master Value
java.class.path => no value => no value
java.home => no value => no value
java.library => jvm.dll => jvm.dll
java.library.path => no value => no value

ldap

LDAP Support => enabled
RCS Version => $Id: ldap.c,v 1.130.2.13.2.3 2007/12/31 07:22:48 sebastian Exp $
Total Links => 0/unlimited
API Version => 2004
Vendor Name => OpenLDAP
Vendor Version => 0

mbstring

Multibyte Support => enabled
Japanese support => enabled
Simplified chinese support => enabled
Traditional chinese support => enabled
Korean support => enabled
Russian support => enabled
Multibyte (japanese) regex support => enabled

mbstring extension makes use
of "streamable kanji code filter and converter", which is distributed
under the GNU Lesser General Public License version 2.1.

Directive => Local Value => Master Value
mbstring.detect_order => no value => no value
mbstring.encoding_translation => Off => Off
mbstring.func_overload => 0 => 0
mbstring.http_input => pass => pass
mbstring.http_output => pass => pass
mbstring.internal_encoding => ISO-8859-1 => no value
mbstring.language => neutral => neutral
mbstring.substitute_character => no value => no value

mime_magic

mime_magic support => enabled

Directive => Local Value => Master Value
mime_magic.magicfile => c:\php4\magic.mime => c:\php4\magic.mime

ming

Ming SWF output library => enabled
Version => 0.3beta1

mysql

MySQL Support => enabled
Active Persistent Links => 0
Active Links => 0
Client API version => 3.23.49

Directive => Local Value => Master Value
mysql.allow_persistent => On => On
mysql.connect_timeout => 60 => 60
mysql.default_host => no value => no value
mysql.default_password => no value => no value
mysql.default_port => no value => no value
mysql.default_socket => no value => no value
mysql.default_user => no value => no value
mysql.max_links => Unlimited => Unlimited
mysql.max_persistent => Unlimited => Unlimited
mysql.trace_mode => Off => Off

odbc

ODBC Support => enabled
Active Persistent Links => 0
Active Links => 0
ODBC library => Win32

Directive => Local Value => Master Value
odbc.allow_persistent => On => On
odbc.check_persistent => On => On
odbc.default_db => no value => no value
odbc.default_pw => no value => no value
odbc.default_user => no value => no value
odbc.defaultbinmode => return as is => return as is
odbc.defaultlrl => return up to 4096 bytes => return up to 4096 bytes
odbc.max_links => Unlimited => Unlimited
odbc.max_persistent => Unlimited => Unlimited

openssl

OpenSSL support => enabled
OpenSSL Version => OpenSSL 0.9.8g 19 Oct 2007

overload

User-Space Object Overloading Support => enabled

pcre

PCRE (Perl Compatible Regular Expressions) Support => enabled
PCRE Library Version => 7.7 2008-05-07

pdf

PDF Support => enabled
PDFlib GmbH Version => 5.0.3
Revision => $Revision: 1.112.2.11.2.3 $

session

Session Support => enabled
Registered save handlers => files user

Directive => Local Value => Master Value
session.auto_start => Off => Off
session.bug_compat_42 => Off => Off
session.bug_compat_warn => On => On
session.cache_expire => 180 => 180
session.cache_limiter => nocache => nocache
session.cookie_domain => no value => no value
session.cookie_lifetime => 0 => 0
session.cookie_path => / => /
session.cookie_secure => Off => Off
session.entropy_file => no value => no value
session.entropy_length => 0 => 0
session.gc_divisor => 1000 => 1000
session.gc_maxlifetime => 1440 => 1440
session.gc_probability => 1 => 1
session.name => PHPSESSID => PHPSESSID
session.referer_check => no value => no value
session.save_handler => files => files
session.save_path => no value => no value
session.serialize_handler => php => php
session.use_cookies => On => On
session.use_only_cookies => Off => Off
session.use_trans_sid => Off => Off

shmop

shmop support => enabled

sockets

Sockets Support => enabled

standard

Regex Library => Bundled library enabled
Dynamic Library Support => enabled
Internal Sendmail Support for Windows => enabled

Directive => Local Value => Master Value
assert.active => 1 => 1
assert.bail => 0 => 0
assert.callback => no value => no value
assert.quiet_eval => 0 => 0
assert.warning => 1 => 1
auto_detect_line_endings => 0 => 0
default_socket_timeout => 60 => 60
safe_mode_allowed_env_vars => PHP_ => PHP_
safe_mode_protected_env_vars => LD_LIBRARY_PATH => LD_LIBRARY_PATH
url_rewriter.tags =>
a=href,area=href,frame=src,input=src,form=fakeentry =>
a=href,area=href,frame=src,input=src,form=fakeentry
user_agent => no value => no value

tokenizer

Tokenizer Support => enabled

wddx

WDDX Support => enabled
WDDX Session Serializer => enabled

xml

XML Support => active
XML Namespace Support => active
EXPAT Version => 1.95.6

xmlrpc

core library version => xmlrpc-epi v. 0.51
php extension version => 0.51
author => Dan Libby
homepage => http://xmlrpc-epi.sourceforge.net
open sourced by => Epinions.com

zip

Zip support => enabled

zlib

ZLib Support => enabled
Compiled Version => 1.2.3
Linked Version => 1.2.3

Directive => Local Value => Master Value
zlib.output_compression => Off => Off
zlib.output_compression_level => -1 => -1
zlib.output_handler => no value => no value

Additional Modules

Module Name
dbase
filepro

Environment

Variable => Value
ALLUSERSPROFILE => C:\Documents and Settings\All Users
APPDATA => C:\Documents and Settings\Jason\Application Data
BDSCOMMONDIR => C:\Documents and Settings\All Users\Documents\RAD Studio\5.0
CASURGICA_ROOT => c:/work/bluebelt/casurgica
CLASSPATH => .;C:\Program Files\Java\jre6\lib\ext\QTJava.zip
COMMONPROGRAMFILES => C:\Program Files\Common Files
COMPUTERNAME => AK
COMSPEC => C:\WINDOWS\system32\cmd.exe
CVSROOT => :ext:jason@66.202.9.172:/usr/local/cvs-repository
CVS_RSH => ssh
DCMDICTPATH => c:/projects/c/dicomcontrast2/dicom.dic
DXSDK_DIR => C:\Program Files\Microsoft DirectX SDK (June 2007)\
EDITOR => xemacs
FP_NO_HOST_CHECK => NO
HISTFILE => C:/Programs/msys/1.0/home/Jason/.bash_history
HOME => C:/Programs/msys/1.0/home/Jason
HOMEDRIVE => C:
HOMEPATH => \
HOSTNAME => AK
HOSTTYPE => i686
HYPERION_ROOT => c:/work/hyperion_shared
IBMSHARE => C:\IBMSHARE
INCLUDE => C:\Program Files\Microsoft Visual
Studio\VC98\atl\include;C:\Program Files\Microsoft Visual
Studio\VC98\mfc\include;C:\Program Files\Microsoft Visual
Studio\VC98\include
INTEL_LICENSE_FILE => C:\Program Files\Common Files\Intel\Licenses
LIB => C:\Program Files\Microsoft Visual
Studio\VC98\mfc\lib;C:\Program Files\Microsoft Visual Studio\VC98\lib
LOGNAME => Jason
LOGONSERVER => \\AK
MACHTYPE => i686-pc-msys
MAKE_MODE => unix
MSDEVDIR => C:\Program Files\Microsoft Visual Studio\Common\MSDev98
MSYSTEM => MINGW32
NUMBER_OF_PROCESSORS => 2
OLDPWD => c:/php
OS => Windows_NT
OSTYPE => msys
PACKAGE_INCLUDE_LOCATION => C:\projects\bcb\components\build\include
PATH => .;C:\Programs\msys\1.0\local\bin;C:\Programs\msys\1.0\mingw\ bin;C:\Programs\msys\1.0\bin;c:\Program
Files\JomiTech\TwineCompiler;c:\Program Files\CodeGear\RAD
Studio\5.0\bin;c:\Documents and Settings\All Users\Documents\RAD
Studio\5.0\Bpl;c:\Program Files\Microsoft DirectX SDK (June
2007)\Utilities\Bin\x86;c:\Programs\Tcl\bin;c:\program
files\autodesk\maya8.5\bin;c:\program
files\imagemagick-6.3.2-q16;c:\program
files\thinkpad\utilities;c:\windows\system32;c:\windows;c:\w indows\system32\wbem;c:\program
files\intel\wireless\bin\;c:\program files\ibm thinkvantage\client
security solution;c:\program files\doxygen\bin;c:\program files\ati
technologies\ati.ace\;c:\program files\common
files\adobe\agl;c:\Program Files\MATLAB\R2007a\bin;c:\Program
Files\MATLAB\R2007a\bin\win32;c:\php;c:\Program
Files\Intel\WiFi\bin\;c:\Program Files\Common Files\Lenovo;c:\Program
Files\QuickTime\QTSystem\;c:\Program Files\Microsoft Visual
Studio\Common\Tools\WinNT;c:\Program Files\Microsoft Visual
Studio\Common\MSDev98\Bin;c:\Program Files\Microsoft Visual
Studio\Common\Tools;c:\Program Files\Microsoft Visual
Studio\VC98\bin;c:\Program
Files\XEmacs\XEmacs-21.4.19\i586-pc-win32;C:\Programs\msys\1 .0\bin;C:\Programs\msys\1.0\mingw\bin;c:\projects\bcb\compon ents\build\lib;c:\work\bluebelt\casurgica\bin;c:\Programs\tk cvs\bin;c;\php\extensions
PATHEXT => .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.tcl
PATIENT_MASTER_DIR => c:/work/bluebelt/casurgica/patients
PROCESSOR_ARCHITECTURE => x86
PROCESSOR_IDENTIFIER => x86 Family 6 Model 14 Stepping 8, GenuineIntel
PROCESSOR_LEVEL => 6
PROCESSOR_REVISION => 0e08
PROGRAMFILES => C:\Program Files
PROMPT => $P$G
PS1 => \[\033]0;$MSYSTEM:\w\007
\033[32m\]\u@\h \[\033[33m\w\033[0m\]
$
PWD => c:/php/cli
QTJAVA => C:\Program Files\Java\jre6\lib\ext\QTJava.zip
RR => C:\Program Files\IBM ThinkVantage\Rescue and Recovery
SEQUENCER_DEVELOPMENT => 1
SESSIONNAME => Console
SHELL => C:/Programs/msys/1.0/bin/sh
SHLVL => 1
SONICCENTRAL => c:\Program Files\Common Files\Sonic Shared\Sonic Central\
SSH_AGENT_PID => 5812
SSH_AUTH_SOCK => C:/DOCUME~1/Jason/LOCALS~1/Temp/ssh-EVTo3164/agent.3164
SYSTEMDRIVE => C:
SYSTEMROOT => C:\WINDOWS
TEMP => C:/DOCUME~1/Jason/LOCALS~1/Temp
TERM => cygwin
TMP => C:/DOCUME~1/Jason/LOCALS~1/Temp
TPCCOMMON => C:\PROGRA~1\THINKV~2\PrdCtr
TVT => C:\Program Files\Lenovo
TVTPYDIR => C:\Program Files\IBM ThinkVantage\Common\Python24
USERDOMAIN => AK
USERNAME => Jason
USERPROFILE => C:\Documents and Settings\Jason
VS80COMNTOOLS => C:\Program Files\Microsoft Visual Studio 8\Common7\Tools\
VS90COMNTOOLS => C:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools\
WINDIR => C:\WINDOWS
_ => ./php
_NT_SYMBOL_PATH =>

PHP Variables

Variable => Value
_SERVER["ALLUSERSPROFILE"] => C:\Documents and Settings\All Users
_SERVER["APPDATA"] => C:\Documents and Settings\Jason\Application Data
_SERVER["BDSCOMMONDIR"] => C:\Documents and Settings\All
Users\Documents\RAD Studio\5.0
_SERVER["CASURGICA_ROOT"] => c:/work/bluebelt/casurgica
_SERVER["CLASSPATH"] => .;C:\Program Files\Java\jre6\lib\ext\QTJava.zip
_SERVER["COMMONPROGRAMFILES"] => C:\Program Files\Common Files
_SERVER["COMPUTERNAME"] => AK
_SERVER["COMSPEC"] => C:\WINDOWS\system32\cmd.exe
_SERVER["CVSROOT"] => :ext:jason@66.202.9.172:/usr/local/cvs-repository
_SERVER["CVS_RSH"] => ssh
_SERVER["DCMDICTPATH"] => c:/projects/c/dicomcontrast2/dicom.dic
_SERVER["DXSDK_DIR"] => C:\Program Files\Microsoft DirectX SDK (June 2007)\
_SERVER["EDITOR"] => xemacs
_SERVER["FP_NO_HOST_CHECK"] => NO
_SERVER["HISTFILE"] => C:/Programs/msys/1.0/home/Jason/.bash_history
_SERVER["HOME"] => C:/Programs/msys/1.0/home/Jason
_SERVER["HOMEDRIVE"] => C:
_SERVER["HOMEPATH"] => \
_SERVER["HOSTNAME"] => AK
_SERVER["HOSTTYPE"] => i686
_SERVER["HYPERION_ROOT"] => c:/work/hyperion_shared
_SERVER["IBMSHARE"] => C:\IBMSHARE
_SERVER["INCLUDE"] => C:\Program Files\Microsoft Visual
Studio\VC98\atl\include;C:\Program Files\Microsoft Visual
Studio\VC98\mfc\include;C:\Program Files\Microsoft Visual
Studio\VC98\include
_SERVER["INTEL_LICENSE_FILE"] => C:\Program Files\Common Files\Intel\Licenses
_SERVER["LIB"] => C:\Program Files\Microsoft Visual
Studio\VC98\mfc\lib;C:\Program Files\Microsoft Visual Studio\VC98\lib
_SERVER["LOGNAME"] => Jason
_SERVER["LOGONSERVER"] => \\AK
_SERVER["MACHTYPE"] => i686-pc-msys
_SERVER["MAKE_MODE"] => unix
_SERVER["MSDEVDIR"] => C:\Program Files\Microsoft Visual Studio\Common\MSDev98
_SERVER["MSYSTEM"] => MINGW32
_SERVER["NUMBER_OF_PROCESSORS"] => 2
_SERVER["OLDPWD"] => c:/php
_SERVER["OS"] => Windows_NT
_SERVER["OSTYPE"] => msys
_SERVER["PACKAGE_INCLUDE_LOCATION"] => C:\projects\bcb\components\build\include
_SERVER["PATH"] =>
..;C:\Programs\msys\1.0\local\bin;C:\Programs\msys\1.0\mingw \bin;C:\Programs\msys\1.0\bin;c:\Program
Files\JomiTech\TwineCompiler;c:\Program Files\CodeGear\RAD
Studio\5.0\bin;c:\Documents and Settings\All Users\Documents\RAD
Studio\5.0\Bpl;c:\Program Files\Microsoft DirectX SDK (June
2007)\Utilities\Bin\x86;c:\Programs\Tcl\bin;c:\program
files\autodesk\maya8.5\bin;c:\program
files\imagemagick-6.3.2-q16;c:\program
files\thinkpad\utilities;c:\windows\system32;c:\windows;c:\w indows\system32\wbem;c:\program
files\intel\wireless\bin\;c:\program files\ibm thinkvantage\client
security solution;c:\program files\doxygen\bin;c:\program files\ati
technologies\ati.ace\;c:\program files\common
files\adobe\agl;c:\Program Files\MATLAB\R2007a\bin;c:\Program
Files\MATLAB\R2007a\bin\win32;c:\php;c:\Program
Files\Intel\WiFi\bin\;c:\Program Files\Common Files\Lenovo;c:\Program
Files\QuickTime\QTSystem\;c:\Program Files\Microsoft Visual
Studio\Common\Tools\WinNT;c:\Program Files\Microsoft Visual
Studio\Common\MSDev98\Bin;c:\Program Files\Microsoft Visual
Studio\Common\Tools;c:\Program Files\Microsoft Visual
Studio\VC98\bin;c:\Program
Files\XEmacs\XEmacs-21.4.19\i586-pc-win32;C:\Programs\msys\1 .0\bin;C:\Programs\msys\1.0\mingw\bin;c:\projects\bcb\compon ents\build\lib;c:\work\bluebelt\casurgica\bin;c:\Programs\tk cvs\bin;c;\php\extensions
_SERVER["PATHEXT"] => .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.tcl
_SERVER["PATIENT_MASTER_DIR"] => c:/work/bluebelt/casurgica/patients
_SERVER["PROCESSOR_ARCHITECTURE"] => x86
_SERVER["PROCESSOR_IDENTIFIER"] => x86 Family 6 Model 14 Stepping 8,
GenuineIntel
_SERVER["PROCESSOR_LEVEL"] => 6
_SERVER["PROCESSOR_REVISION"] => 0e08
_SERVER["PROGRAMFILES"] => C:\Program Files
_SERVER["PROMPT"] => $P$G
_SERVER["PS1"] => \[\033]0;$MSYSTEM:\w\007
\033[32m\]\u@\h \[\033[33m\w\033[0m\]
$
_SERVER["PWD"] => c:/php/cli
_SERVER["QTJAVA"] => C:\Program Files\Java\jre6\lib\ext\QTJava.zip
_SERVER["RR"] => C:\Program Files\IBM ThinkVantage\Rescue and Recovery
_SERVER["SEQUENCER_DEVELOPMENT"] => 1
_SERVER["SESSIONNAME"] => Console
_SERVER["SHELL"] => C:/Programs/msys/1.0/bin/sh
_SERVER["SHLVL"] => 1
_SERVER["SONICCENTRAL"] => c:\Program Files\Common Files\Sonic
Shared\Sonic Central\
_SERVER["SSH_AGENT_PID"] => 5812
_SERVER["SSH_AUTH_SOCK"] =>
C:/DOCUME~1/Jason/LOCALS~1/Temp/ssh-EVTo3164/agent.3164
_SERVER["SYSTEMDRIVE"] => C:
_SERVER["SYSTEMROOT"] => C:\WINDOWS
_SERVER["TEMP"] => C:/DOCUME~1/Jason/LOCALS~1/Temp
_SERVER["TERM"] => cygwin
_SERVER["TMP"] => C:/DOCUME~1/Jason/LOCALS~1/Temp
_SERVER["TPCCOMMON"] => C:\PROGRA~1\THINKV~2\PrdCtr
_SERVER["TVT"] => C:\Program Files\Lenovo
_SERVER["TVTPYDIR"] => C:\Program Files\IBM ThinkVantage\Common\Python24
_SERVER["USERDOMAIN"] => AK
_SERVER["USERNAME"] => Jason
_SERVER["USERPROFILE"] => C:\Documents and Settings\Jason
_SERVER["VS80COMNTOOLS"] => C:\Program Files\Microsoft Visual Studio
8\Common7\Tools\
_SERVER["VS90COMNTOOLS"] => C:\Program Files\Microsoft Visual Studio
9.0\Common7\Tools\
_SERVER["WINDIR"] => C:\WINDOWS
_SERVER["_"] => ./php
_SERVER["_NT_SYMBOL_PATH"] =>
_SERVER["PHP_SELF"] =>
_SERVER["SCRIPT_NAME"] =>
_SERVER["SCRIPT_FILENAME"] =>
_SERVER["PATH_TRANSLATED"] =>
_SERVER["DOCUMENT_ROOT"] =>
_SERVER["argv"] => Array
(
)

_SERVER["argc"] => 0

PHP License
This program is free software; you can redistribute it and/or modify
it under the terms of the PHP License as published by the PHP Group
and included in the distribution in the file: LICENSE

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

If you did not receive a copy of the PHP license, or have any
questions about PHP licensing, please contact license@php.net.

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Report this message

Mr Ad

Google

#2: Re: PHP 4.4.9, Windows: php_openssl.dll is loaded, but

Posted on 2009-02-11 13:55:59 by Marco Schuster

2009/2/10 Jason Cipriani :
> I've added php_openssl.dll to php.ini. Once I did that, the error changed=
to:
>
> "Unable to find wrapper 'https' - did you forget to enable it when you
> configured PHP?"
>
> I guess I did forget to configure it, but I don't know how. Everything
> I have seen so far suggests that simply loading the DLL is enough to
> enable OpenSSL support, define the wrapper, and solve the problem, but
> that does not seem to be the case. I have done a considerable amount
> of experimenting and Google searching but have made no progress.
>
> How can I make this work? I can verify that the DLL is loaded and that
> I am using the PHP.INI file that I think I'm using (by moving the DLL
> out of the path to verify that PHP.EXE fails, and by modifying the
> PHP.INI file and verifying the effects). I can verify that openssl
> support is enabled because the openssl modules shows up in phpinfo().
> However, I'm not sure how to define the https wrapper.
>

What PHP version is this? The dates from the phpconfig output indicate
you use a very old PHP version.

Marco


--=20
VMSoft GbR
Nabburger Str. 15
81737 München
Geschätsführer: Marco Schuster, Volker Hemmert
http://vmsoft-gbr.de

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Report this message

#3: Re: PHP 4.4.9, Windows: php_openssl.dll is loaded, but

Posted on 2009-02-11 16:49:02 by Jason Cipriani

On Wed, Feb 11, 2009 at 7:55 AM, Marco Schuster
wrote:
> 2009/2/10 Jason Cipriani :
>> I've added php_openssl.dll to php.ini. Once I did that, the error changed to:
>>
>> "Unable to find wrapper 'https' - did you forget to enable it when you
>> configured PHP?"
>>
>> I guess I did forget to configure it, but I don't know how. Everything
>> I have seen so far suggests that simply loading the DLL is enough to
>> enable OpenSSL support, define the wrapper, and solve the problem, but
>> that does not seem to be the case. I have done a considerable amount
>> of experimenting and Google searching but have made no progress.
>>
>> How can I make this work? I can verify that the DLL is loaded and that
>> I am using the PHP.INI file that I think I'm using (by moving the DLL
>> out of the path to verify that PHP.EXE fails, and by modifying the
>> PHP.INI file and verifying the effects). I can verify that openssl
>> support is enabled because the openssl modules shows up in phpinfo().
>> However, I'm not sure how to define the https wrapper.
>>
>
> What PHP version is this? The dates from the phpconfig output indicate
> you use a very old PHP version.

It's 4.4.9 (you clipped off the part of my message with the version
number :-). It's the most "recent" version of PHP 4. I'm actually
asking this question on behalf of our web programmers, who are pretty
far into development and locked into PHP 4 (they're using 4.4.7, but
I'm assuming they won't mind switching to 4.4.9). Now they need to
retrieve a resource from one of our servers via HTTPS.

Is it just not possible to make HTTPS connections from PHP 4 scripts
on Windows? Like I mentioned, everything I've read suggests that
loading php_openssl.dll will enable the https wrapper as well, but it
seems like I'm missing a step.

Thanks,
Jason

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Report this message

#4: Re: PHP 4.4.9, Windows: php_openssl.dll is loaded, but

Posted on 2009-02-11 17:16:38 by Contact

I've had similar issues with self-signed certificates and PHP 5.x. The =20
way I got around it was to install the cURL libraries and use code =20
like this:

$channel =3D curl_init();
curl_setopt($channel, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($channel, CURLOPT_URL, $yourHttpsUrlHere);
curl_setopt($channel, CURLOPT_CONNECTTIMEOUT, 30);
curl_setopt($channel, CURLOPT_BUFFERSIZE, 500000);
curl_setopt($channel, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($channel, CURLOPT_RETURNTRANSFER, true);
$content =3D curl_exec($channel);
curl_close($channel);

Not ideal, but it finally worked for me.

-Joe

Quoting Jason Cipriani :

> On Wed, Feb 11, 2009 at 7:55 AM, Marco Schuster
> wrote:
>> 2009/2/10 Jason Cipriani :
>>> I've added php_openssl.dll to php.ini. Once I did that, the error =20
>>> changed to:
>>>
>>> "Unable to find wrapper 'https' - did you forget to enable it when you
>>> configured PHP?"
>>>
>>> I guess I did forget to configure it, but I don't know how. Everything
>>> I have seen so far suggests that simply loading the DLL is enough to
>>> enable OpenSSL support, define the wrapper, and solve the problem, but
>>> that does not seem to be the case. I have done a considerable amount
>>> of experimenting and Google searching but have made no progress.
>>>
>>> How can I make this work? I can verify that the DLL is loaded and that
>>> I am using the PHP.INI file that I think I'm using (by moving the DLL
>>> out of the path to verify that PHP.EXE fails, and by modifying the
>>> PHP.INI file and verifying the effects). I can verify that openssl
>>> support is enabled because the openssl modules shows up in phpinfo().
>>> However, I'm not sure how to define the https wrapper.
>>>
>>
>> What PHP version is this? The dates from the phpconfig output indicate
>> you use a very old PHP version.
>
> It's 4.4.9 (you clipped off the part of my message with the version
> number :-). It's the most "recent" version of PHP 4. I'm actually
> asking this question on behalf of our web programmers, who are pretty
> far into development and locked into PHP 4 (they're using 4.4.7, but
> I'm assuming they won't mind switching to 4.4.9). Now they need to
> retrieve a resource from one of our servers via HTTPS.
>
> Is it just not possible to make HTTPS connections from PHP 4 scripts
> on Windows? Like I mentioned, everything I've read suggests that
> loading php_openssl.dll will enable the https wrapper as well, but it
> seems like I'm missing a step.
>
> Thanks,
> Jason
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>




--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Report this message

#5: Re: PHP 4.4.9, Windows: php_openssl.dll is loaded, but

Posted on 2009-02-13 18:47:09 by Jason Cipriani

On Wed, Feb 11, 2009 at 11:16 AM, wrote:
> I've had similar issues with self-signed certificates and PHP 5.x. The way I
> got around it was to install the cURL libraries and use code like this:
>
> $channel = curl_init();
> curl_setopt($channel, CURLOPT_SSL_VERIFYPEER, false);
> curl_setopt($channel, CURLOPT_URL, $yourHttpsUrlHere);
> curl_setopt($channel, CURLOPT_CONNECTTIMEOUT, 30);
> curl_setopt($channel, CURLOPT_BUFFERSIZE, 500000);
> curl_setopt($channel, CURLOPT_FOLLOWLOCATION, true);
> curl_setopt($channel, CURLOPT_RETURNTRANSFER, true);
> $content = curl_exec($channel);
> curl_close($channel);
>
> Not ideal, but it finally worked for me.

I did get it working using PHP 4 + curl, thanks to your suggestion,
but in the end I ended up switching to PHP 5. After doing that;
loading ssh_openssl.dll was all it took to get everything working
correctly with file_get_content() -- it will always be a mystery to me
why PHP 4 gave so much trouble; it *is* documented to support https
requests.

Thanks again!
Jason




>
> -Joe
>
> Quoting Jason Cipriani :
>
>> On Wed, Feb 11, 2009 at 7:55 AM, Marco Schuster
>> wrote:
>>>
>>> 2009/2/10 Jason Cipriani :
>>>>
>>>> I've added php_openssl.dll to php.ini. Once I did that, the error
>>>> changed to:
>>>>
>>>> "Unable to find wrapper 'https' - did you forget to enable it when you
>>>> configured PHP?"
>>>>
>>>> I guess I did forget to configure it, but I don't know how. Everything
>>>> I have seen so far suggests that simply loading the DLL is enough to
>>>> enable OpenSSL support, define the wrapper, and solve the problem, but
>>>> that does not seem to be the case. I have done a considerable amount
>>>> of experimenting and Google searching but have made no progress.
>>>>
>>>> How can I make this work? I can verify that the DLL is loaded and that
>>>> I am using the PHP.INI file that I think I'm using (by moving the DLL
>>>> out of the path to verify that PHP.EXE fails, and by modifying the
>>>> PHP.INI file and verifying the effects). I can verify that openssl
>>>> support is enabled because the openssl modules shows up in phpinfo().
>>>> However, I'm not sure how to define the https wrapper.
>>>>
>>>
>>> What PHP version is this? The dates from the phpconfig output indicate
>>> you use a very old PHP version.
>>
>> It's 4.4.9 (you clipped off the part of my message with the version
>> number :-). It's the most "recent" version of PHP 4. I'm actually
>> asking this question on behalf of our web programmers, who are pretty
>> far into development and locked into PHP 4 (they're using 4.4.7, but
>> I'm assuming they won't mind switching to 4.4.9). Now they need to
>> retrieve a resource from one of our servers via HTTPS.
>>
>> Is it just not possible to make HTTPS connections from PHP 4 scripts
>> on Windows? Like I mentioned, everything I've read suggests that
>> loading php_openssl.dll will enable the https wrapper as well, but it
>> seems like I'm missing a step.
>>
>> Thanks,
>> Jason
>>
>> --
>> PHP Windows Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
>
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Report this message