note 67572 added to function.zip-open

From: Date: Thu, 08 Jun 2006 20:55:43 +0000
Subject: note 67572 added to function.zip-open
Groups: php.notes 
Request: Send a blank email to php-notes+get-113919@lists.php.net to get a copy of this message
I tried the replacement hack above on Windows2k, here are some fixes needed: replace: return "'".str_replace("'", "'\''", $s)."'"; with: return '"'.str_replace("'", "'\''", $s).'"'; replace: if($line[0]=='-') { $ok=!$ok; continue; } with: if($line[2]=='-') { $ok=!$ok; continue; } replace: $contents[] = Array('name' => $fn, 'length' => $length); with: array_push($contents, Array('name' => $fn, 'length' => $length)); ---- Server IP: 217.160.72.57 Probable Submitter: 198.240.213.25 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.zip-open.php Edit -- http://master.php.net/note/edit/67572 Del: integrated -- http://master.php.net/note/delete/67572/integrated Del: useless -- http://master.php.net/note/delete/67572/useless Del: bad code -- http://master.php.net/note/delete/67572/bad+code Del: spam -- http://master.php.net/note/delete/67572/spam Del: non-english -- http://master.php.net/note/delete/67572/non-english Del: in docs -- http://master.php.net/note/delete/67572/in+docs Del: other reasons-- http://master.php.net/note/delete/67572 Reject -- http://master.php.net/note/reject/67572 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#113919) next »