FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » PHP 5.3.3 Crashes on Win7
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
PHP 5.3.3 Crashes on Win7 [message #169957] Fri, 01 October 2010 21:29 Go to next message
Bob Smith is currently offline  Bob Smith
Messages: 11
Registered: October 2010
Karma: 0
Junior Member
Running version 5.3.3 (cli) on Win7/64 runs well from the cmd.exe line
after a virgin install.

Including ANY DLL in the [PHP] section of the php.ini file even if it
doesn't exist (e.g. extension=php_foo.dll) crashes PHP (e.g. php
--version) in php5ts.dll as in

Problem signature:
Problem Event Name: APPCRASH
Application Name: php.exe
Application Version: 5.3.3.0
Application Timestamp: 4c474a74
Fault Module Name: php5ts.dll
Fault Module Version: 5.3.3.0
Fault Module Timestamp: 4c4749e1
Exception Code: c0000005
Exception Offset: 000f5db0
OS Version: 6.1.7600.2.0.0.256.48
Locale ID: 1033
Additional Information 1: 0a9e
Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
Additional Information 3: 0a9e
Additional Information 4: 0a9e372d3b4ad19135b953a78882e789

As I can't even get PHP to print out its version #, I'm not sure how to
debug this.

I've tried re-installing PHP from the .msi file several times without
success.

Any help would be greatly appreciated.

--
_________________________________________
Bob Smith -- bsmith(at)sudleydeplacespam(dot)com

To reply to me directly, delete "despam".
Re: PHP 5.3.3 Crashes on Win7 [message #169958 is a reply to message #169957] Fri, 01 October 2010 21:53 Go to previous messageGo to next message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma: 0
Senior Member
On 10/1/2010 5:29 PM, Bob Smith wrote:
> Running version 5.3.3 (cli) on Win7/64 runs well from the cmd.exe line
> after a virgin install.
>
> Including ANY DLL in the [PHP] section of the php.ini file even if it
> doesn't exist (e.g. extension=php_foo.dll) crashes PHP (e.g. php
> --version) in php5ts.dll as in
>
> Problem signature:
> Problem Event Name: APPCRASH
> Application Name: php.exe
> Application Version: 5.3.3.0
> Application Timestamp: 4c474a74
> Fault Module Name: php5ts.dll
> Fault Module Version: 5.3.3.0
> Fault Module Timestamp: 4c4749e1
> Exception Code: c0000005
> Exception Offset: 000f5db0
> OS Version: 6.1.7600.2.0.0.256.48
> Locale ID: 1033
> Additional Information 1: 0a9e
> Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
> Additional Information 3: 0a9e
> Additional Information 4: 0a9e372d3b4ad19135b953a78882e789
>
> As I can't even get PHP to print out its version #, I'm not sure how to
> debug this.
>
> I've tried re-installing PHP from the .msi file several times without
> success.
>
> Any help would be greatly appreciated.
>

Ensure you don't have another copy of php5ts.dll running around your
system, i.e. in your c:\windows directory or someplace else in your PATH.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
Re: PHP 5.3.3 Crashes on Win7 [message #169959 is a reply to message #169957] Fri, 01 October 2010 22:01 Go to previous messageGo to next message
Web Dreamer is currently offline  Web Dreamer
Messages: 13
Registered: September 2010
Karma: 0
Junior Member
Le 01/10/10 23:29, Bob Smith a écrit :
> Running version 5.3.3 (cli) on Win7/64 runs well from the cmd.exe line
> after a virgin install.
>
> Including ANY DLL in the [PHP] section of the php.ini file even if it
> doesn't exist (e.g. extension=php_foo.dll) crashes PHP (e.g. php
> --version) in php5ts.dll as in

[...]

> As I can't even get PHP to print out its version #, I'm not sure how to
> debug this.
>
> I've tried re-installing PHP from the .msi file several times without
> success.

I'm not a windows expert at all because I rarely use this platform, so
what I will say might be silly but worth a try:

- Did you try to configure Windows 7's "compatibility mode" for PHP (and
Apache)?
- If you try it, Does it solve the issue?

I may be asking something stupid, but I admit my windows ignorance, and
I'm curious about it because I will be getting a Windows 7 machine for
some tests of PHP on it... and this OS is new for me.
So my other question would be, if the compatibility mode for PHP solves
the issue: how do you do it?

Thanks in advance.

