From:             [EMAIL PROTECTED]
Operating system: irrelevant
PHP version:      Irrelevant
PHP Bug Type:     Documentation problem
Bug description:  == to compare arrays is not documented enough

Description:
------------
While being pissed of that array_diff returns an empty array on eval
array_diff(array(), array(0=>'id')) I was looking for a way to simply see
if there is a function to see if arrays are equal or not; there is == I
discovered, but this is nowhere documented. It needs to be documented the
following locations:

http://docs.php.net/en/language.operators.html#language.operators.array
http://docs.php.net/en/language.operators.html#language.operators.comparison
http://docs.php.net/en/language.types.html#language.types.array  (with
example)

and both + and == should be documented here:
http://docs.php.net/en/ref.array.html#ref.array



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

Reply via email to