note 85512 added to function.ziparchive-locatename

From: Date: Wed, 03 Sep 2008 08:04:32 +0000
Subject: note 85512 added to function.ziparchive-locatename
Groups: php.notes 
Request: Send a blank email to php-notes+get-144106@lists.php.net to get a copy of this message
If the option ZIPARCHIVE::FL_NODIR is used, the result may be ambiguous as files with the same name may occur in various directories. In this case, the first occurence in the index whoose name matches is returned. E.g. <?php $zip->addFromString('afile.txt', 'index 0'); $zip->addFromString('double.txt', 'index 1'); $zip->addFromString('dir/double.txt', 'index 2'); ?> $zip->locateName('double.txt',ZIPARCHIVE::FL_NODIR) returns 1 ---- Server IP: 217.13.201.10 Probable Submitter: 129.13.72.153 ---- Manual Page -- http://www.php.net/manual/en/function.ziparchive-locatename.php Edit -- https://master.php.net/note/edit/85512 Del: integrated -- https://master.php.net/note/delete/85512/integrated Del: useless -- https://master.php.net/note/delete/85512/useless Del: bad code -- https://master.php.net/note/delete/85512/bad+code Del: spam -- https://master.php.net/note/delete/85512/spam Del: non-english -- https://master.php.net/note/delete/85512/non-english Del: in docs -- https://master.php.net/note/delete/85512/in+docs Del: other reasons-- https://master.php.net/note/delete/85512 Reject -- https://master.php.net/note/reject/85512 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#144106) next »