--
Web Dreamer
Re: PHP 5.3.3 Crashes on Win7 [message #169960 is a reply to message #169958] Sat, 02 October 2010 01:30 Go to previous messageGo to next message
Bob Smith is currently offline  Bob Smith
Messages: 11
Registered: October 2010
Karma: 0
Junior Member
On 10/1/2010 5:53 PM, Jerry Stuckle wrote:
> On 10/1/2010 5:29 PM, Bob Smith wrote:
>> Running version 5.3.3 (cli) on Win7/64 runs well from the cmd.exe line
>> after a virgin install.
>>
>> Including ANY DLL in the [PHP] section of the php.ini file even if it
>> doesn't exist (e.g. extension=php_foo.dll) crashes PHP (e.g. php
>> --version) in php5ts.dll as in
>>
>> Problem signature:
>> Problem Event Name: APPCRASH
>> Application Name: php.exe
>> Application Version: 5.3.3.0
>> Application Timestamp: 4c474a74
>> Fault Module Name: php5ts.dll
>> Fault Module Version: 5.3.3.0
>> Fault Module Timestamp: 4c4749e1
>> Exception Code: c0000005
>> Exception Offset: 000f5db0
>> OS Version: 6.1.7600.2.0.0.256.48
>> Locale ID: 1033
>> Additional Information 1: 0a9e
>> Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
>> Additional Information 3: 0a9e
>> Additional Information 4: 0a9e372d3b4ad19135b953a78882e789
>>
>> As I can't even get PHP to print out its version #, I'm not sure how to
>> debug this.
>>
>> I've tried re-installing PHP from the .msi file several times without
>> success.
>>
>> Any help would be greatly appreciated.
>>
>
> Ensure you don't have another copy of php5ts.dll running around your
> system, i.e. in your c:\windows directory or someplace else in your PATH.

That's the only copy of that file anywhere on my system.

--
_________________________________________
Bob Smith -- bsmith(at)sudleydeplacespam(dot)com

To reply to me directly, delete "despam".
Re: PHP 5.3.3 Crashes on Win7 [message #169961 is a reply to message #169959] Sat, 02 October 2010 01:30 Go to previous messageGo to next message
Bob Smith is currently offline  Bob Smith
Messages: 11
Registered: October 2010
Karma: 0
Junior Member
On 10/1/2010 6:01 PM, Web Dreamer wrote:
> Le 01/10/10 23:29, Bob Smith a écrit :
>> Running version 5.3.3 (cli) on Win7/64 runs well from the cmd.exe line
>> after a virgin install.
>>
>> Including ANY DLL in the [PHP] section of the php.ini file even if it
>> doesn't exist (e.g. extension=php_foo.dll) crashes PHP (e.g. php
>> --version) in php5ts.dll as in
>
> [...]
>
>> As I can't even get PHP to print out its version #, I'm not sure how to
>> debug this.
>>
>> I've tried re-installing PHP from the .msi file several times without
>> success.
>
> I'm not a windows expert at all because I rarely use this platform, so
> what I will say might be silly but worth a try:
>
> - Did you try to configure Windows 7's "compatibility mode" for PHP (and
> Apache)?
> - If you try it, Does it solve the issue?
>
> I may be asking something stupid, but I admit my windows ignorance, and
> I'm curious about it because I will be getting a Windows 7 machine for
> some tests of PHP on it... and this OS is new for me.
> So my other question would be, if the compatibility mode for PHP solves
> the issue: how do you do it?

I checked everyone of the compatibility options going back to Win95 and
ran it as administrator -- it still failed as before.

I downloaded the php-5.3.3-Win32-VC9-x86.zip file as well and installed
that to no avail -- same failure mode. FWIW, php-cgi and php-win also
fail the same way. The php-errors.log file is empty.

Has anyone gotten PHP 5.3.3 to install and run with one "extension="
line in php.ini on Win7/64?

--
_________________________________________
Bob Smith -- bsmith(at)sudleydeplacespam(dot)com

To reply to me directly, delete "despam".
Re: PHP 5.3.3 Crashes on Win7 [message #169965 is a reply to message #169957] Sat, 02 October 2010 06:28 Go to previous messageGo to next message
Bob Smith is currently offline  Bob Smith
Messages: 11
Registered: October 2010
Karma: 0
Junior Member
On 10/1/2010 5:29 PM, Bob Smith wrote:
> Running version 5.3.3 (cli) on Win7/64 runs well from the cmd.exe line
> after a virgin install.
>
> Including ANY DLL in the [PHP] section of the php.ini file even if it
> doesn't exist (e.g. extension=php_foo.dll) crashes PHP (e.g. php
> --version) in php5ts.dll as in

FWIW, I cranked up a debugger and, using the Debug Pack, found this as
the call stack at the point of the error:

--- d:\php-sdk\snap_5_3\vc9\x86\php-5.3.3\ext\date\php_date.c
------------------

php5ts.dll!guess_timezone() Line 844 + 0xc bytes C

php5ts.dll!get_timezone_info(void * * * tsrm_ls=0x02423d70) Line 939 +
0x1e bytes C

php5ts.dll!php_format_date(char * format=0x10383cc0, int format_len=11,
long ts=1285984881, int localtime=1, void * * * tsrm_ls=0x02423d70)
Line 1190 C

php5ts.dll!php_log_err(char * log_message=0x028f2610, void * * *
tsrm_ls=0x02423d70) Line 584 C

php5ts.dll!php_error_cb(int type=32, const char *
error_filename=0x1036d964, const unsigned int error_lineno=0, const char
* format=0x1036d9dc, char * args=0x00c0fae8) Line 1002 C

