#29598 [Opn->Fbk]: Problem when i sharing my class conection with two or more class

From: Date: Tue, 10 Aug 2004 13:09:03 +0000
Subject: #29598 [Opn->Fbk]: Problem when i sharing my class conection with two or more class
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-64362@lists.php.net to get a copy of this message
ID: 29598 Updated by: derick@php.net Reported By: casmeiron at gmail dot com -Status: Open +Status: Feedback Bug Type: Scripting Engine problem Operating System: * PHP Version: 5.0.0 New Comment: Which OS are you using? and which SAPI? Previous Comments: ------------------------------------------------------------------------ [2004-08-10 14:44:55] 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. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=29598&edit=1

« previous php.bugs (#64362) next »