From:             tony at marston-home dot demon dot co dot uk
Operating system: Windows XP
PHP version:      5.1.2
PHP Bug Type:     Arrays related
Bug description:  BC broken for no good reason

Description:
------------
I know that you're going to say that this is not a bug, as you have done
with bug #25762, but I just want to make the point that, regardless of
what it now says in the manual, as far as we in userland are concerned
THIS IS A BUG! You have changed the way that it works when compared wih
PHP 4, so you have broken backwards compatibility. And for what reason? To
make the language more pure! This is not a good enough reason.

It is no good saying that all array funcions MUST have arguments of the
correct type, as this goes against the PHP tradition of being a very
user-friendly and forgiving language that would accept arguments of any
type and do any type casting itself. You are now saying that it is the
programmer's responsibiliy to cast each variable to the correct type
before calling an PHP function.

Just suppose this argument was carried forward to every other function
with PHP. How popular would you be then?

This type of unnecessary BC breakage is conributing tothe slow take-up of
PHP 5 because it breaks too many existing scripts FOR ABSOLUTELY NO GOOD
REASON.

I suggest you stop this "code purity" nonsense and make PHP work in the
way that it has always worked - easy to use and forgiving.

Expected result:
----------------
I expect the behaviour in PHP 4 to bethe same in PHP 5.


-- 
Edit bug report at http://bugs.php.net/?id=36770&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=36770&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): 
http://bugs.php.net/fix.php?id=36770&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=36770&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=36770&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=36770&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=36770&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=36770&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=36770&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=36770&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=36770&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=36770&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=36770&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=36770&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=36770&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=36770&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=36770&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=36770&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=36770&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=36770&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=36770&r=mysqlcfg

Reply via email to