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
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Sun May 05 10:01:31 2024 UTC