From:             asegu_php at borgtech dot ca
Operating system: windows 2000 server
PHP version:      5.0.0b2 (beta2)
PHP Bug Type:     Reproducible crash
Bug description:  COM/DCOM crash on container object

Description:
------------
I'm working on a script to control IIS through COM objects.
Everything works fine under PHP4 (which I present in 'expected output'),
but crashes under PHP5, either beta2, beta3 or php5-win32-200312262330
from the snapshots. (no difference in output other then the php version)

PHP4|PHP5 have the same results on my laptop as their equivalent version
on my server.
The error message from php5 leads to believe that the error lies with
->Next() on the COM container.

Code in all situations is run from the command line as 'php -c
c:\winnt\php.ini iis.php' where c:\winnt\php.ini is php5's php.ini-dist
with minor modifications for session/temp folder paths.

I've read through some documentation on ADSI/COM, read through fully the
COM support documentation of PHP, posted a message to the php windows
email list

php.ini differences:
short_open_tag = Off
error_reporting  =  E_ALL
display_startup_errors = On
log_errors = On
register_long_arrays = Off
register_argc_argv = Off

extensions enabled:
php_imap.dll, php_ldap.dll, extension=php_xsl.dll



Reproduce code:
---------------
http://borgtech.ca/php/iis.phps

Expected result:
----------------
C:\php4>php -c c:\winnt\php.ini iis.php
Content-type: text/html
X-Powered-By: PHP/4.3.4

Array
(
    [0] => Array
        (
            [name] => 1
            [ServerComment] => ASITE1
            [bindings] => Array
                (
                    [0] => Array
                        (
                            [hostheader] => xxxxxxxx
                            [port] => 80
                            [ip] => yyy.yyy.yyy.yyy
                        )

                )

        )
...
(continues for all sites configured on the server)

Actual result:
--------------
C:\php5>php -c c:\winnt\php.ini iis.php
Content-type: text/html
X-Powered-By: PHP/5.0.0b3

<br />
<b>Fatal error</b>:  Uncaught exception 'exception' with message 'Unknown
except
ion' in C:\php5\iis.php:4
Stack trace:
#0 C:\php5\iis.php(19): iis::getSites()
#1 {main}
  thrown in <b>C:\php5\iis.php</b> on line <b>4</b><br />


-- 
Edit bug report at http://bugs.php.net/?id=26728&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=26728&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=26728&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=26728&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=26728&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=26728&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=26728&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=26728&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=26728&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=26728&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=26728&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=26728&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=26728&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26728&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=26728&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=26728&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=26728&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=26728&r=float

Reply via email to