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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
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

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: Fri May 24 08:01:33 2024 UTC