php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #29598 Problem when i sharing my class conection with two or more class
Submitted: 2004-08-10 14:44 UTC Modified: 2004-08-25 01:00 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: casmeiron at gmail dot com Assigned:
Status: No Feedback Package: Scripting Engine problem
PHP Version: 5.0.0 OS: WINDOWS
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2004-08-10 14:44 UTC] casmeiron at gmail dot com
Description:
------------
Guys, i have a BIG problem.
First time, sorry my english, i'm from BRAZIL, so my english is not good hehehe
But, lets go...
I have a class named 'CONNECTION', ok, shes work very good when i use a only class, example:
<?php
$connection = new conection('login','pass','db','host');
$my_example_first = new Clients(&$connection );
?>
My Class 'Clients' use the class 'CONNECTION' to connect a DATABASE, when i sharing, this happend:
<?php
$connection = new connection('login','pass','db','host');
$my_example_first = new Clients(&$connection);
$my_example_second = new Store(&$connection);
?>
The browser show me this message:
'ERROR IN CGI SCRIPT...
THE OUTPUT IS NOT VALID....' like this...
How can i see error in my script?
How i debug?
This error is sux.. i dont know whats is :(
Guys, help me...
Sorry my english again.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-08-10 15:09 UTC] derick@php.net
Which OS are you using? and which SAPI?
 [2004-08-10 18:14 UTC] casmeiron at gmail dot com
THE SO is WINDOWS XP, using ISS 5, my extension .php call the file php-cgi.exe.
 [2004-08-11 16:25 UTC] casmeiron at gmail dot com
Guys.. see the error:

CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:

Only this, what is?
Help-me :(
 [2004-08-17 15:46 UTC] tony2001@php.net
Try to run the same script using console version of PHP (php.exe -f script.php) and to see what happens. And check your Event Log, it should provide more information about IIS errors. 
If nothing helps - change SAPI to ISAPI instead of CGI.
 [2004-08-25 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 06 19:01:32 2024 UTC