php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #17179 evaluation constants
Submitted: 2002-05-13 09:09 UTC Modified: 2010-12-22 15:02 UTC
From: joy at 1984 dot cz Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 4.2.0 OS: Linux
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: joy at 1984 dot cz
New email:
PHP Version: OS:

 

 [2002-05-13 09:09 UTC] joy at 1984 dot cz
Hello,
I have this idea:

<?

def("AAA", "echo(\"bla\");"); //"evaluate" constant definition

AAA AAA //using constant

?>

will substitute

<?
   echo("bla"); echo("bla");
?>


What do you mean about this feature?
Thanks, Mark Vydra

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-12-22 15:02 UTC] johannes@php.net
-Status: Open +Status: Bogus -Package: Feature/Change Request +Package: *General Issues
 [2010-12-22 15:02 UTC] johannes@php.net
"If eval is the answer you're asking the wrong question" and this is an eval()-like feature.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Jul 05 12:01:34 2025 UTC