From: sam at sambarrow dot com Operating system: Ubuntu Linux 7.04 PHP version: 5.3CVS-2008-01-04 (CVS) PHP Bug Type: Feature/Change Request Bug description: Scalar type hinting
Description: ------------ Requesting support for scalar type hinting. I have a fully working patch written, I have been using it myself with no problems for a couple of months. Full specs: Type hinting patch allows for 8 new type hints, in addition to array and class type hinting. - Integers (specified by "int", "integer", or "long") - Floats (specified by "float", "double", or "real") - Numbers (matches integers and floats, specified by "num" or "number") - Strings (specified by "string") - Booleans (specified by "bool" or "boolean") - Scalars (matches strings, booleans, and numbers; specified by "scalar") - Resources (specified by "resource") - Objects (matches any object, specified by "object") -- Edit bug report at http://bugs.php.net/?id=43745&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=43745&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=43745&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=43745&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=43745&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=43745&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=43745&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=43745&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=43745&r=needscript Try newer version: http://bugs.php.net/fix.php?id=43745&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=43745&r=support Expected behavior: http://bugs.php.net/fix.php?id=43745&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=43745&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=43745&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=43745&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=43745&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=43745&r=dst IIS Stability: http://bugs.php.net/fix.php?id=43745&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=43745&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=43745&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=43745&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=43745&r=mysqlcfg