php5ts.dll!zend_error(int type=32, const char * format=0x1036d9dc, ...)
Line 1020 + 0x17 bytes C

php5ts.dll!php_verror(const char * docref=0x00000000, const char *
params=0x10540317, int type=32, const char * format=0x10425374, char *
args=0x00c0fb58, void * * * tsrm_ls=0x02423d70) Line 806 C

php5ts.dll!php_error_docref0(const char * docref=0x00000000, void * * *
tsrm_ls=0x02423d70, int type=32, const char * format=0x10425374, ...)
Line 817 + 0x23 bytes C

php5ts.dll!php_load_extension(char * filename=0x028f2070, int type=1,
int start_now=0, void * * * tsrm_ls=0x02423d70) Line 152 + 0x17 bytes C

php5ts.dll!php_load_php_extension_cb(void * arg=0x030d0638, void * * *
tsrm_ls=0x02423d70) Line 350 + 0x15 bytes C

php5ts.dll!zend_llist_apply(_zend_llist * l=0x10565828, void (void *,
void * * *)* func=0x100c6b60, void * * * tsrm_ls=0x02423d70) Line 193 +
0x7 bytes C

php5ts.dll!php_ini_register_extensions(void * * * tsrm_ls=0x02423d70)
Line 726 C

php5ts.dll!php_module_startup(_sapi_module_struct * sf=0x00406010,
_zend_module_entry * additional_modules=0x00000000, unsigned int
num_additional_modules=0) Line 2022 C

php.exe!php_cli_startup(_sapi_module_struct * sapi_module=0x00406010)
Line 401 + 0xf bytes C

php.exe!main(int argc=1, char * * argv=0x02423c90) Line 775 + 0x1a
bytes C

php.exe!__tmainCRTStartup() Line 586 + 0x17 bytes C
kernel32.dll!76873677()

[Frames below may be incorrect and/or missing, no symbols loaded for
kernel32.dll]

ntdll.dll!771f9d42()

ntdll.dll!771f9d15()

The most recent routine is at the top. Apparently, PHP encountered an
error while attempting to load a DLL (php_foo.dll) because a bad ptr was
passed to the topmost function. The exact same error occurs when trying
to load an existing DLL (php_ssh2.dll).

Can someone familiar with the innards of PHP take it from here?

--
_________________________________________
Bob Smith -- bsmith(at)sudleydeplacespam(dot)com

