Commit Graph

5932 Commits

Author SHA1 Message Date
Josie Messa
fab35b7748 - New tests for array_slice() function 2008-02-14 11:13:56 +00:00
Dmitry Stogov
7412aae873 Fixed memory leak 2008-02-14 08:46:42 +00:00
Etienne Kneuss
7c89093243 Fix inconcistencies between substr and substr_compare 2008-02-13 16:59:56 +00:00
Josie Messa
e100d53bff - New tests for array_shift() function 2008-02-13 16:40:42 +00:00
Josie Messa
af9f6b3938 - New tests for array_push() function 2008-02-13 16:14:02 +00:00
Josie Messa
54731fea32 - committing tests for array_merge() function 2008-02-13 14:19:37 +00:00
Josie Messa
b12ed7908d - committig tests for array_key_exists() function 2008-02-13 13:12:06 +00:00
Josie Messa
3d0c36cc39 - committing array_change_key_case variation tests 2008-02-12 17:45:47 +00:00
Felipe Pena
fd18a414a0 MFB: array_slice() - Fixed behavior when NULL is given in third parameter (BC) 2008-02-12 01:49:42 +00:00
Stanislav Malyshev
846cb3d56e fix build 2008-02-12 01:30:58 +00:00
Felipe Pena
1573f8c01c New test 2008-02-12 01:21:29 +00:00
Stanislav Malyshev
1a368f6f8b MFB __DIR__ constant support 2008-02-12 01:04:08 +00:00
Ilia Alshanetsky
95cd0deab0 MFB:Fixed test on 64bit machines 2008-02-11 16:23:25 +00:00
Felipe Pena
025d27e2ab Fix test (missing result) 2008-02-11 15:57:34 +00:00
Felipe Pena
8b4f61cf00 Fix test (UEXPECTF) 2008-02-11 15:46:51 +00:00
Antony Dovgal
1d540b4255 this is integer, not pointer 2008-02-11 13:34:26 +00:00
Johannes Schlüter
6595b0dc5e The exact message differs on different systems 2008-02-10 23:36:27 +00:00
Felipe Pena
9d229c7f7c Fixed Bug #42229 (fgetcsv() behaves differently for a file containing '\n' with php5 and php6) 2008-02-10 04:09:12 +00:00
Felipe Pena
6420454991 New test 2008-02-10 03:55:39 +00:00
Felipe Pena
c1bdb769a0 Fixed Bug #42163 (fgetcsv() gives different output with and without Unicode) 2008-02-10 02:13:37 +00:00
Felipe Pena
a4363b1f7f Fixed bugs:
- #42036	fgetc() sets end of the file flag when reading on write only file
- #42037	fgetc() retuns one char when fails to read on php6
2008-02-09 19:46:49 +00:00
Felipe Pena
9619ec2317 New test for strtok 2008-02-09 18:12:45 +00:00
Dmitry Stogov
cce5140cf3 Improved md5() implementation (Solar Designer) 2008-02-08 09:11:28 +00:00
Felipe Pena
0a5d2b1ac7 Fix error message 2008-02-07 13:26:36 +00:00
Felipe Pena
8083c40376 Added UEXPECTF 2008-02-07 13:18:58 +00:00
Felipe Pena
6935680443 Added UEXPECTF 2008-02-07 13:06:50 +00:00
Felipe Pena
77864cdc8e Fixed some tests (UEXPECT) 2008-02-07 12:45:54 +00:00
Marcus Boerger
4ad89748c3 - Fix missing check and tests 2008-02-06 20:39:54 +00:00
Zoe Slattery
87a60ef453 Fixing 32 bit specific 2008-02-06 09:28:01 +00:00
Zoe Slattery
4da92843b9 Tests for assorted Maths functions 2008-02-06 08:39:23 +00:00
Felipe Pena
b50f869aac Fixed bug #42167 (fgetcsv gives different output on php6 compared to php5), #42219 (length argument of fgetcsv() is not effective/working in PHP6) 2008-02-06 02:56:49 +00:00
Marcus Boerger
ee507a2d05 - Add new test 2008-02-05 18:56:40 +00:00
Ilia Alshanetsky
4545b5bf25 MFB: Fixed bug #44046 (crash inside array_slice() function with an invalid
by-ref offset).
2008-02-05 16:02:23 +00:00
Robert Nicholson
8f6de4aada - fix arsort_variation3.phpt which was missing its EXPECT section 2008-02-05 11:20:28 +00:00
Jani Taskinen
71e3d357ef - Fixed bugs #43915, #43923 and #44019, a tiny performance issue fixed too 2008-02-04 20:45:16 +00:00
Felipe Pena
c866bc64cf Fix wrong test 2008-02-04 19:58:12 +00:00
Felipe Pena
9df576bed3 Fixed wrong fix 2008-02-04 19:48:14 +00:00
Felipe Pena
aa79b70645 Fixed Bug #42057 (fwrite() writes data into file when length is given as a negative value) 2008-02-04 18:45:40 +00:00
Felipe Pena
360fed57da Fix error messages 2008-02-04 17:21:01 +00:00
Felipe Pena
421295b52e Fix tests 2008-02-04 15:43:09 +00:00
Felipe Pena
ac99835507 Fix tests (new error message) 2008-02-04 15:22:08 +00:00
Felipe Pena
1348f95d20 Fix tests (new error message) 2008-02-04 13:08:27 +00:00
Felipe Pena
76dab1562f Fix tests (new error message) 2008-02-04 12:37:15 +00:00
Robert Nicholson
caea756765 - added some new tests for arsort 2008-02-04 00:06:54 +00:00
Ilia Alshanetsky
fb738d95bf MFB: Fixed bug #44028 (crash inside stream_socket_enable_crypto() when
enabling encryption without crypto type)
2008-02-03 16:14:44 +00:00
Marcus Boerger
925071ce41 - Rename it again
[DOC]
- Add config_get_hash()
2008-02-03 14:44:30 +00:00
Marcus Boerger
f2ce43983f - Rename dump_config_hash() to get_config_hash() as it doesn't dump 2008-02-03 14:35:29 +00:00
Marcus Boerger
0034d47f09 - Fix tests 2008-02-02 13:33:21 +00:00
Marcus Boerger
6840a7815d - Fix flag handling (MFB) 2008-02-02 13:11:12 +00:00
Antony Dovgal
de10394d60 fix test, add 64bit version 2008-02-01 23:18:53 +00:00
Zoe Slattery
bd8678289b A few new tests for math functions 2008-02-01 17:16:40 +00:00
Zoe Slattery
76022e67d8 Removing superfluous --INI-- section 2008-01-30 17:55:12 +00:00
Stanislav Malyshev
67c08a57dc no sleep here either 2008-01-29 22:03:44 +00:00
Dmitry Stogov
5d1e742056 Fixed bug #43505 (Assign by reference bug) 2008-01-29 10:45:19 +00:00
Robert Nicholson
566fa19dec - update compact_variation1.phpt to take into account fix for bug #29044 2008-01-29 08:49:11 +00:00
David Coallier
b837f8c8b3 - Good proto message and description of function 2008-01-29 01:44:38 +00:00
Antony Dovgal
251e3a649d fix #43596 (array_slice(): $length arg ignored when it is 0) 2008-01-29 00:39:26 +00:00
Antony Dovgal
bc9cba1a93 MFB: fix #43927 (koi8r is missing from html_entity_decode())
patch by andy at demos dot su
2008-01-28 23:08:07 +00:00
Nuno Lopes
875d3f15fd be more strict in the skipif 2008-01-27 16:54:02 +00:00
Nuno Lopes
85adde057e MFB: fix skipifs 2008-01-27 16:52:34 +00:00
Scott MacVicar
43c5d044d0 MFB: Fix html_entity_decode when converting numeric html entities, the numeric values for the extended character set don't correspond to that of windows-1251 and cp866. 2008-01-25 18:11:19 +00:00
Rob Richards
9f3efb0e5a fix zts build 2008-01-25 15:52:00 +00:00
Antony Dovgal
c98b4a5c68 endless loop (and stack overflow) protection in compact() 2008-01-25 13:42:24 +00:00
Robert Nicholson
4726a6f2bc - Add a basic test for array_shuffle() 2008-01-25 00:33:00 +00:00
Robert Nicholson
38c322d3db - add some basic tests for array diff and intersection functions 2008-01-25 00:17:34 +00:00
Robert Nicholson
0cf88073f0 - New tests for compact()
# compact_variation1.phpt will fail until bug #29044 is fixed
2008-01-24 14:50:18 +00:00
Antony Dovgal
346867aaf8 fix test 2008-01-23 11:38:31 +00:00
Antony Dovgal
f6169ad7ca fix #43559 (array_merge_recursive() doesn't behave as expected with duplicate NULL values)
patch by Felipe
2008-01-23 11:20:00 +00:00
Antony Dovgal
2b2e025690 new test by Lars Strojny 2008-01-22 15:42:12 +00:00
Antony Dovgal
596403f226 fix #42861 (strtr() crashes in Unicode mode when $from argument is empty) 2008-01-21 14:37:19 +00:00
David Coallier
f6267ce134 - Wrong icu call, now using u_strToLower correctly 2008-01-19 19:47:41 +00:00
David Coallier
7a66695286 - Added lcfirst() function. The sister function of ucfirst()
- Test #1 for lcfirst()
2008-01-19 19:23:25 +00:00
Ilia Alshanetsky
f5aae18ad3 MFB: Fixed bug #43871 (crash inside dns_get_record) 2008-01-17 14:12:36 +00:00
David Coallier
982f842577 - run-tests.php -U
- The unicode test's error messages are working
2008-01-16 13:27:01 +00:00
David Coallier
ea2c35ad82 - MFB
- Make sure to return the good error message with new parse parameters api
  of ucfirst()
