#27090 [NEW]: == to compare arrays is not documented enough

From: Date: Thu, 29 Jan 2004 22:07:06 +0000
Subject: #27090 [NEW]: == to compare arrays is not documented enough
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969358570@lists.php.net to get a copy of this message
From: derick@php.net 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

« previous php.doc (#969358570) next »