|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-10-01 13:38 UTC] hholzgra@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 11:00:01 2025 UTC |
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