Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
bb55397
Make zpp fail if NaN passed for int, or out-of-range float for non-ca…
hikari-no-yume Sep 22, 2014
25eb496
Fixed broken tests
hikari-no-yume Sep 22, 2014
a401db2
Fixed ext/date tests broken by zpp error on overflow
hikari-no-yume Sep 22, 2014
820a464
Mark said ext/date tests as 32-bit only
hikari-no-yume Sep 22, 2014
71566b9
Merge branch 'master' into zppFailOnOverflow
hikari-no-yume Nov 1, 2014
d22f3b1
Merge branch 'master' into zppFailOnOverflow
hikari-no-yume Nov 8, 2014
b707793
Fixed some 32-bit tests
hikari-no-yume Nov 9, 2014
26bb809
Fixed more 32-bit tests
hikari-no-yume Nov 9, 2014
5b52fb5
Marked tests as 32-bit
hikari-no-yume Nov 9, 2014
344eba1
Fixes iconv tests
ralt Nov 9, 2014
62f6c3c
Fixes posix tests
ralt Nov 9, 2014
df1b722
Fixes simplexml test
ralt Nov 9, 2014
cc35388
Merge branch 'zppFailOnOverflow' of github.com:Ralt/php-src into zppF…
hikari-no-yume Nov 11, 2014
f574ad1
skip tests on 32-bit
hikari-no-yume Nov 28, 2014
0885805
skip posix 32-bit
hikari-no-yume Nov 28, 2014
55e1c03
skip simplexml
hikari-no-yume Nov 28, 2014
ebaa423
Skip buncha tests on 32-bit
hikari-no-yume Nov 29, 2014
65c8edd
Fix more 32-bit tests
hikari-no-yume Nov 29, 2014
01554bf
Merge branch 'master' into zppFailOnOverflow
hikari-no-yume Nov 29, 2014
d19ce51
Fixed copy-and-paste error
hikari-no-yume Nov 29, 2014
f90b877
Refactor ZEND_LONG_MAX/MIN checks into ZEND_DOUBLE_FITS_LONG()
hikari-no-yume Nov 29, 2014
175844c
Fixed gd test
hikari-no-yume Nov 29, 2014
d5afeef
Fix MySQLi tests
hikari-no-yume Nov 29, 2014
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Skip buncha tests on 32-bit
  • Loading branch information
