From:             marcus at gooseflesh dot de
Operating system: Windos 2000
PHP version:      4.3.2
PHP Bug Type:     Variables related
Bug description:  Call-time pass-by-reference has been deprecated

Description:
------------
I have really big problems with your newest change to php. having
Call-time pass-by-reference has been deprecated without having objects
passed-by-reference makes the usability of your language really
impractical. 

example: 

function foo($var); // is by-value if you pass an object it will be
copied.

function foo(&$var); // is by-reference but you cannot pass null or a
value.

foo(17); // error
foo(null); // error

function foo(&$var = null); // error

Because you have unsuitable method signiture overloading and now no
call-time pass-by-reference an efficient way of designing applications or
libraries in your language is now impossible.

It's a pity. At the moment I don't feel like to finish my php projects.

Marcus


-- 
Edit bug report at http://bugs.php.net/?id=25006&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=25006&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=25006&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=25006&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=25006&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=25006&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=25006&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=25006&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=25006&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=25006&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=25006&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=25006&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25006&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=25006&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=25006&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=25006&r=gnused

Reply via email to