note 78321 added to function.stristr

From: Date: Sat, 06 Oct 2007 12:02:41 +0000
Subject: note 78321 added to function.stristr
Groups: php.notes 
Request: Send a blank email to php-notes+get-131180@lists.php.net to get a copy of this message
Just been caught out by stristr trying to converting the needle from an Int to an ASCII value. Got round this by casting the value to a string. if( !stristr( $file, (string) $myCustomer->getCustomerID() ) ) { // Permission denied } ---- Server IP: 194.145.210.3 Probable Submitter: 217.33.59.138 ---- Manual Page -- http://www.php.net/manual/en/function.stristr.php Edit -- https://master.php.net/note/edit/78321 Del: integrated -- https://master.php.net/note/delete/78321/integrated Del: useless -- https://master.php.net/note/delete/78321/useless Del: bad code -- https://master.php.net/note/delete/78321/bad+code Del: spam -- https://master.php.net/note/delete/78321/spam Del: non-english -- https://master.php.net/note/delete/78321/non-english Del: in docs -- https://master.php.net/note/delete/78321/in+docs Del: other reasons-- https://master.php.net/note/delete/78321 Reject -- https://master.php.net/note/reject/78321 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#131180) next »