Re: Resource constants
| From: | Cristian Rodríguez | Date: | Mon, 27 Oct 2008 13:25:20 +0000 |
| Subject: | Re: Resource constants | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-41453@lists.php.net to get a copy of this message | ||
At any rate I am very sure I never stumbled over code defining a
> constant with a ressource.
I did stumble over such thing ;)
Not a very good idea to support ressources,
> especially given the obvious WTF's this causes (as you rightly pointed
> out).
http://stuff.cristianrodriguez.net/patches/define-no-resources-5_3.patch
> However I am not
> sure about removing this though,
Why not ? it is documented that it only scalar values are accepted, the
code does other thing though =) objects that can be casted to string
also work without warning..
--
"A computer is like an Old Testament god, with a lot of rules and no
mercy. "
Cristian Rodríguez R.
Platform/OpenSUSE - Core Services
SUSE LINUX Products GmbH
Research & Development
http://www.opensuse.org/
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc