php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #74 new doesn't accept variables.
Submitted: 1998-02-16 15:33 UTC Modified: 1998-02-19 23:12 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:0 of 1 (0.0%)
From: paudley+php3 at gt dot ca Assigned:
Status: Closed Package: Parser error
PHP Version: 3.0 Latest CVS OS: Linux
Private report: No CVE-ID: None
 [1998-02-16 15:33 UTC] paudley+php3 at gt dot ca
The following fails:

<?php

class test_object {
};

$name = "test_object";
$object = new $name;
?>

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-02-19 23:12 UTC] zeev
NEW was enhanced to accept any expression.
 [2022-03-02 18:43 UTC] git@php.net
Automatic comment on behalf of saundefined (author) and web-flow (committer)
Revision: https://github.com/php/doc-de/commit/9889dbd9776be4ef33a57ea00463a466b24f91ab
Log: Update to English version (#73)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 08:01:30 2024 UTC