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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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: Sun Mar 03 12:01:28 2024 UTC