#22284 [Opn]: Dynamic Var Accessing Classes crashes PHP

From: Date: Tue, 18 Feb 2003 22:29:34 +0000
Subject: #22284 [Opn]: Dynamic Var Accessing Classes crashes PHP
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-33475@lists.php.net to get a copy of this message
ID: 22284 User updated by: White_Angel at gmx dot de -Summary: Dynamic Var Accessin Classes crashes PHP Reported By: White_Angel at gmx dot de Status: Open Bug Type: Reproducible crash Operating System: Linux;RedHat8.0;2.4.18-24 PHP Version: 5CVS-2003-02-18 (dev) New Comment: ups. Previous Comments: ------------------------------------------------------------------------ [2003-02-18 16:28:57] White_Angel at gmx dot de On testing how to solve Bug #22269 I noticed the following: class foo { var $a="dummyyy"; function bar() { $name="a"; echo $this->$name; or $this->$name; } } Will generate nen Segmetnation Vault if the $this->$name line is parsed. If this Acces is depricated HOW CAN i access this Variable Now ? (class_get_vars is only reading) Is this a Bug or a feature ? ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=22284&edit=1

« previous php.bugs (#33475) next »