php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #5127 can
Submitted: 2000-06-19 16:57 UTC Modified: 2002-01-28 17:01 UTC
From: waldschrott at kiffen dot de Assigned:
Status: Not a bug Package: Feature/Change Request
PHP Version: 4.0 Latest CVS (19/06/2000) OS: win2000/all
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: waldschrott at kiffen dot de
New email:
PHP Version: OS:

 

 [2000-06-19 16:57 UTC] waldschrott at kiffen dot 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...

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-01-28 17:01 UTC] yohgaki@php.net
These will not be implemented probably.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Dec 30 14:01:28 2024 UTC