Bug #3814: An process accepted in php 3.1.5 and not accepted in latest beta ver 4

From: Date: Mon, 13 Mar 2000 08:26:01 +0000
Subject: Bug #3814: An process accepted in php 3.1.5 and not accepted in latest beta ver 4
Groups: php.dev 
Request: Send a blank email to php-dev+get-16739@lists.php.net to get a copy of this message
From: imperfect_1999@yahoo.com Operating system: Windows NT PHP version: 3.0.15 PHP Bug Type: Other Bug description: An process accepted in php 3.1.5 and not accepted in latest beta ver 4 Hi there, I found a bug after i installed PHP 4(latest beta) on Win NT Workstation 4.0 on Apache Web Server 1.3.9. And i tried to shift my programs from php 3.15 to php 4(the latest). Program:- =============== <?php class Promo { var $RadioBox; var $CheckBox; var $ListBox; var $TextBox; var $TextArea; var $Survey; var $Questionare; var $End; var $CurrType; var $Question; var $db; var $survey_master_table; var $question_master_table; var $log_table; var $trans_table; var $option_master_table; Function Promo() { $this->RadioBox = "RADIOBOX"; $this->CheckBox = "CHECKBOX"; $this->ListBox = "LISTBOX"; $this->TextBox = "TEXTBOX"; $this->TextArea = "TEXTAREA"; $this->Questionare = "QUESTIONARE"; $this->Question = "QUESTION"; $this->Survey = "SURVEY"; $this->End = "END"; $this->CurrType = ''; //--------------------------------------- //This Code Especially require("dblib.php3"); $db->Connect(); $this->db = $db; //----------------------------------------- $this->survey_master_table = "sv_master"; $this->question_master_table = "sv_questions"; $this->log_table = "sv_logs"; $this->trans_table = "sv_transactions"; $this->option_master_table = "sv_options"; } $promo = new Promo(); //program ends here ===================== Bug:- I cannot create a class in a class(by giving clause require file) which had a class deffined in it. Other... I cannot assign an object of another class to be on of the object of this class or i cant declare an class object variable in a class or if so then i can't use it by $this->object->function(). It gives error. Other if i declared a class outside a class and tried to use it in the class by direct refrence to the object .. it gives stack overflow and kills php in process. Rest of my configurations and modules used are very normal. Amit Web Programmer Online Solutions Bombay

« previous php.dev (#16739) next »