Re: [phpng] naming
| From: | Rowan Collins | Date: | Wed, 07 May 2014 18:11:46 +0000 |
| Subject: | Re: [phpng] naming | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-74028@lists.php.net to get a copy of this message | ||
Marc Bennewitz wrote (on 07/05/2014):
Hi, I would also prefer to name it was it represents. I mean a ZVAL represents a PHP typed value and not a C typed one. So for example IS_LONG would be IS_INTEGER and IS_DOUBLE would become IS_FLOAT. MarcOoh, that reminds me of something I've been meaning to file a bug for, and maybe even attempt a patch, if I can understand where it comes from: the message shown *to the user* when an internal function is passed an invalid value uses "double" and "long" instead of "float" and "int". To somebody not familiar with C or similar languages, the message "some_function() expects parameter 1 to be long, string given" is somewhat cryptic to say the least, particularly because long is an adjective not a noun in standard English, so it could easily be misread as something like "parameter 1 is not long enough". Just a pet peeve... -- Rowan Collins [IMSoP]