#23576 [NEW]: Parameters in Constuktor
| From: | php at sl5 dot de | Date: | Sat, 10 May 2003 21:38:19 +0000 |
| Subject: | #23576 [NEW]: Parameters in Constuktor | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-39422@lists.php.net to get a copy of this message | ||
From: php at sl5 dot de
Operating system: Windows 2000
PHP version: 4.3.2RC1
PHP Bug Type: Class/Object related
Bug description: Parameters in Constuktor
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
--
Edit bug report at http://bugs.php.net/?id=23576&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=23576&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=23576&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=23576&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=23576&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=23576&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=23576&r=support
Expected behavior: http://bugs.php.net/fix.php?id=23576&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=23576&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=23576&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=23576&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23576&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=23576&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=23576&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=23576&r=gnused