Req #63418 [NEW]: intval/strval pass-by-reference
| From: | ilyane at list dot ru | Date: | Fri, 02 Nov 2012 08:03:15 +0000 |
| Subject: | Req #63418 [NEW]: intval/strval pass-by-reference | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-174479@lists.php.net to get a copy of this message | ||
From: ilyane at list dot ru
Operating system: Any
PHP version: Irrelevant
Package: *General Issues
Bug Type: Feature/Change Request
Bug description:intval/strval pass-by-reference
Description:
------------
---
From manual page: http://www.php.net/function.intval
---
Why not to add pass-by-reference option?
That would be such a beautiful thing:
intval(&$var);
strval(&$var);
and so on...
Test script:
---------------
$var = "123";
intval(&$var);
var_dump($var); //int(123)
Expected result:
----------------
int(123)
--
Edit bug report at https://bugs.php.net/bug.php?id=63418&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=63418&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=63418&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=63418&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=63418&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=63418&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=63418&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=63418&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=63418&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=63418&r=support
Expected behavior: https://bugs.php.net/fix.php?id=63418&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=63418&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=63418&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=63418&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=63418&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=63418&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=63418&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=63418&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=63418&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=63418&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=63418&r=mysqlcfg