hikari-no-yume committed Nov 29, 2014
commit ebaa42302af4bd2ee41d8964044db23e91cf90f3
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
--TEST--
Test array_change_key_case() function : usage variations - Pass different data types as $case arg
--SKIPIF--
<?php if (PHP_INT_SIZE != 8) die("skip this test is for 64-bit only");
--FILE--
<?php
/* Prototype : array array_change_key_case(array $input [, int $case])
Expand Down Expand Up @@ -285,4 +287,4 @@ array(3) {
["three"]=>
int(3)
}
Done
Done
2 changes: 2 additions & 0 deletions ext/standard/tests/array/array_chunk_variation2.phpt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
--TEST--
Test array_chunk() function : usage variations - unexpected values for 'size' argument
--SKIPIF--
<?php if (PHP_INT_SIZE != 8) die("skip this test is for 64-bit only");
--FILE--
<?php
/* Prototype : array array_chunk(array $array, int $size [, bool $preserve_keys])
Expand Down
2 changes: 2 additions & 0 deletions ext/standard/tests/array/array_pad_variation2.phpt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
--TEST--
Test array_pad() function : usage variations - unexpected values for 'pad_size' argument(Bug#43482)
--SKIPIF--
<?php if (PHP_INT_SIZE != 8) die("skip this test is for 64-bit only");
--FILE--
<?php
/* Prototype : array array_pad(array $input, int $pad_size, mixed $pad_value)
Expand Down
2 changes: 2 additions & 0 deletions ext/standard/tests/array/array_rand_variation2.phpt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
--TEST--
Test array_rand() function : usage variations - unexpected values for 'num_req' parameter
--SKIPIF--
<?php if (PHP_INT_SIZE != 8) die("skip this test is for 64-bit only");
--FILE--
<?php
/* Prototype : mixed array_rand(array input [, int num_req])
Expand Down
4 changes: 3 additions & 1 deletion ext/standard/tests/array/count_variation2.phpt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
--TEST--
Test count() function : usage variations - Pass different data types as $mode arg
--SKIPIF--
<?php if (PHP_INT_SIZE != 8) die("skip this test is for 64-bit only");
--FILE--
<?php
/* Prototype : int count(mixed $var [, int $mode])
Expand Down Expand Up @@ -184,4 +186,4 @@ int(3)

Warning: count() expects parameter 2 to be long, resource given in %s on line %d
NULL
Done
Done
4 changes: 3 additions & 1 deletion ext/standard/tests/array/rsort_variation2.phpt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
--TEST--
Test rsort() function : usage variations - Pass different data types as $sort_flags arg
--SKIPIF--
<?php if (PHP_INT_SIZE != 8) die("skip this test is for 64-bit only");
--FILE--
<?php
/* Prototype : bool rsort(array &$array_arg [, int $sort_flags])
Expand Down Expand Up @@ -481,4 +483,4 @@ array(5) {
[4]=>
int(1)
}
Done
Done
2 changes: 2 additions & 0 deletions ext/standard/tests/dir/scandir_variation2.phpt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
--TEST--
Test scandir() function : usage variations - diff data types as $sorting_order arg
--SKIPIF--
<?php if (PHP_INT_SIZE != 8) die("skip this test is for 64-bit only");
--FILE--
<?php
/* Prototype : array scandir(string $dir [, int $sorting_order [, resource $context]])
Expand Down
2 changes: 2 additions & 0 deletions ext/standard/tests/file/chmod_variation4.phpt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
--TEST--
Test chmod() function : second parameter variation
--SKIPIF--
<?php if (PHP_INT_SIZE != 8) die("skip this test is for 64-bit only");
--FILE--
<?php
/* Prototype : bool chmod(string filename, int mode)
Expand Down
2 changes: 2 additions & 0 deletions ext/standard/tests/file/file_get_contents_variation5.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
Test file_get_contents() function : usage variation
--CREDITS--
Dave Kelsey <d_kelsey@uk.ibm.com>
--SKIPIF--
<?php if (PHP_INT_SIZE != 8) die("skip this test is for 64-bit only");
--FILE--
<?php
/* Prototype : string file_get_contents(string filename [, bool use_include_path [, resource context [, long offset [, long maxlen]]]])
Expand Down
2 changes: 2 additions & 0 deletions ext/standard/tests/file/file_variation3.phpt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
--TEST--
Test file() function : second parameter variation
--SKIPIF--
<?php if (PHP_INT_SIZE != 8) die("skip this test is for 64-bit only");
--FILE--
<?php
/* Prototype : array file(string filename [, int flags[, resource context]])
Expand Down
2 changes: 2 additions & 0 deletions ext/standard/tests/file/fseek_variation2.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
Test fseek() function : usage variations - different types for whence
--CREDITS--
Dave Kelsey <d_kelsey@uk.ibm.com>
--SKIPIF--
<?php if (PHP_INT_SIZE != 8) die("skip this test is for 64-bit only");
--FILE--
<?php
/* Prototype : proto int fseek(resource fp, int offset [, int whence])
Expand Down
2 changes: 2 additions & 0 deletions ext/standard/tests/file/mkdir_variation2.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
Test mkdir() function : usage variation: different types for mode
--CREDITS--
Dave Kelsey <d_kelsey@uk.ibm.com>
--SKIPIF--
<?php if (PHP_INT_SIZE != 8) die("skip this test is for 64-bit only");
--FILE--
<?php
/* Prototype : bool mkdir(string pathname [, int mode [, bool recursive [, resource context]]])
Expand Down
2 changes: 2 additions & 0 deletions ext/standard/tests/file/pathinfo_variation2.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
Test pathinfo() function : usage variation
--CREDITS--
Dave Kelsey <d_kelsey@uk.ibm.com>
--SKIPIF--
<?php if (PHP_INT_SIZE != 8) die("skip this test is for 64-bit only");
--FILE--
<?php
/* Prototype : array pathinfo(string path[, int options])
Expand Down
1 change: 1 addition & 0 deletions ext/standard/tests/file/touch_variation3.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Test touch() function : usage variation - different types for time
Dave Kelsey <d_kelsey@uk.ibm.com>
--SKIPIF--
<?php
if (PHP_INT_SIZE != 8) die("skip this test is for 64-bit only");
if (substr(PHP_OS, 0, 3) == 'WIN') {
die('skip.. Not for Windows');
}
Expand Down
1 change: 1 addition & 0 deletions ext/standard/tests/file/touch_variation4.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Test touch() function : usage variation - different types for atime
Dave Kelsey <d_kelsey@uk.ibm.com>
--SKIPIF--
<?php
if (PHP_INT_SIZE != 8) die("skip this test is for 64-bit only");
if (substr(PHP_OS, 0, 3) == 'WIN') {
die('skip.. Not for Windows');
}
Expand Down
1 change: 1 addition & 0 deletions ext/standard/tests/file/umask_variation3.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Test umask() function : usage variation
Dave Kelsey <d_kelsey@uk.ibm.com>
--SKIPIF--
<?php
if (PHP_INT_SIZE != 8) die("skip this test is for 64-bit only");
if (substr(PHP_OS, 0, 3) == 'WIN') {
die('skip.. only for Non Windows');
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Test getrusage() function : usage variation - diff data types as $who arg
--SKIPIF--
<?php
if (PHP_INT_SIZE != 8) die("skip this test is for 64-bit only");
if( substr(PHP_OS, 0, 3) == "WIN" )
die("skip.. Do not run on Windows");
?>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
--TEST--
Test image_type_to_mime_type() function : usage variations - Pass different data types as imagetype
--SKIPIF--
<?php if (PHP_INT_SIZE != 8) die("skip this test is for 64-bit only");
--FILE--
<?php
/* Prototype : string image_type_to_mime_type(int imagetype)
Expand Down Expand Up @@ -149,4 +151,4 @@ string(24) "application/octet-stream"

-- Iteration 20 --
string(24) "application/octet-stream"
===DONE===
===DONE===
2 changes: 2 additions & 0 deletions ext/standard/tests/strings/chunk_split_variation2.phpt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
--TEST--
Test chunk_split() function : usage variations - unexpected values for 'chunklen' argument(Bug#42796)
--SKIPIF--
<?php if (PHP_INT_SIZE != 8) die("skip this test is for 64-bit only");
--FILE--
<?php
/* Prototype : string chunk_split(string $str [, int $chunklen [, string $ending]])
Expand Down
2 changes: 2 additions & 0 deletions ext/standard/tests/strings/count_chars_variation2.phpt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
--TEST--
Test count_chars() function : usage variations - test values for $mode argument
--SKIPIF--
<?php if (PHP_INT_SIZE != 8) die("skip this test is for 64-bit only");
--FILE--
<?php

Expand Down
2 changes: 2 additions & 0 deletions ext/standard/tests/strings/explode.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
explode() function
--INI--
error_reporting=2047
--SKIPIF--
<?php if (PHP_INT_SIZE != 8) die("skip this test is for 64-bit only");
--FILE--
<?php
/* From http://bugs.php.net/19865 */
Expand Down
2 changes: 2 additions & 0 deletions ext/standard/tests/strings/str_pad_variation4.phpt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
--TEST--
Test str_pad() function : usage variations - unexpected inputs for '$pad_type' argument
--SKIPIF--
<?php if (PHP_INT_SIZE != 8) die("skip this test is for 64-bit only");
--FILE--
<?php
/* Prototype : string str_pad ( string $input , int $pad_length [, string $pad_string [, int $pad_type ]] )
Expand Down
4 changes: 3 additions & 1 deletion ext/standard/tests/strings/strcspn_variation4.phpt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
--TEST--
Test strcspn() function : usage variations - unexpected values of len argument
--SKIPIF--
<?php if (PHP_INT_SIZE != 8) die("skip this test is for 64-bit only");
--FILE--
<?php
/* Prototype : proto int strcspn(string str, string mask [, int start [, int len]])
Expand Down Expand Up @@ -193,4 +195,4 @@ int(0)

Warning: strcspn() expects parameter 4 to be long, resource given in %s on line %d
NULL
Done
Done
2 changes: 2 additions & 0 deletions ext/standard/tests/strings/stripos_variation14.phpt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
--TEST--
Test stripos() function : usage variations - unexpected inputs for 'offset' argument
--SKIPIF--
<?php if (PHP_INT_SIZE != 8) die("skip this test is for 64-bit only");
--FILE--
<?php
/* Prototype : int stripos ( string $haystack, string $needle [, int $offset] );
Expand Down
2 changes: 2 additions & 0 deletions ext/standard/tests/strings/stripos_variation15.phpt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
--TEST--
Test stripos() function : usage variations - unexpected inputs for 'haystack', 'needle' & 'offset' arguments
--SKIPIF--
<?php if (PHP_INT_SIZE != 8) die("skip this test is for 64-bit only");
--FILE--
<?php
/* Prototype : int stripos ( string $haystack, string $needle [, int $offset] );
Expand Down
2 changes: 2 additions & 0 deletions ext/standard/tests/strings/strncasecmp_variation5.phpt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
--TEST--
Test strncasecmp() function : usage variations - unexpected values for 'len'
--SKIPIF--
<?php if (PHP_INT_SIZE != 8) die("skip this test is for 64-bit only");
--FILE--
<?php
/* Prototype : int strncasecmp ( string $str1, string $str2, int $len );
Expand Down
2 changes: 2 additions & 0 deletions ext/standard/tests/strings/strncmp_variation5.phpt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
--TEST--
Test strncmp() function : usage variations - different lengths(all types)
--SKIPIF--
<?php if (PHP_INT_SIZE != 8) die("skip this test is for 64-bit only");
--FILE--
<?php
/* Prototype : int strncmp ( string $str1, string $str2, int $len );
Expand Down
3 changes: 2 additions & 1 deletion ext/tokenizer/tests/001.phpt
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
--TEST--
token_name()
--SKIPIF--
<?php if (!extension_loaded("tokenizer")) print "skip"; ?>
<?php if (PHP_INT_SIZE != 8) die("skip this test is for 64-bit only");
if (!extension_loaded("tokenizer")) print "skip"; ?>
--FILE--
<?php

Expand Down
2 changes: 1 addition & 1 deletion ext/xml/tests/xml_error_string_variation1.phpt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
--TEST--
Test xml_error_string() function : usage variations - test different types for code
--SKIPIF--
<?php
<?php if (PHP_INT_SIZE != 8) die("skip this test is for 64-bit only");
if (!extension_loaded("xml")) {
print "skip - XML extension not loaded";
}
Expand Down
2 changes: 1 addition & 1 deletion ext/xml/tests/xml_parser_get_option_variation2.phpt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
--TEST--
Test xml_parser_get_option() function : usage variations
--SKIPIF--
<?php
<?php if (PHP_INT_SIZE != 8) die("skip this test is for 64-bit only");
if (!extension_loaded("xml")) {
print "skip - XML extension not loaded";
}
Expand Down
1 change: 1 addition & 0 deletions ext/xml/tests/xml_parser_set_option_variation2.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Test xml_parser_set_option() function : usage variations
--SKIPIF--
<?php
if (PHP_INT_SIZE != 8) die("skip this test is for 64-bit only");
if (!extension_loaded("xml")) {
print "skip - XML extension not loaded";
}
Expand Down
4 changes: 3 additions & 1 deletion tests/output/ob_implicit_flush_variation_001.phpt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
--TEST--
Test ob_implicit_flush() function : usage variation
--SKIPIF--
<?php if (PHP_INT_SIZE != 8) die("skip this test is for 64-bit only");
--FILE--
<?php
/* Prototype : void ob_implicit_flush([int flag])
Expand Down Expand Up @@ -189,4 +191,4 @@ NULL
NULL

--unset var--
NULL
NULL