From: zyss at mail dot zp dot ua Operating system: Irrelevant PHP version: 5.2.9 PHP Bug Type: Feature/Change Request Bug description: $ variable prefix is unneeded in most cases
Description: ------------ $ character is one of the most widely used in PHP code, in most cases its use is unreasonable. I understand its historical roots, it came from Unix shell scripts (such as bash) where it was required to make interpreters "life" easier. But today's most powerful languages do not require use of variable prefix to distinguish between variable and other identifiers. There are some cases where use of $ if reasonable, for example inside strings and when calling function by name stored in a variable. In all other cases programmers are dazzled by it. I do not propose to remove $ prefix, it would be a major improvement to make it OPTIONAL (this change will not break any existing code but many people will breathe a sigh of relief). P.S. If you will continue to prefer PHP-interpreter developers' convenience over PHP-code developers' we will start our own fork of PHP to be able to add required functionality to it. -- Edit bug report at http://bugs.php.net/?id=48278&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=48278&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=48278&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=48278&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=48278&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=48278&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=48278&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=48278&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=48278&r=needscript Try newer version: http://bugs.php.net/fix.php?id=48278&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=48278&r=support Expected behavior: http://bugs.php.net/fix.php?id=48278&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=48278&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=48278&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=48278&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48278&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=48278&r=dst IIS Stability: http://bugs.php.net/fix.php?id=48278&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=48278&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=48278&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=48278&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=48278&r=mysqlcfg
