note 74429 added to function.basename

From: Date: Wed, 11 Apr 2007 11:33:51 +0000
Subject: note 74429 added to function.basename
Groups: php.notes 
Request: Send a blank email to php-notes+get-125282@lists.php.net to get a copy of this message
Support of the $suffix parameter has changed between PHP4 and PHP5: in PHP4, $suffix is removed first, and then the core basename is applied. conversely, in PHP5, $suffix is removed AFTER applying core basename. Example: <?php $file = "path/to/file.xml#xpointer(/Texture)"; echo basename($file, ".xml#xpointer(/Texture)"); ?> Result in PHP4: file Result in PHP5: Texture) ---- Server IP: 194.246.101.61 Probable Submitter: 82.216.69.228 ---- Manual Page -- http://www.php.net/manual/en/function.basename.php Edit -- https://master.php.net/note/edit/74429 Del: integrated -- https://master.php.net/note/delete/74429/integrated Del: useless -- https://master.php.net/note/delete/74429/useless Del: bad code -- https://master.php.net/note/delete/74429/bad+code Del: spam -- https://master.php.net/note/delete/74429/spam Del: non-english -- https://master.php.net/note/delete/74429/non-english Del: in docs -- https://master.php.net/note/delete/74429/in+docs Del: other reasons-- https://master.php.net/note/delete/74429 Reject -- https://master.php.net/note/reject/74429 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#125282) next »