From:             
Operating system: XP, Vista, Win 7,Win Server 2008
PHP version:      5.3.3
Package:          COM related
Bug Type:         Bug
Bug description:PHP-CGI (FastCGI IIS) crashes when creating DOTNET instance 
every second time

Description:
------------
The php-cgi.exe will crash after every second refresh when I make an
instance of the DOTNET class. The Website is hostet via IIS 7 and PHP is
configured as FastCGI module. When I configure PHP on IIS as CGI module
everything works fine, but I can not do without FastCGI. I have made a
change in the com_dotnet.c file in function php_com_dotnet_rshutdown. The
variable called stuff from type dotnet_runtime_stuff will not be released
like in the function php_com_dotnet_mshutdown. So I have added this two
lines to the function php_com_dotnet_rshutdown:



free(stuff);

COMG(dotnet_runtime_stuff) = NULL;



After that I have compiled PHP 5.3.3 with Visual Studio 2008 (VC9) x86 with
almost the same configuration like in the PHP 5.3.3 nts version but without
zlib:



configure "--enable-snapshot-build" "--enable-debug-pack" "--disable-zts"
"--disable-isapi" "--disable-nsapi" "--without-mssql" "--without-pdo-mssql"
"--without-pi3web" "--with-pdo-oci" "--with-oci8" "--with-oci8-11g"
"--with-enchant=shared" "--enable-object-out-dir=../obj/"
"--enable-com-dotnet" "--with-mcrypt=static" "--disable-zlib"



The include and lib files are relative to the configuration file (in the
deps folder). I have earned following error and that's why I have disabled
zlib:



php5.dll.def : error LNK2001: unresolved external symbol compressBound

php5.dll.def : error LNK2001: unresolved external symbol deflateBound

php5.dll.def : error LNK2001: unresolved external symbol deflatePrime

php5.dll.def : error LNK2001: unresolved external symbol gzclearerr

php5.dll.def : error LNK2001: unresolved external symbol gzungetc

php5.dll.def : error LNK2001: unresolved external symbol inflateBack

php5.dll.def : error LNK2001: unresolved external symbol inflateBackEnd

php5.dll.def : error LNK2001: unresolved external symbol inflateBackInit_

php5.dll.def : error LNK2001: unresolved external symbol inflateCopy

php5.dll.def : error LNK2001: unresolved external symbol zlibCompileFlags



The error in the com_dotnet.c file was the error, because now with the new
compiled version, fastcgi will not be terminated. Is the zlib extension
necessary for complex php websites like Joomla? Because now the compiled
php version can interpret the sample shown below and it can interpret
simple php scripts, but when I try to load a Joomla site, the FastCGI will
crash. What is wrong with the made configuration? Can you give me an
important hint of how to compile php5.3.3 like in the original php
version?



Best regards, JeyB



Test script:
---------------
<?php

        try

        {

                $stack = new DOTNET("mscorlib", "System.Collections.Stack");

                $stack->Push(".Net");

                $stack->Push("Hello ");

                echo $stack->Pop() . $stack->Pop();

        }

        catch(Exception $lEx)

        {

                echo "Error occurred:<br>".$lEx->getMessage();

        }

?>


-- 
Edit bug report at http://bugs.php.net/bug.php?id=53140&edit=1
-- 
Try a snapshot (PHP 5.2):            
http://bugs.php.net/fix.php?id=53140&r=trysnapshot52
Try a snapshot (PHP 5.3):            
http://bugs.php.net/fix.php?id=53140&r=trysnapshot53
Try a snapshot (trunk):              
http://bugs.php.net/fix.php?id=53140&r=trysnapshottrunk
Fixed in SVN:                        
http://bugs.php.net/fix.php?id=53140&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=53140&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=53140&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=53140&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=53140&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=53140&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=53140&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=53140&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=53140&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=53140&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=53140&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=53140&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=53140&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=53140&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=53140&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=53140&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=53140&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=53140&r=mysqlcfg

Reply via email to