2008-01-16 13:12:51 +00:00
Antony Dovgal
d5b7556d46 fix #43863 (str_word_count() breaks on cyrillic "ya" in locale cp1251)
patch by phprus at gmail dot com
2008-01-16 08:34:06 +00:00
David Coallier
bdd2668aef - Make sure ucfirst is using the new zend-parse-parameters api
- added php_ucfirst for non-unicode calls
2008-01-16 03:09:01 +00:00
Brian Shire
e643a40051 Fix bug #42850 array_walk_recursive() leaves references, refix bug #34982 2008-01-14 22:08:00 +00:00
Greg Beaver
e54eb5513e clarify error message on why opening a stream wrapper failed for allow_url_include/allow_url_fopen, add test for allow_url_fopen 2008-01-12 15:50:17 +00:00
Brian Shire
4ebc0325d8 - fix truncation of large values on 64-bit systems in http_build_query 2008-01-10 20:28:08 +00:00
Antony Dovgal
335728651f fix #43750 (stristr() modifies string)
patch by Felipe Pena
2008-01-10 14:31:11 +00:00
Dmitry Stogov
1d9894a0c5 Added missing warning message 2008-01-10 09:38:41 +00:00
Ilia Alshanetsky
55a14f57eb MFB: Fixed bug #43498 (file_exists() on a proftpd server got SIZE not
allowed in ASCII mode).
2008-01-08 19:09:12 +00:00
Raghubansh Kumar
acf19e9265 New testcases for array_diff_assoc() function 2008-01-04 13:59:44 +00:00
Raghubansh Kumar
9e3069cea5 New testcases for array_diff() function 2008-01-04 13:59:18 +00:00
Raghubansh Kumar
aa337c4bfc this testcase has been split into many smaller testcases and committed. 2008-01-03 09:38:43 +00:00
Raghubansh Kumar
7a038912b0 New smaller testcases for array_map() function 2008-01-03 09:35:11 +00:00
Sebastian Bergmann
9b620d50b4 Bump copyright year, 2 of 2. 2007-12-31 07:12:20 +00:00
Jani Taskinen
060d95bb9e - This makes no sense with non-ipv6 builds. (and fixes lot of issues with misconfigured servers) 2007-12-29 18:46:10 +00:00
Hannes Magnusson
cdaaa15ddf MFB5.2: Fix test 2007-12-29 11:39:06 +00:00
Antony Dovgal
6b31eb58c7 fix test 2007-12-29 10:32:39 +00:00
Dmitry Stogov
171c52087e Fixed 32/64-bit tests (Serg) 2007-12-27 11:23:30 +00:00
Raghubansh Kumar
74584f8521 fix test : do not run when run as root 2007-12-25 16:14:32 +00:00
Dmitry Stogov
0c75772f68 Additional fix for bug #42868 2007-12-24 18:10:20 +00:00
Raghubansh Kumar
11178281fc new testcases for dir() function 2007-12-24 05:07:47 +00:00
Raghubansh Kumar
b90cab7ec7 fix tests 2007-12-24 04:29:26 +00:00
Dmitry Stogov
306a73677e Fixed test 2007-12-21 09:42:07 +00:00
Raghubansh Kumar
1444624663 fix tests 2007-12-20 17:25:06 +00:00
Robert Nicholson
c142564b00 new tests for array_map usage variations - string keys and references 2007-12-20 11:18:08 +00:00
Raghubansh Kumar
c4061cce23 fix test 2007-12-19 10:37:42 +00:00
Derick Rethans
b5629cb468 - Fixed var_export() for array keys
- Fixed broken explode() test
2007-12-18 10:53:25 +00:00
Raghubansh Kumar
73c041ee8c fix tests 2007-12-17 13:00:52 +00:00
Dmitry Stogov
9c024a30a5 Fixed bug #42868 (Floats cast to integer droduce unpredicatable results). (Zoe Slattery) 2007-12-17 11:06:43 +00:00
Sara Golemon
74adb81f42 Add scoping braces for variable declaration 2007-12-17 05:16:40 +00:00
Antony Dovgal
8849402818 add workaround for glibc issue 2007-12-13 22:29:15 +00:00
Dmitry Stogov
96a21b31d6 Fixed test 2007-12-13 07:57:52 +00:00
Jani Taskinen
80518808e7 - Revert previous patch, it was correct to do this, error is logged if logging is enabled 2007-12-11 12:25:52 +00:00
Jani Taskinen
efc8a64eb3 - Fix error display (Stas: PG(display_errors) is handled by the php_error_docref() function :) 2007-12-11 11:28:43 +00:00
Raghubansh Kumar
65cf3fc3e1 New testcases for array_walk_recursive() function 2007-12-11 10:43:28 +00:00
Raghubansh Kumar
2e4deb0422 delete because there are two smaller testcases for this 2007-12-11 10:42:56 +00:00
Raghubansh Kumar
9193d93440 New testcases for array_walk() function 2007-12-11 10:40:23 +00:00
Raghubansh Kumar
c958bf2b10 New testcases for array_merge_recursive() function 2007-12-11 09:04:49 +00:00
Jani Taskinen
b6a2755df3 - Fixed bug #43541 (array_slice() length parameter messed up) 2007-12-11 08:30:46 +00:00
Ilia Alshanetsky
d963eaffcc MFB: Fixed bug #43522 (stream_get_line() eats additional characters) 2007-12-10 14:19:20 +00:00
Derick Rethans
5a14715596 - Fixed Bug #42272 (var_export() incorrectly escapes char(0)).
- Also fixed var_export() in unicode mode, as the function would actually
  generate non-parsable strings which defeats the purpose of var_export().
