Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:37726 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 45027 invoked from network); 19 May 2008 19:38:48 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 May 2008 19:38:48 -0000 Authentication-Results: pb1.pair.com header.from=steph@zend.com; sender-id=softfail Authentication-Results: pb1.pair.com smtp.mail=steph@zend.com; spf=softfail; sender-id=softfail Received-SPF: softfail (pb1.pair.com: domain zend.com does not designate 64.97.136.183 as permitted sender) X-PHP-List-Original-Sender: steph@zend.com X-Host-Fingerprint: 64.97.136.183 smtpout0183.sc1.he.tucows.com Solaris 8 (1) Received: from [64.97.136.183] ([64.97.136.183:10662] helo=n066.sc1.he.tucows.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 67/05-20039-747D1384 for ; Mon, 19 May 2008 15:38:47 -0400 Received: from sc1-out08.emaildefenseservice.com (64.97.139.2) by n066.sc1.he.tucows.com (7.2.069.1) id 4769F91801137B13 for internals@lists.php.net; Mon, 19 May 2008 19:38:44 +0000 X-SpamScore: 2 X-Spamcatcher-Summary: 2,0,0,9911ff01d2826506,500c940066e58db7,steph@zend.com,-,RULES_HIT:152:355:379:539:540:541:542:543:567:966:973:982:988:989:1000:1155:1156:1260:1308:1309:1313:1314:1345:1437:1515:1516:1518:1535:1540:1575:1587:1594:1676:1711:1730:1747:1764:1766:1792:2073:2075:2078:2196:2199:2393:2553:2559:2562:3352:3622:3865:3866:3867:3868:3869:3870:3871:3874:4119:4362:4385:5007:6119:6261:7281:7875,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF: not bulk,SPF:,MSBL:none,DNSBL:none,TSO:0 X-Spamcatcher-Explanation: Received: from foxbox (host86-130-56-54.range86-130.btcentralplus.com [86.130.56.54]) (Authenticated sender: steph.fox) by sc1-out08.emaildefenseservice.com (Postfix) with ESMTP for ; Mon, 19 May 2008 19:38:43 +0000 (UTC) Message-ID: <010301c8b9e8$1d113f80$4001a8c0@foxbox> Reply-To: "Steph Fox" To: "internals" Date: Mon, 19 May 2008 20:39:49 +0100 Organization: Zend Technologies MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0100_01C8B9F0.7BA416A0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Subject: Dirty hands required From: steph@zend.com ("Steph Fox") ------=_NextPart_000_0100_01C8B9F0.7BA416A0 Content-Type: text/plain; format=flowed; charset="UTF-8"; reply-type=original Content-Transfer-Encoding: 7bit Hi all, I just spent forever trying to get Phar to work as expected under CVS HEAD when unicode.semantics=1. There are still 46 test failures I've no idea how to address, with stream conversion and path issues leading the way (more than half all failures) and Phar's _SERVER munging close behind. Attached is a run-down of those 46 failures. I'd like to merge the code changes I already made in CVS HEAD back to PHP_5_3 branch, but could do with some sanity checking first... I may well be casting things that shouldn't be cast or vice versa. So if anyone is curious and has time on their hands, please feel free to have a go. The only rule is that 5_3-created phars *must* run under PHP 6. The run-tests.php script from 5_3 is usable with HEAD - just don't forget to switch unicode.semantics on! Thanks, - Steph ------=_NextPart_000_0100_01C8B9F0.7BA416A0 Content-Type: text/plain; format=flowed; name="failures.txt"; reply-type=original Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="failures.txt" Conversion issues:=0A= php-src\ext\phar\tests\018.phpt: readdir() cannot convert binary string = to Unicode (any attempt to cast retval to binary leads to a crash)=0A= php-src\ext\phar\tests\opendir.phpt: doesn't.=0A= php-src\ext\phar\tests\opendir_edgecases.phpt: doesn't. Directory name = reported as =EB=B7=A6.=0A= php-src\ext\phar\tests\phar_dir_iterate.phpt: broken foreach()=0A= php-src\ext\phar\tests\phar_dotted_path.phpt: broken foreach()=0A= php-src\ext\phar\tests\phar_oo_002.phpt: broken var_dump during foreach = loop=0A= php-src\ext\phar\tests\phar_oo_003.phpt: broken var_dump during foreach = loop=0A= php-src\ext\phar\tests\phar_oo_004.phpt: broken var_dump during foreach = loop=0A= php-src\ext\phar\tests\phar_oo_005.phpt: broken var_dump during foreach = loop=0A= php-src\ext\phar\tests\tar\tar_003.phpt: readdir() fails, dirnames like = =E8=97=A6=EE=96=B4=EB=8A=BD=E8=83=A3=0A= php-src\ext\phar\tests\zf_test.phpt: foreach() fails=0A= php-src\ext\phar\tests\zip\odt.phpt: 'RuntimeException' with message = 'Cannot access phar file entry = '/=E9=97=A4=EE=92=8D=E9=92=85=EA=93=A4=EE=92=AD=E8=BA=99=EB=93=A6' in = archive 'C:/sandbox/php-src/ext/phar/tests/zip/files/odt.odt', phar = error: invalid path = "/=E9=97=A4=EE=92=8D=E9=92=85=EA=93=A4=EE=92=AD=E8=BA=99=EB=93=A6" = contains illegal character' in php-src\ext\phar\tests\zip\odt.php:3=0A= php-src\ext\phar\tests\zip\unixzip.phpt: 'RuntimeException' with message = 'Cannot access phar file entry '/=EA=97=A6=EE=9E=A8' in archive = 'C:/sandbox/php-src/ext/phar/tests/zip/files/zip.zip', phar error: = invalid path "/=EA=97=A6=EE=9E=A8" contains illegal character' in = php-src\ext\phar\tests\zip\unixzip.php:3=0A= =0A= Path issues:=0A= php-src\ext\phar\tests\019.phpt: directory "hio/b" not recognised = following creation as "hio/b/a"=0A= php-src\ext\phar\tests\020.phpt: directory "hio/b" not recognised = following creation as "hio/b/a"=0A= php-src\ext\phar\tests\dir.phpt: "sub" not recognised as a directory = following creation as "sub/directory.txt"=0A= php-src\ext\phar\tests\phar_oo_getcontents.phpt: dir "a" not recognised = following creation as "a/b"=0A= php-src\ext\phar\tests\pharfileinfo_chmod.phpt: dir "a" not recognised = following creation as "a/b"=0A= php-src\ext\phar\tests\pharfileinfo_compression.phpt: dir "a" not = recognised following creation as "a/b"=0A= php-src\ext\phar\tests\pharfileinfo_destruct.phpt: 'a/subdir' not = recognised following creation as 'a/subdir/here'=0A= php-src\ext\phar\tests\pharfileinfo_getcrc32.phpt: 'a/subdir' not = recognised following creation as 'a/subdir/here'=0A= php-src\ext\phar\tests\pharfileinfo_setmetadata.phpt: dir "a" not = recognised following creation as "a/b"=0A= php-src\ext\phar\tests\phar_buildfromiterator10.phpt: Iterator = RegexIterator returned a path "php-src\ext\phar\tests" that is not in = the base directory "php-src\ext\phar\tests\"=0A= =0A= Frontcontrollers/phar_mung_server_vars():=0A= php-src\ext\phar\tests\front.phar.phpt: 'config.xml is not a phar = archive, cannot mount'=0A= php-src\ext\phar\tests\frontcontroller10.phpt: Expected 403, got 404.=0A= php-src\ext\phar\tests\frontcontroller21.phpt: In = phar_mung_server_vars(), zend_hash_find(Z_ARRVAL_PP(_SERVER), = "REQUEST_URI" etc. fails=0A= php-src\ext\phar\tests\frontcontroller23.phpt: phar_mung_server_vars()=0A= php-src\ext\phar\tests\frontcontroller25.phpt: phar_mung_server_vars()=0A= php-src\ext\phar\tests\frontcontroller34.phpt: fails to = include(./another.php);=0A= php-src\ext\phar\tests\frontcontroller9.phpt: returns 404=0A= php-src\ext\phar\tests\tar\frontcontroller10.phar.phpt: as = frontcontroller10.phpt=0A= php-src\ext\phar\tests\tar\frontcontroller21.phar.phpt: as = frontcontroller21.phpt=0A= php-src\ext\phar\tests\tar\frontcontroller9.phar.phpt: as = frontcontroller9.phpt=0A= php-src\ext\phar\tests\zip\frontcontroller10.phar.phpt: as = frontcontroller10.phpt=0A= php-src\ext\phar\tests\zip\frontcontroller21.phar.phpt: as = frontcontroller21.phpt=0A= php-src\ext\phar\tests\zip\frontcontroller9.phar.phpt: as = frontcontroller9.phpt=0A= =0A= Context not set:=0A= php-src\ext\phar\tests\phar_ctx_001.phpt=0A= php-src\ext\phar\tests\phar_oo_compressed_002.phpt=0A= php-src\ext\phar\tests\phar_oo_compressed_002b.phpt=0A= =0A= Binary return type:=0A= php-src\ext\phar\tests\create_new_and_modify.phpt: getSignature() = returns binary keys=0A= php-src\ext\phar\tests\test_signaturealgos.phpt: getSignature() returns = binary keys=0A= =0A= Mystery bits and bobs:=0A= php-src\ext\phar\tests\mounteddir.phpt: Fatal error: Allowed memory size = of 134217728 bytes exhausted at php-src\main\spprintf.c:858 (tried to = allocate 80 bytes) in = phar://C:/sandbox/php-src/ext/phar/tests/tempmanifest1.phar.php/index.php= on line 3=0A= php-src\ext\phar\tests\phar_buildfromdirectory2.phpt: Expected a = "UnexpectedValueException", got a "RuntimeException" instead (but = correct error message).=0A= php-src\ext\phar\tests\phar_oo_008.phpt: crashes, cause unknown=0A= php-src\ext\phar\tests\phar_oo_009.phpt: crashes, cause unknown=0A= php-src\ext\phar\tests\stat2_5.3.phpt: one item that should be true is = false, not sure which/why - test could do with splitting down=0A= ------=_NextPart_000_0100_01C8B9F0.7BA416A0--