ID:               26728
 Updated by:       [EMAIL PROTECTED]
 Reported By:      asegu_php at borgtech dot ca
-Status:           Open
+Status:           Assigned
 Bug Type:         Reproducible crash
 Operating System: windows 2000 server
 PHP Version:      5.0.0b2 (beta2)
-Assigned To:      
+Assigned To:      wez
 New Comment:

Assigning to Wez, the author of this code.


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

[2003-12-27 11:49:13] asegu_php at borgtech dot ca

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 this bug report at http://bugs.php.net/?id=26728&edit=1

Reply via email to