php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #23576 Parameters in Constuktor
Submitted: 2003-05-10 16:38 UTC Modified: 2003-05-11 06:53 UTC
From: php at sl5 dot de Assigned:
Status: Not a bug Package: Class/Object related
PHP Version: 4.3.2RC1 OS: Windows 2000
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: php at sl5 dot de
New email:
PHP Version: OS:

 

 [2003-05-10 16:38 UTC] php at sl5 dot de
I defined a class with conctructor and other functions.
<pre>
class html_edit{
	var $iFrameName;
	var $jsPath;
	function html_edit( $name , $jspath , $sitepath ){
		$this->$iFrameName = $name;
		echo $this->$iFrameName.'<br>';
		$this->$jsPath = $jspath ;
		echo $this->$iFrameName;
# etc ...</pre>

If I built a instance the sendet parameters are not correct in the construktor.
For e.g.:

$e_obj = new html_edit( 'framechen' , '/LCiP/edit-site/' , '/LCiP/edit-site/' );

The Echo commands in the construktor schows:
"framechen"
then "/LCiP/edit-site/" .

First ist correct, second is wrong.
Second echo should be also "framechen".

Greetings Sebastian

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-05-11 06:47 UTC] php at sl5 dot de
No BUG ! My fault !

I wrote 
$this->$iFrameName ;
Correct is:
$this->iFrameName ;

Sorry,
Best regards
Sebastian
 [2003-05-11 06:53 UTC] rioter@php.net
as this doesnt apply a bug in php its self marking as bogus
thank you for using php


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 05:01:27 2024 UTC