2007-12-09 16:54:30 +00:00
Raghubansh Kumar
775292518f new testcases for array_unique() function 2007-12-09 14:38:48 +00:00
Ilia Alshanetsky
2f39962f36 MFB: WS 2007-12-06 15:23:57 +00:00
Ilia Alshanetsky
40226917ab MFB: Fixed bug #43495 (array_merge_recursive() crashes with recursive
arrays)
2007-12-05 19:57:09 +00:00
Ilia Alshanetsky
678c532eee MFB: Fixed bug #43482 (array_pad() does not warn on very small pad
numbers).
2007-12-03 14:13:45 +00:00
Raghubansh Kumar
5b5211b0dc fix tests : better float values 2007-12-03 13:02:11 +00:00
Raghubansh Kumar
290076dffa fix tests: better float values 2007-12-03 12:04:26 +00:00
Raghubansh Kumar
00926c8535 New testcases for array_pad() function 2007-12-03 11:56:39 +00:00
Raghubansh Kumar
91ea43e411 New testcases for array_chunk() function 2007-12-03 03:52:06 +00:00
Derick Rethans
badfa1304d - Fixed a segfault when reading from an HTTP stream. 2007-11-29 12:27:49 +00:00
Ilia Alshanetsky
6d4f019433 MFB: Fixed tests 2007-11-28 14:50:03 +00:00
Raghubansh Kumar
c3e74e2d84 Marked with defect 2007-11-28 03:46:25 +00:00
Raghubansh Kumar
83cfd0ce0e New testcases for array_combine() function 2007-11-27 15:15:23 +00:00
Raghubansh Kumar
d08088df74 New testcases for array_sum() function 2007-11-27 14:57:55 +00:00
Ilia Alshanetsky
a204180d64 MFB : Fixed bug #43386 (array_globals not reset to 0 properly on init) 2007-11-25 15:56:58 +00:00
Derick Rethans
1e9fec2a49 - Fixed weights array, which was broken with:
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/dns.c?r1=1.80&r2=1.81
2007-11-22 10:18:30 +00:00
Jani Taskinen
d4664800ac - Added test for chown bug 2007-11-21 11:31:49 +00:00
Jani Taskinen
ba1e024895 - Fix crash when chown() 2nd parameter is something else than integer or string 2007-11-21 11:28:26 +00:00
Stanislav Malyshev
3c0869343f fix #42866, from Claudio Cherubino 2007-11-21 02:27:07 +00:00
Stanislav Malyshev
91701d34b0 test for 42866 2007-11-21 02:24:47 +00:00
Hannes Magnusson
1727c712b6 - Add support for optional values
- Add support for = as seperator
2007-11-20 22:42:47 +00:00
Johannes Schlüter
6e7ba5ba5f Add stream_supports_lock() function (Benjamin Schulz) 2007-11-20 22:16:20 +00:00
Dmitry Stogov
ab34cdc706 fixed SIGSEGV in chgrp() 2007-11-19 15:55:48 +00:00
Raghubansh Kumar
9c78f2c08b New testcases for sizeof() function 2007-11-16 17:52:26 +00:00
Raghubansh Kumar
7e84b55003 fix test for linux64 - choosing smaller float values 2007-11-16 17:35:38 +00:00
Raghubansh Kumar
87be9bfd14 fix tests: removed values that generate diff. output on Linux64 2007-11-16 17:11:01 +00:00
Antony Dovgal
c70b4662a5 fix test (thanks to Felipe Pena for noticing) 2007-11-15 22:14:04 +00:00
Hannes Magnusson
ebc540d2c9 - Allow numeric options
- Add tests
2007-11-15 13:11:48 +00:00
Raghubansh Kumar
185411fd0d New testcases for uasort() function 2007-11-14 17:21:09 +00:00
Derick Rethans
bf10f44aa2 - Add a testcase for chgrp() with a NULL as group name, which crashes ATM. 2007-11-14 15:51:35 +00:00
Hannes Magnusson
31aa5f545c MFB; Fix test 2007-11-14 15:22:45 +00:00
Hannes Magnusson
93850f2d70 MFB5.3: Fixed bug#43293 (Multiple segfaults in getopt()) 2007-11-14 14:55:44 +00:00
Dmitry Stogov
bc939dce43 Fixed bug #43248 (backward compatibility break in realpath()) 2007-11-13 09:47:19 +00:00
Raghubansh Kumar
d2ac4233b0 New testcases for ksort() function 2007-11-12 15:49:29 +00:00
Raghubansh Kumar
8ff0f5d766 new testcases for krsort() function 2007-11-12 15:44:47 +00:00
Jani Taskinen
ad9605a722 - Allow using full path to load modules using "extension" directive 2007-11-09 16:26:55 +00:00