From 04d0bb1e10f4115be09b927d77845bfd04aabdff Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Tue, 15 Apr 2008 17:13:08 +0000 Subject: [PATCH] - Fixed tests (NULL is allowed where binary string is expected) --- .../tests/strings/addcslashes_003.phpt | Bin 1618 -> 1333 bytes .../tests/strings/crc32_variation1.phpt | 32 +++++------------- 2 files changed, 8 insertions(+), 24 deletions(-) diff --git a/ext/standard/tests/strings/addcslashes_003.phpt b/ext/standard/tests/strings/addcslashes_003.phpt index 10b1e99738b27c6c701f635f52c59781aae91be4..7ca33e11eca24ba6d3e517432231610db33a97ce 100644 GIT binary patch delta 38 ucmcb_vz2SZJQlvw}c$qXU@ delta 362 zcmdnWb%|%gJeGQ{@Wi6L%)E3fg~XJUyf;*8W{4NZmAih|VSl46B|#G=I9)RNR9 z1tW!$e1)V`h2oN;%;b`sN`*v)q|Cg;qDrtxUb>D#UTIE_LV9LdYMw%7o`PzzLVlh? zPG(-Jf@%tvU#O1{7p7%VxNI||*tW^LSma3X9_1EtfkGxPUBl2oQ$b1BP|qmFc=C4^ FI{+Kpe2oAA diff --git a/ext/standard/tests/strings/crc32_variation1.phpt b/ext/standard/tests/strings/crc32_variation1.phpt index d2f8e5b41f..e72734cf37 100644 --- a/ext/standard/tests/strings/crc32_variation1.phpt +++ b/ext/standard/tests/strings/crc32_variation1.phpt @@ -158,14 +158,10 @@ Warning: crc32() expects parameter 1 to be string, array given in %s on line %d NULL -- Iteration 15 -- - -Warning: crc32() expects parameter 1 to be strictly a binary string, null given in %s on line %d -NULL +int(0) -- Iteration 16 -- - -Warning: crc32() expects parameter 1 to be strictly a binary string, null given in %s on line %d -NULL +int(0) -- Iteration 17 -- int(-2082672713) @@ -189,14 +185,10 @@ int(0) int(-1465013268) -- Iteration 24 -- - -Warning: crc32() expects parameter 1 to be strictly a binary string, null given in %s on line %d -NULL +int(0) -- Iteration 25 -- - -Warning: crc32() expects parameter 1 to be strictly a binary string, null given in %s on line %d -NULL +int(0) -- Iteration 26 -- @@ -263,14 +255,10 @@ Warning: crc32() expects parameter 1 to be binary string, array given in %s on l NULL -- Iteration 15 -- - -Warning: crc32() expects parameter 1 to be strictly a binary string, null given in %s on line %d -NULL +int(0) -- Iteration 16 -- - -Warning: crc32() expects parameter 1 to be strictly a binary string, null given in %s on line %d -NULL +int(0) -- Iteration 17 -- int(-2082672713) @@ -298,14 +286,10 @@ NULL int(-1465013268) -- Iteration 24 -- - -Warning: crc32() expects parameter 1 to be strictly a binary string, null given in %s on line %d -NULL +int(0) -- Iteration 25 -- - -Warning: crc32() expects parameter 1 to be strictly a binary string, null given in %s on line %d -NULL +int(0) -- Iteration 26 -- -- 2.50.1