[test issue] expecting "unicode(#) <substring value>" but pftt output "string(#) <substring value>" #34

Open
opened 2026-01-24 11:40:21 +01:00 by admin · 0 comments
Owner

Originally created by @hollyhuiLi on GitHub (Jun 25, 2019).

typical test case: ext/phar/tests/tar/allu.phpt
diff:
@@ -6,1 +6,1 @@
string(2) "hi"
string(3) "hi2"
string(3) "hi3"
+string(6) "100444"
-unicode(6) "100444"
@@ -10,2 +10,2 @@
string(32) "<?php ok __HALT_COMPILER(); ?>
"
string(4) "hime"
+string(8) "hi there"
+string(6) "a meta"
-unicode(8) "hi there"
-unicode(6) "a meta"
-===DONE===

Originally created by @hollyhuiLi on GitHub (Jun 25, 2019). typical test case: ext/phar/tests/tar/allu.phpt diff: &#64;&#64; -6,1 +6,1 &#64;&#64; string(2) "hi" string(3) "hi2" string(3) "hi3" +string(6) "100444" -unicode(6) "100444" &#64;&#64; -10,2 +10,2 &#64;&#64; string(32) "&lt;?php ok __HALT_COMPILER(); ?&gt; " string(4) "hime" +string(8) "hi there" +string(6) "a meta" -unicode(8) "hi there" -unicode(6) "a meta" -===DONE===
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: php/pftt2#34