php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #3814 An process accepted in php 3.1.5 and not accepted in latest beta ver 4
Submitted: 2000-03-13 03:26 UTC Modified: 2002-10-01 13:38 UTC
From: imperfect_1999 at yahoo dot com Assigned:
Status: Not a bug Package: Other
PHP Version: 3.0.15 OS: Windows NT
Private report: No CVE-ID: None
 [2000-03-13 03:26 UTC] imperfect_1999 at yahoo dot com
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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-10-01 13:38 UTC] hholzgra@php.net
Thank you for taking the time to report a problem with PHP.
Unfortunately you are not using a current version of PHP -- 
the problem might already be fixed. Please download a new
PHP version from http://www.php.net/downloads.php

If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Oct 30 22:01:28 2024 UTC