note 58853 added to function.in-array

From: Date: Thu, 17 Nov 2005 21:03:52 +0000
Subject: note 58853 added to function.in-array
Groups: php.notes 
Request: Send a blank email to php-notes+get-98724@lists.php.net to get a copy of this message
Never, I mean absolutely never trust this function in a production environment unless you are using the strict option and are making sure to cast everything properly this functions like intval(). This function misbehaving caused overcharges to customers in a production environment - falsely returning false and allowing an item to get double listed in their cart. ---- Manual Page -- http://www.php.net/manual/en/function.in-array.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+58853 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+58853&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+58853&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+58853&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+58853&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+58853&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+58853&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+58853&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+58853&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#98724) next »