Bug #5127 Updated: can
| From: | yohgaki@php.net | Date: | Mon, 28 Jan 2002 22:01:35 +0000 |
| Subject: | Bug #5127 Updated: can | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-78354@lists.php.net to get a copy of this message | ||
ID: 5127
Updated by: yohgaki
Old Summary: can´t use anything but a simple string with new (and var)
Reported By: waldschrott@kiffen.de
Old Status: Open
Status: Bogus
Bug Type: Feature/Change Request
Operating System: win2000/all
PHP Version: 4.0 Latest CVS (19/06/2000)
New Comment:
These will not be implemented probably.
Previous Comments:
------------------------------------------------------------------------
[2000-06-19 16:57:22] waldschrott@kiffen.de
it not possible to use the statement new with anything but simple
string itself or a simple string hold in a single variable
try out:
1. works
2. uncommented first line, does not work
3. uncommented second line, does not work
foreach ($this->active_parse_objects AS $object) {
$classname=$this->active_parse_prefix.$object;
$this->$object = new $classname;
// $this->$object = new {$this->active_parse_prefix.$object};
// $this->$object = new $this->active_parse_prefix.$object;
}
I´ve also notived that it´s not possible to use the statement var with
concated strings?
if you want to use special chars like \n or \t in strings initzialized
with var, you´ve to use "
because this is not possible
class ... {
var $test='asdfasdfasdf"ASDFASDF"ASDFAS'."\n";
}
I´m not sure whether the second part is a bug, but it´s making me dizzy
escaping every " I want use in var-assigned string...
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=5127&edit=1