To reply to me directly, delete "despam".
Re: PHP 5.3.3 Crashes on Win7 [message #169967 is a reply to message #169961] Sat, 02 October 2010 08:17 Go to previous messageGo to next message
Luuk is currently offline  Luuk
Messages: 329
Registered: September 2010
Karma: 0
Senior Member
On 02-10-10 03:30, Bob Smith wrote:
> I downloaded the php-5.3.3-Win32-VC9-x86.zip file as well and installed
> that to no avail -- same failure mode. FWIW, php-cgi and php-win also
> fail the same way. The php-errors.log file is empty.
>
> Has anyone gotten PHP 5.3.3 to install and run with one "extension="
> line in php.ini on Win7/64?
>

i have....
C:\PHP>php -i | more
phpinfo()
PHP Version => 5.3.3

System => Windows NT ACER 6.1 build 7600 (Unknow Windows version
Ultimate Edition) i586
Build Date => Jul 21 2010 20:34:26
Compiler => MSVC9 (Visual C++ 2008)
Architecture => x86
Configure Command => cscript /nologo configure.js
"--enable-snapshot-build" "--enable-debug-pack" "--disable-zts"
"--disable-isapi" "--disable-nsapi" "--withou
t-mssql" "--without-pdo-mssql" "--without-pi3web"
"--with-pdo-oci=D:\php-sdk\oracle\instantclient10\sdk,shared"
"--with-oci8=D:\php-sdk\oracle\instantclient10\s
dk,shared"
"--with-oci8-11g=D:\php-sdk\oracle\instantclient11\sdk,shared"
"--with-enchant=shared" "--enable-object-out-dir=../obj/"
"--enable-com-dotnet" "--wit
h-mcrypt=static"
Server API => Command Line Interface
Virtual Directory Support => disabled
Configuration File (php.ini) Path => C:\Windows
Loaded Configuration File => C:\PHP\php.ini
Scan this dir for additional .ini files => (none)
Additional .ini files parsed => (none)
PHP API => 20090626
PHP Extension => 20090626
Zend Extension => 220090626
Zend Extension Build => API220090626,NTS,VC9
PHP Extension Build => API20090626,NTS,VC9
Debug Build => no
.................


This is my PHP.INI (from C:\PHP\PHP.ini; all comments stripped)

[PHP]

engine = On

short_open_tag = Off

asp_tags = Off

precision = 14

y2k_compliance = On

output_buffering = 4096
zlib.output_compression = Off

implicit_flush = Off

unserialize_callback_func =
serialize_precision = 100

allow_call_time_pass_reference = Off

safe_mode = Off

safe_mode_gid = Off
safe_mode_include_dir =
safe_mode_exec_dir =

safe_mode_allowed_env_vars = PHP_

safe_mode_protected_env_vars = LD_LIBRARY_PATH
disable_functions =

disable_classes =

expose_php = On
max_execution_time =300

max_input_time = 60

memory_limit = 128M

error_reporting = E_ALL & ~E_DEPRECATED
display_errors = Off
display_startup_errors = Off

log_errors =On
log_errors_max_len = 1024
ignore_repeated_errors = Off

ignore_repeated_source = Off

report_memleaks = On

track_errors = Off

html_errors = Off
variables_order = "GPCS"
request_order = "GP"
register_globals = Off

register_long_arrays = Off
register_argc_argv = Off

auto_globals_jit = On

post_max_size = 8M

magic_quotes_gpc = Off

magic_quotes_runtime = Off

magic_quotes_sybase = Off

auto_prepend_file =

auto_append_file =

default_mimetype = "text/html"

doc_root =
user_dir =

enable_dl = Off
file_uploads = On
upload_max_filesize = 2M
max_file_uploads = 20

allow_url_fopen = On

allow_url_include = Off
default_socket_timeout = 60
upload_tmp_dir="C:\Windows\Temp"
session.save_path="C:\Windows\Temp"
error_log="C:\temp\php-errors.log"
cgi.force_redirect=0
fastcgi.impersonate=1
fastcgi.logging=0
extension_dir="C:\PHP\ext"
[Date]
[filter]
[iconv]
[intl]
[sqlite]

[sqlite3]
[Pcre]

[Pdo]
[Pdo_mysql]
pdo_mysql.cache_size = 2000
pdo_mysql.default_socket=

[Phar]
[Syslog]
define_syslog_variables = Off

[mail function]
SMTP = localhost

smtp_port = 25

mail.add_x_header = On
[SQL]

sql.safe_mode = Off

[ODBC]

odbc.allow_persistent = On

odbc.check_persistent = On

odbc.max_persistent = -1

odbc.max_links = -1
odbc.defaultlrl = 4096

odbc.defaultbinmode = 1

[Interbase]

ibase.allow_persistent = 1
ibase.max_persistent = -1
ibase.max_links = -1
ibase.timestampformat = "%Y-%m-%d %H:%M:%S"
ibase.dateformat = "%Y-%m-%d"
ibase.timeformat = "%H:%M:%S"

[MySQL]
mysql.allow_local_infile = On

mysql.allow_persistent = On

mysql.cache_size = 2000

mysql.max_persistent = -1

mysql.max_links = -1
mysql.default_port =
mysql.default_socket =

mysql.default_host =

mysql.default_user =

mysql.default_password =

mysql.connect_timeout = 60
mysql.trace_mode = Off

[MySQLi]

mysqli.max_persistent = -1

mysqli.allow_persistent = On

mysqli.max_links = -1

mysqli.cache_size = 2000
mysqli.default_port = 3306
mysqli.default_socket =

mysqli.default_host =

mysqli.default_user =

mysqli.default_pw =
mysqli.reconnect = Off

[mysqlnd]

mysqlnd.collect_statistics = On
mysqlnd.collect_memory_statistics = Off
[OCI8]
[PostgresSQL]
pgsql.allow_persistent = On
pgsql.auto_reset_persistent = Off

pgsql.max_persistent = -1

pgsql.max_links = -1
pgsql.ignore_notice = 0
pgsql.log_notice = 0

[Sybase-CT]
sybct.allow_persistent = On

sybct.max_persistent = -1

sybct.max_links = -1

sybct.min_server_severity = 10

sybct.min_client_severity = 10

[bcmath]
bcmath.scale = 0

[browscap]

[Session]
session.save_handler = files
session.use_cookies = 1

session.use_only_cookies = 1

session.name = PHPSESSID

session.auto_start = 0

session.cookie_lifetime = 0

session.cookie_path = /

session.cookie_domain =

session.cookie_httponly =

session.serialize_handler = php

session.gc_probability = 1

session.gc_divisor = 1000
session.gc_maxlifetime = 1440

session.bug_compat_42 = Off
session.bug_compat_warn = Off

session.referer_check =

session.entropy_length = 0

session.cache_limiter = nocache

session.cache_expire = 180

session.use_trans_sid = 0

session.hash_function = 0

session.hash_bits_per_character = 5
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry"

[MSSQL]

mssql.allow_persistent = On
mssql.max_persistent = -1
mssql.max_links = -1
mssql.min_error_severity = 10
mssql.min_message_severity = 10
mssql.compatability_mode = Off
mssql.secure_connection = Off

[Assertion]

[COM]
[mbstring]
[gd]
[exif]

[Tidy]
tidy.clean_output = Off

[soap]
soap.wsdl_cache_enabled=1

soap.wsdl_cache_dir="/tmp"
soap.wsdl_cache_ttl=86400
soap.wsdl_cache_limit = 5

[sysvshm]

[ldap]

ldap.max_links = -1

[mcrypt]
[dba]

[PHP_BZ2]
extension=php_bz2.dll
[PHP_CURL]
extension=php_curl.dll
[PHP_GD2]
extension=php_gd2.dll
[PHP_GETTEXT]
extension=php_gettext.dll
[PHP_GMP]
extension=php_gmp.dll
[PHP_IMAP]
extension=php_imap.dll
[PHP_MBSTRING]
extension=php_mbstring.dll
[PHP_MYSQL]
extension=php_mysql.dll
[PHP_MYSQLI]
extension=php_mysqli.dll
[PHP_OPENSSL]
extension=php_openssl.dll
[PHP_PDO_MYSQL]
extension=php_pdo_mysql.dll
[PHP_PDO_ODBC]
extension=php_pdo_odbc.dll
[PHP_PDO_SQLITE]
extension=php_pdo_sqlite.dll
[PHP_PGSQL]
extension=php_pgsql.dll
[PHP_SOAP]
extension=php_soap.dll
[PHP_SOCKETS]
extension=php_sockets.dll
[PHP_SQLITE3]
extension=php_sqlite3.dll
[PHP_TIDY]
extension=php_tidy.dll
[PHP_XMLRPC]
extension=php_xmlrpc.dll
[PHP_EXIF]
extension=php_exif.dll





--
Luuk
Re: PHP 5.3.3 Crashes on Win7 [message #169970 is a reply to message #169957] Sat, 02 October 2010 12:41 Go to previous messageGo to next message
Bernd Schulz is currently offline  Bernd Schulz
Messages: 10
Registered: September 2010
Karma: 0
Junior Member
Am 01.10.2010 23:29, schrieb Bob Smith:
> Running version 5.3.3 (cli) on Win7/64 runs well from the cmd.exe line
> after a virgin install.
>
> Including ANY DLL in the [PHP] section of the php.ini file even if it
> doesn't exist (e.g. extension=php_foo.dll) crashes PHP (e.g. php
> --version) in php5ts.dll as in
>
Do you have added a 32 Bit Applicationpool?
And then put your site in that pool?
Php is 32Bit, not 64.
Re: PHP 5.3.3 Crashes on Win7 [message #169972 is a reply to message #169960] Sat, 02 October 2010 13:34 Go to previous messageGo to next message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma: 0
Senior Member
On 10/1/2010 9:30 PM, Bob Smith wrote:
> On 10/1/2010 5:53 PM, Jerry Stuckle wrote:
>> On 10/1/2010 5:29 PM, Bob Smith wrote:
>>> Running version 5.3.3 (cli) on Win7/64 runs well from the cmd.exe line
>>> after a virgin install.
>>>
>>> Including ANY DLL in the [PHP] section of the php.ini file even if it
>>> doesn't exist (e.g. extension=php_foo.dll) crashes PHP (e.g. php
>>> --version) in php5ts.dll as in
>>>
>>> Problem signature:
>>> Problem Event Name: APPCRASH
>>> Application Name: php.exe
>>> Application Version: 5.3.3.0
>>> Application Timestamp: 4c474a74
>>> Fault Module Name: php5ts.dll
>>> Fault Module Version: 5.3.3.0
>>> Fault Module Timestamp: 4c4749e1
>>> Exception Code: c0000005
>>> Exception Offset: 000f5db0
>>> OS Version: 6.1.7600.2.0.0.256.48
>>> Locale ID: 1033
>>> Additional Information 1: 0a9e
>>> Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
>>> Additional Information 3: 0a9e
>>> Additional Information 4: 0a9e372d3b4ad19135b953a78882e789
>>>
>>> As I can't even get PHP to print out its version #, I'm not sure how to
>>> debug this.
>>>
>>> I've tried re-installing PHP from the .msi file several times without
>>> success.
>>>
>>> Any help would be greatly appreciated.
>>>
>>
>> Ensure you don't have another copy of php5ts.dll running around your
>> system, i.e. in your c:\windows directory or someplace else in your PATH.
>
> That's the only copy of that file anywhere on my system.
>

Which extension(s) are you trying to load?

I'm just building a new laptop with Windows 7 64 bit on it. I don't
have much on it yet, but I did install PHP 5.3.3 on it. I found the
same thing - when I enabled the MySQL extension, I got the error.
However, I haven't ensured the MySQL libs are in the path yet, nor a lot
of other things - this was just a quick test.

I don't have any time to look at it further right now - but will do so
later tonight.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
Re: PHP 5.3.3 Crashes on Win7 [message #169981 is a reply to message #169967] Sun, 03 October 2010 01:04 Go to previous messageGo to next message
Bob Smith is currently offline  Bob Smith
Messages: 11
Registered: October 2010
Karma: 0
Junior Member
On 10/2/2010 4:17 AM, Luuk wrote:
> On 02-10-10 03:30, Bob Smith wrote:
>> I downloaded the php-5.3.3-Win32-VC9-x86.zip file as well and installed
>> that to no avail -- same failure mode. FWIW, php-cgi and php-win also
>> fail the same way. The php-errors.log file is empty.
>>
>> Has anyone gotten PHP 5.3.3 to install and run with one "extension="
>> line in php.ini on Win7/64?
>>
>
> i have....
> C:\PHP>php -i | more
> phpinfo()
> PHP Version => 5.3.3

I don't think you are actually loading an extension. Try putting a line
like this after the extension_dir=" line

extension=php_foo.dll

and see if "php --version" works. On my system, it doesn't matter
whether or not the extension you attempt to load exists -- php crashes.

--
_________________________________________
Bob Smith -- bsmith(at)sudleydeplacespam(dot)com

To reply to me directly, delete "despam".
Re: PHP 5.3.3 Crashes on Win7 [message #169982 is a reply to message #169970] Sun, 03 October 2010 01:28 Go to previous messageGo to next message
Bob Smith is currently offline  Bob Smith
Messages: 11
Registered: October 2010
Karma: 0
Junior Member
On 10/2/2010 8:41 AM, Bernd Schulz wrote:
> Am 01.10.2010 23:29, schrieb Bob Smith:
>> Running version 5.3.3 (cli) on Win7/64 runs well from the cmd.exe line
>> after a virgin install.
>>
>> Including ANY DLL in the [PHP] section of the php.ini file even if it
>> doesn't exist (e.g. extension=php_foo.dll) crashes PHP (e.g. php
>> --version) in php5ts.dll as in
>>
> Do you have added a 32 Bit Applicationpool?
> And then put your site in that pool?
> Php is 32Bit, not 64.

I'm puzzled by your question because I thought app pools were a feature
of a web server such as IIS, not of an application such as php.

If I'm wrong, I'd like to know how to setup an application pool, and
then how to add php to it.

Also, how is it that php runs well when I don't load any extensions
without knowing anything about application pools?

--
_________________________________________
Bob Smith -- bsmith(at)sudleydeplacespam(dot)com

To reply to me directly, delete "despam".
Re: PHP 5.3.3 Crashes on Win7 [message #169983 is a reply to message #169972] Sun, 03 October 2010 01:31 Go to previous messageGo to next message
Bob Smith is currently offline  Bob Smith
Messages: 11
Registered: October 2010
Karma: 0
Junior Member
On 10/2/2010 9:34 AM, Jerry Stuckle wrote:
> On 10/1/2010 9:30 PM, Bob Smith wrote:
>> On 10/1/2010 5:53 PM, Jerry Stuckle wrote:
>>> On 10/1/2010 5:29 PM, Bob Smith wrote:
>>>> Running version 5.3.3 (cli) on Win7/64 runs well from the cmd.exe line
>>>> after a virgin install.
>>>>
>>>> Including ANY DLL in the [PHP] section of the php.ini file even if it
>>>> doesn't exist (e.g. extension=php_foo.dll) crashes PHP (e.g. php
>>>> --version) in php5ts.dll as in

[...]

> Which extension(s) are you trying to load?

It doesn't matter. Loading a non-existent extension is enough to
trigger the fault.

> I'm just building a new laptop with Windows 7 64 bit on it. I don't have
> much on it yet, but I did install PHP 5.3.3 on it. I found the same
> thing - when I enabled the MySQL extension, I got the error. However, I
> haven't ensured the MySQL libs are in the path yet, nor a lot of other
> things - this was just a quick test.
>
> I don't have any time to look at it further right now - but will do so
> later tonight.

I hope you find something as I'm backed into a corner right now.

--
_________________________________________
Bob Smith -- bsmith(at)sudleydeplacespam(dot)com

To reply to me directly, delete "despam".
Re: PHP 5.3.3 Crashes on Win7 [message #169984 is a reply to message #169983] Sun, 03 October 2010 01:50 Go to previous messageGo to next message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma: 0
Senior Member
On 10/2/2010 9:31 PM, Bob Smith wrote:
> On 10/2/2010 9:34 AM, Jerry Stuckle wrote:
>> On 10/1/2010 9:30 PM, Bob Smith wrote:
>>> On 10/1/2010 5:53 PM, Jerry Stuckle wrote:
>>>> On 10/1/2010 5:29 PM, Bob Smith wrote:
>>>> > Running version 5.3.3 (cli) on Win7/64 runs well from the cmd.exe line
>>>> > after a virgin install.
>>>> >
>>>> > Including ANY DLL in the [PHP] section of the php.ini file even if it
>>>> > doesn't exist (e.g. extension=php_foo.dll) crashes PHP (e.g. php
>>>> > --version) in php5ts.dll as in
>
> [...]
>
>> Which extension(s) are you trying to load?
>
> It doesn't matter. Loading a non-existent extension is enough to trigger
> the fault.
>

It does matter, because loading an existing extension which doesn't have
the supporting DLL's is also a problem.

But if you don't want to answer, fine. It's not important to me right
now, and I have other things to do.

Good luck.

>> I'm just building a new laptop with Windows 7 64 bit on it. I don't have
>> much on it yet, but I did install PHP 5.3.3 on it. I found the same
>> thing - when I enabled the MySQL extension, I got the error. However, I
>> haven't ensured the MySQL libs are in the path yet, nor a lot of other
>> things - this was just a quick test.
>>
>> I don't have any time to look at it further right now - but will do so
>> later tonight.
>
> I hope you find something as I'm backed into a corner right now.
>


--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
Re: PHP 5.3.3 Crashes on Win7 [message #169986 is a reply to message #169984] Sun, 03 October 2010 02:05 Go to previous messageGo to next message
Bob Smith is currently offline  Bob Smith
Messages: 11
Registered: October 2010
Karma: 0
Junior Member
On 10/2/2010 9:50 PM, Jerry Stuckle wrote:
> On 10/2/2010 9:31 PM, Bob Smith wrote:
>> On 10/2/2010 9:34 AM, Jerry Stuckle wrote:
>>> On 10/1/2010 9:30 PM, Bob Smith wrote:
>>>> On 10/1/2010 5:53 PM, Jerry Stuckle wrote:
>>>> > On 10/1/2010 5:29 PM, Bob Smith wrote:
>>>> >> Running version 5.3.3 (cli) on Win7/64 runs well from the cmd.exe
>>>> >> line
>>>> >> after a virgin install.
>>>> >>
>>>> >> Including ANY DLL in the [PHP] section of the php.ini file even if it
>>>> >> doesn't exist (e.g. extension=php_foo.dll) crashes PHP (e.g. php
>>>> >> --version) in php5ts.dll as in
>>
>> [...]
>>
>>> Which extension(s) are you trying to load?
>>
>> It doesn't matter. Loading a non-existent extension is enough to trigger
>> the fault.
>>
>
> It does matter, because loading an existing extension which doesn't have
> the supporting DLL's is also a problem.

extension=php_ssh2.dll

Correct me if I'm wrong, but I was thinking that php would fail softly
rather than crash when asked to load a non-existent extension.

--
_________________________________________
Bob Smith -- bsmith(at)sudleydeplacespam(dot)com

To reply to me directly, delete "despam".
Re: PHP 5.3.3 Crashes on Win7 [message #169989 is a reply to message #169982] Sun, 03 October 2010 10:51 Go to previous messageGo to next message
Bernd Schulz is currently offline  Bernd Schulz
Messages: 10
Registered: September 2010
Karma: 0
Junior Member
Am 03.10.2010 03:28, schrieb Bob Smith:
> On 10/2/2010 8:41 AM, Bernd Schulz wrote:
>> Do you have added a 32 Bit Applicationpool?
>> And then put your site in that pool?
>> Php is 32Bit, not 64.
>
> I'm puzzled by your question because I thought app pools were a feature
> of a web server such as IIS, not of an application such as php.
>
> If I'm wrong, I'd like to know how to setup an application pool, and
> then how to add php to it.
>
I have a german windows, so I don´t know the right english description
for it. But I will try to explain.
In the IIS Manger,, on the left side, you have an point unter the
server, called applicationpools.
There should be an DefaultAppPool.
You create a new one. Maybe PHP32.
On the right side, you see: Extended Settings.
There you activate 32Bit: true

Then you change to SITES on the left side.
There you should have something like Standard-Settings.
And there you choose the Application pool.

Hope that helps.


> Also, how is it that php runs well when I don't load any extensions
> without knowing anything about application pools?
>
I don´t know.
Try the 32Bit I explained.
Re: PHP 5.3.3 Crashes on Win7 [message #169991 is a reply to message #169981] Sun, 03 October 2010 18:41 Go to previous messageGo to next message
Luuk is currently offline  Luuk
Messages: 329
Registered: September 2010
Karma: 0
Senior Member
On 03-10-10 03:04, Bob Smith wrote:
> On 10/2/2010 4:17 AM, Luuk wrote:
>> On 02-10-10 03:30, Bob Smith wrote:
>>> I downloaded the php-5.3.3-Win32-VC9-x86.zip file as well and installed
>>> that to no avail -- same failure mode. FWIW, php-cgi and php-win also
>>> fail the same way. The php-errors.log file is empty.
>>>
>>> Has anyone gotten PHP 5.3.3 to install and run with one "extension="
>>> line in php.ini on Win7/64?
>>>
>>
>> i have....
>> C:\PHP>php -i | more
>> phpinfo()
>> PHP Version => 5.3.3
>
> I don't think you are actually loading an extension. Try putting a line
> like this after the extension_dir=" line
>
> extension=php_foo.dll
>
> and see if "php --version" works. On my system, it doesn't matter
> whether or not the extension you attempt to load exists -- php crashes.
>

i did put the output of my complete PHP.INI in my previous post

It ended with the next lines:

[PHP_BZ2]
extension=php_bz2.dll
[PHP_CURL]
extension=php_curl.dll
[PHP_GD2]
extension=php_gd2.dll
[PHP_GETTEXT]
extension=php_gettext.dll
[PHP_GMP]
extension=php_gmp.dll
[PHP_IMAP]
extension=php_imap.dll
[PHP_MBSTRING]
extension=php_mbstring.dll
[PHP_MYSQL]
extension=php_mysql.dll
[PHP_MYSQLI]
extension=php_mysqli.dll
[PHP_OPENSSL]
extension=php_openssl.dll
[PHP_PDO_MYSQL]
extension=php_pdo_mysql.dll
[PHP_PDO_ODBC]
extension=php_pdo_odbc.dll
[PHP_PDO_SQLITE]
extension=php_pdo_sqlite.dll
[PHP_PGSQL]
extension=php_pgsql.dll
[PHP_SOAP]
extension=php_soap.dll
[PHP_SOCKETS]
extension=php_sockets.dll
[PHP_SQLITE3]
extension=php_sqlite3.dll
[PHP_TIDY]
extension=php_tidy.dll
[PHP_XMLRPC]
extension=php_xmlrpc.dll
[PHP_EXIF]
extension=php_exif.dll


--
Luuk
Re: PHP 5.3.3 Crashes on Win7 [message #169992 is a reply to message #169989] Sun, 03 October 2010 18:50 Go to previous messageGo to next message
Luuk is currently offline  Luuk
Messages: 329
Registered: September 2010
Karma: 0
Senior Member
On 03-10-10 12:51, Bernd Schulz wrote:
> Am 03.10.2010 03:28, schrieb Bob Smith:
>> On 10/2/2010 8:41 AM, Bernd Schulz wrote:
>>> Do you have added a 32 Bit Applicationpool?
>>> And then put your site in that pool?
>>> Php is 32Bit, not 64.
>>
>> I'm puzzled by your question because I thought app pools were a feature
>> of a web server such as IIS, not of an application such as php.
>>
>> If I'm wrong, I'd like to know how to setup an application pool, and
>> then how to add php to it.
>>
> I have a german windows, so I don´t know the right english description
> for it. But I will try to explain.
> In the IIS Manger,, on the left side, you have an point unter the
> server, called applicationpools.
> There should be an DefaultAppPool.
> You create a new one. Maybe PHP32.
> On the right side, you see: Extended Settings.
> There you activate 32Bit: true
>
> Then you change to SITES on the left side.
> There you should have something like Standard-Settings.
> And there you choose the Application pool.
>
> Hope that helps.
>
>
>> Also, how is it that php runs well when I don't load any extensions
>> without knowing anything about application pools?
>>
> I don´t know.
> Try the 32Bit I explained.
>
>

i created a new applicationpool, and named it 'PHP32'

Than i created a new appplication in the directory
c:\inetpub\wwwroot\PHP32

my phpinfo.php file, which only contains a call to phpinfo() works fine
But i did NOT set 32Bit to true (it still at the default: false)





--
Luuk
Re: PHP 5.3.3 Crashes on Win7 (RESOLVED) [message #169994 is a reply to message #169957] Sun, 03 October 2010 20:36 Go to previous message
Bob Smith is currently offline  Bob Smith
Messages: 11
Registered: October 2010
Karma: 0
Junior Member
On 10/1/2010 5:29 PM, Bob Smith wrote:
> Running version 5.3.3 (cli) on Win7/64 runs well from the cmd.exe line
> after a virgin install.
>
> Including ANY DLL in the [PHP] section of the php.ini file even if it
> doesn't exist (e.g. extension=php_foo.dll) crashes PHP (e.g. php
> --version) in php5ts.dll as in

[...]

This issue appears to be resolved as follows:

1. Install PHP from the .zip file, not the .msi file. The .zip file
has more DLLs in it which you might need (such as php_sqlite3).

2. Use compatible versions of needed DLLs. I made the mistake of using
the DLLs in PECL 5.2.6 which are not compatible with 5.3.3. In
particular, when using the 5.2.6 DLLs and setting

display_startup_errors = On

in php.ini, it popped up with the message

PHP Startup: ssh2: Unable to initialize module
Module compiled with API=20060613
PHP compiled with API=20090626
These options need to match

I then used php_ssh2.dll from

http://downloads.php.net/pierre/php_ssh2-svn20091128-5.3-vc9-x86.zip

saved it in my PHP\ext\ folder at which point with

extension=php_ssh2.dll

in php.ini

things such as php --version work whereas previously it crashed.

Alas, using a non-existent DLL such as

extension=php_foo.dll

still crashes php which is very rude.

--
_________________________________________
Bob Smith -- bsmith(at)sudleydeplacespam(dot)com

To reply to me directly, delete "despam".
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Is PHP solution for web scripts?
Next Topic: Inserting into associative array
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Sep 20 16:33:25 GMT 2024

Total time taken to generate the page: 0.02726 seconds