|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2011-10-02 00:24 UTC] cizek dot milan at seznam dot cz
Description: ------------ --- From manual page: http://www.php.net/function.define --- I searched in predefined S_ALL constants and variables, but I did not find anything. Test script: --------------- <?php define (S_ALL, 'All'); echo S_ALL; ?> Expected result: ---------------- 511 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Dec 15 05:00:01 2025 UTC |
what do you mean by impossible to define a S_ALL? <?php define ("S_ALL", "511"); echo S_ALL; ?> this works fine to me.what do you mean by impossible to define a S_ALL? <?php define ("S_ALL", "511"); echo S_ALL; ?> this works fine to me.Somewhere else you already have defined S_ALL. So what you are doing is to register a constant using the value of S_ALL as name. So will have a constant 511. Try this: define (S_ALL, 'All'); echo constant("511"); When declaring a constant the first paramter has to be a string with the name, so put it in quites. define ('S_ALL', 'All'); Will give you an error. The palce where S_ALL, most likely, is being defined is in the suhoshin extension your system seems to use.