|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9164 wrong variable is initialized
Submitted: 2001-02-07 16:21 UTC Modified: 2001-02-07 16:27 UTC
From: di99otmi at hd dot chalmers dot se Assigned: waldschrott (profile)
Status: Not a bug Package: Scripting Engine problem
PHP Version: 4.0.3pl1 OS: slackware 7.1
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.
Block user comment
Status: Assign to:
Bug Type:
From: di99otmi at hd dot chalmers dot se
New email:
PHP Version: OS:


 [2001-02-07 16:21 UTC] di99otmi at hd dot chalmers dot se
function Bjbase($antal){  
    echo $this->$dragna;

this is a constructor

the echo statement prints 58 even though that it is $ess that is initialized to 58.
The variable $dragna is not treated as an array anywhere but when the $ess line is gone it works fine.
tried at another server too.
is this a problem you know of?


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-02-07 16:26 UTC]
Your code is incorrect, try this:

function Bjbase($antal){  
    echo $this->dragna;

 [2001-02-07 16:27 UTC]
please read the manual on how to use class members
hint: the second $ sign is _not_ needed

 [2011-08-07 05:20 UTC]
Automatic comment from SVN on behalf of gwynne
Log: Fix build under Clang 2.9 - see LLVM bug #9164 ( Tested with GCC and Clang on Darwin and Ubuntu.
PHP Copyright © 2001-2018 The PHP Group
All rights reserved.
Last updated: Tue Oct 16 14:01:26 2018 UTC