php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #14376 Multiple Variants cause apache to loop (?)
Submitted: 2001-12-07 07:24 UTC Modified: 2002-01-01 08:32 UTC
From: bizk at crewtwo dot com Assigned:
Status: Closed Package: COM related
PHP Version: 4.0.6 OS: W2k Server
Private report: No CVE-ID: None
 [2001-12-07 07:24 UTC] bizk at crewtwo dot com
PHP and COM are working together, but whenever multiple VARIANTs are made it has problems, single variants are okay. Once I perform the query on the object and get the values retuned to the browser, apache seems to get stuck in a loop and uses up around 98% of all system resources. 

$a = new VARIANT();
$b = new VARIANT();
will cause an apparent loop/whatever (Sorry I've not used the correct terminology)

$a = new VARIANT();
on it's own allows the rest of the script to function.
It is almost like PHP is not releasing the variant and allowing the page to display.
See forums at ZEND, subject : PHP, COM and VARIANTS 
Whilst the values are returned to the browser, they do not actually get displayed, I end up with a white page, that is continually indicating that it is loading. However, if I view the source code I end up seeing the exact output and variables I was expecting, but it simply doesn't display. 
If I then kill the apache process (W2k, Apache, PHP setup for development work) the page displays. 
Help! 
I have tried to close/kill/exit/unload the COM object and the VARIANTS too, but all to no avail. We know that the COM object is completing all it's stuff as we've put that through the VB debugger (I haven't got time to learn the Zend debugger right now! Unless anyone knows of any really quick tutorials) 
If we do not use the VARIANT call but still use the COM object the system performs as expected, but as soon as a VARIANT gets involved the performance goes downhill, instantly. The browser does not display and the Server goes into a loop that absorbs all system resources. 
Please, please, can anybody help? I'm stumped.

Enabled extensions are:

extension=php_gd.dll
extension=php_ming.dll
extension=php_pdf.dll
extension=php_pgsql.dll
extension=php_zlib.dll

The binary install was a default binary from www.firepages.com.au for W2k (the 13Mb one).
Hope this helps.

Biz

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-12-11 13:54 UTC] derick@php.net
Try the latest development version from www.php4win.com, and check if it still has the problem.
Please report back.
 [2002-01-01 08:32 UTC] lobbin@php.net
No feedback. Closing.
 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Fri May 27 12:07:03 2022 UTC