Commit Graph

5420 Commits

Author SHA1 Message Date
Raghubansh Kumar
f31ae00184 New tests for file handling system functions 2007-06-11 16:40:27 +00:00
foobar
53b43a63cd - Added php_ini_loaded_file() function which returns the path to the actual
php.ini in use.
# there was only a function to return the _additional_ files in use..
2007-06-09 11:42:55 +00:00
Antony Dovgal
f1f0deae4c php_localtime_r() checks 2007-06-07 09:07:12 +00:00
Antony Dovgal
976a22df16 php_gmtime_r() fixes 2007-06-07 08:58:38 +00:00
Ilia Alshanetsky
60a7d31254 MFB: Added missing format validator to unpack() function 2007-06-06 22:04:47 +00:00
Antony Dovgal
6a67784d22 improve the check 2007-06-06 21:55:18 +00:00
Stanislav Malyshev
b7cf37c3e1 MF5: Fix chunk_split fix - avoid using floats
MF5: Fix money_format - don't give strfmon more arguments then supplied
MF5: Fix str[c]spn integer overflow
2007-06-06 20:06:43 +00:00
Stanislav Malyshev
f011c37849 fix test format 2007-06-06 17:47:15 +00:00
Stanislav Malyshev
56773a566a add some edge cases 2007-06-06 17:14:59 +00:00
Stanislav Malyshev
32d94ed6cd add moneyformat test 2007-06-06 17:13:18 +00:00
Zoe Slattery
a6ac3f8c20 New tests for file handling 2007-06-06 12:50:06 +00:00
Zoe Slattery
4f38742d2f fixed file permission for new empty file 2007-06-06 12:48:13 +00:00
Nuno Lopes
e7155d9ce5 fix gcov build.. 2007-06-06 12:29:06 +00:00
Ilia Alshanetsky
886cb0c783 MFB: Fixed bug #41600 (url rewriter tags doesn't work with namespaced tags). 2007-06-06 00:01:13 +00:00
Antony Dovgal
43a99cebe2 fix folding 2007-06-05 13:37:05 +00:00
Antony Dovgal
6eb6de0fcf fix folding 2007-06-05 12:17:15 +00:00
Zoe Slattery
ce111057a4 Fixing incorrect comment in test cases fileinode_variation and filetype_variation 2007-06-05 11:32:45 +00:00
Zoe Slattery
484e14354e new test cases for general functions 2007-06-05 09:21:54 +00:00
Zoe Slattery
bdc7acb0d4 New test cases for file system functions 2007-06-05 09:20:17 +00:00
Zoe Slattery
c7590816d5 Updated test output in line with changes to file.inc 2007-06-05 07:57:48 +00:00
Zoe Slattery
bcb5c46495 Added fill_buffer() and fixed file_fill() to write binary data only 2007-06-05 07:54:58 +00:00
Antony Dovgal
b90fc7e0e4 clean up temp file 2007-06-04 17:18:28 +00:00
Zoe Slattery
3ee8de4afb missing ?> in skipif section 2007-06-04 17:00:44 +00:00
Brian Shire
5361f1838b MFB: fix sprintf/printf %u tests so they work correctly on both 32-bit and 64-bit. (broken in previous fix) 2007-06-04 01:23:22 +00:00
Ilia Alshanetsky
9cfd000ba3 MFB: Corrected fix for CVE-2007-2872 2007-06-03 18:53:51 +00:00
Brian Shire
35a6ab5a2c Change printf %u behavior so that it does not truncate numbers at 32-bits. (Reported by Aditya Agarwal.) 2007-06-03 09:11:52 +00:00
Antony Dovgal
cd7750e4ba fix #41518 (file_exists() warns of open_basedir restriction on non-existent file) 2007-06-01 13:33:48 +00:00
Antony Dovgal
06e3561985 fix folding 2007-05-31 21:36:56 +00:00
Antony Dovgal
f90bb0e967 check length only when it's specified
add the same check to fgetss()
2007-05-30 09:16:29 +00:00
Ilia Alshanetsky
8cd0541be1 MFB: Fixed an interger overflow inside chunk_split(), identified by
Gerhard Wagner
2007-05-30 00:38:00 +00:00
Antony Dovgal
79dc35b71c more typofixes 2007-05-29 21:24:45 +00:00
Ilia Alshanetsky
e844eaedbb MFB 2007-05-29 21:06:04 +00:00
Antony Dovgal
7b5215d83a fix #41516 (fgets() returns a line of text when length parameter is <= 0) 2007-05-29 20:48:38 +00:00
Antony Dovgal
859b4e8d2f fix typo & build 2007-05-29 20:31:22 +00:00
Ilia Alshanetsky
16c9af1c7d MFB 2007-05-29 20:11:23 +00:00
Antony Dovgal
fb2ebbf23e fix tests, add 64bit versions 2007-05-29 12:42:19 +00:00
Antony Dovgal
28747bebc9 fix tests 2007-05-29 12:26:59 +00:00
Antony Dovgal
deba560f57 fix test 2007-05-29 12:17:37 +00:00
Antony Dovgal
857834365b fix tests in unicode mode 2007-05-29 12:10:20 +00:00
Antony Dovgal
f243356f5e fix tests 2007-05-29 10:25:21 +00:00
Antony Dovgal
572d70706c fix typo 2007-05-29 08:01:23 +00:00
Ilia Alshanetsky
373ae24839 MFB 2007-05-28 23:52:13 +00:00
Ilia Alshanetsky
de573ba7ff MFB 2007-05-28 23:14:57 +00:00
Ilia Alshanetsky
66526cee92 MFB 2007-05-28 23:00:25 +00:00
Hannes Magnusson
63052d2a85 Remove weird useless entries 2007-05-28 12:18:26 +00:00
Zoe Slattery
863ee40af2 New tests for file/general_functions/strings 2007-05-25 13:50:06 +00:00
foobar
3bec20159c MFB 2007-05-24 21:43:56 +00:00
Rasmus Lerdorf
8b1466fdbe MFB 5_2 2007-05-24 21:31:35 +00:00
Rasmus Lerdorf
5f5563da38 MFB 5_2 2007-05-24 20:56:20 +00:00
Antony Dovgal
6af0020d9c fix test 2007-05-22 16:57:18 +00:00
Antony Dovgal
60afeec652 fix tests 2007-05-22 16:56:47 +00:00
Raghubansh Kumar
b609c75148 New version of gettype_settype_basic.phpt, gettype_settype_variation3.phpt, gettype_settype_variation7.phpt, gettype_settype_error.phpt, gettype_settype_variation4.phpt, gettype_settype_variation8.phpt, gettype_settype_variation1.phpt, gettype_settype_variation5.phpt, gettype_settype_variation2.phpt, gettype_settype_variation6.phpt 2007-05-22 16:06:44 +00:00
Raghubansh Kumar
6d36305465 New version of basename_basic.phpt basename_error.phpt basename_variation.phpt 2007-05-22 16:03:57 +00:00
Hannes Magnusson
d4324a5e4b Philip, the new phpdoc editor \o/ 2007-05-22 15:46:27 +00:00
Antony Dovgal
f996452e8b improve variable name checks
add more tests
2007-05-22 14:32:40 +00:00
Antony Dovgal
5b56ff03b4 fix leak and check for < 0 only of the 5th arg was passed 2007-05-18 20:34:07 +00:00
Antony Dovgal
451d4858b3 fix #41432 (extract() does not accept empty prefix) 2007-05-18 14:11:12 +00:00
Rasmus Lerdorf
5e84cb97a0 MFB syscall optimizations
# boredom on the plane to China...
2007-05-18 12:15:01 +00:00
Antony Dovgal
eb2240d494 fix #41430 (Fatal error with negative values of maxlen parameter of file_get_contents()) 2007-05-18 12:05:55 +00:00
Antony Dovgal
9c99b709a7 zend_make_printable_zval -> zend_make_string_zval 2007-05-17 17:29:09 +00:00
Zoe Slattery
36de378220 Updated range() test 2007-05-16 21:10:57 +00:00
Antony Dovgal
326ee7c499 fix test 2007-05-15 14:25:50 +00:00
Scott MacVicar
ecab534aa8 MFB: Fixed bug #41347 (checkdnsrr() segfaults on empty hostname). 2007-05-14 14:38:29 +00:00
Antony Dovgal
5955f884b9 fix tests, add UEXPECTF 2007-05-14 13:05:29 +00:00
Raghubansh Kumar
1e657336cf New version of debug_zval_dump_b.phpt, debug_zval_dump_v.phpt, is_float.phpt, is_numeric.phpt, is_string.phpt, var_dump.phpt, debug_zval_dump_e.phpt, is_array.phpt, is_int.phpt, is_object.phpt, print_r.phpt,
debug_zval_dump_o.phpt, is_bool.phpt, is_null.phpt, is_scalar.phpt, strval.phpt
2007-05-12 12:18:13 +00:00
Raghubansh Kumar
8be498b45e New version of addcslashes.phpt, implode1.phpt, strpos.phpt, str_replace.phpt, substr_count.phpt, trim1.phpt, chr_ord.phpt, md5_file.phpt, str_repeat.phpt, strstr.phpt, substr.phpt 2007-05-12 12:12:26 +00:00
Raghubansh Kumar
c7cec34d11 New version of 005.phpt, array_keys.phpt, array_values.phpt, extract.phpt, 009.phpt, array_map.phpt, each.phpt, array_change_key_case.phpt, array_pop.phpt, end.phpt, array_key_exists.phpt, array_search.phpt, extract.php 2007-05-12 11:20:52 +00:00
Antony Dovgal
483c3034bc fix segfault in strripos() when offset == INT_MAX+1
identified and repoted by Joxean Koret
2007-05-10 22:08:35 +00:00
Antony Dovgal
764b33ef79 flush output buffer when/if highlight_string()/php_strip_whitespace()/highlight_string() fail 2007-05-10 16:27:16 +00:00
Antony Dovgal
3d980a73cf cleanup temp test data 2007-05-10 12:22:49 +00:00
Antony Dovgal
806ebfb3f5 fix segfault in iptcembed() 2007-05-10 12:21:42 +00:00
Antony Dovgal
2d087e6deb fix tests 2007-05-07 22:33:39 +00:00
Antony Dovgal
57a1dc0757 fix test 2007-05-07 21:38:35 +00:00
Antony Dovgal
ccd97f3a21 fix test names 2007-05-07 17:23:53 +00:00
Antony Dovgal
8d9be0338b fix test names 2007-05-07 16:50:40 +00:00
Hannes Magnusson
be57963e00 Fix test
# pcre is required for the test suite so no need to check for it
# reflection can however be disabled
2007-05-06 13:11:11 +00:00
Dmitry Stogov
b890450e84 Fixed test 2007-05-02 07:27:52 +00:00
Antony Dovgal
419c5b3db1 fix tests
add test for yet not merged fix
2007-04-26 23:42:36 +00:00
Antony Dovgal
47d3276cd7 removed unused highlight.bg ini option 2007-04-26 09:39:03 +00:00
Hannes Magnusson
2d1f188193 Plug leak 2007-04-23 16:32:37 +00:00
Dmitry Stogov
6db3e71316 64-bit support 2007-04-23 10:21:43 +00:00
Antony Dovgal
b9e9832a85 fix tests 2007-04-22 19:47:08 +00:00
Antony Dovgal
2f9871787e fix [l]trim() in unicode mode 2007-04-22 19:22:19 +00:00
Johannes Schlüter
968608f8db - Fix test 2007-04-21 02:46:29 +00:00
Antony Dovgal
a09d5573f7 fix tests 2007-04-20 21:37:31 +00:00
Antony Dovgal
714e348b9f open the file in text mode and avoid downcoding 2007-04-20 21:17:37 +00:00
Antony Dovgal
65e565a08e fix tests 2007-04-20 21:13:45 +00:00
Andrey Hristov
91d8e64e11 Update credits line 2007-04-19 09:47:48 +00:00
Dmitry Stogov
fbccef91d7 Fixed tests (win32) 2007-04-18 14:51:47 +00:00
Rob Richards
c88e2b7618 MFB: add file locking under windows
change win build to use common clock compat files
2007-04-18 09:48:07 +00:00
Antony Dovgal
cea78baddf fix putenv("var") (i.e. unset) on BSD systems
add test
2007-04-17 20:33:45 +00:00
Zoe Slattery
33c9394112 Updated testcase ltrim() 2007-04-17 11:55:39 +00:00
Antony Dovgal
51058019f6 MFB use strlcat()
fix buffer overrun & bug #41101
2007-04-16 12:49:07 +00:00
Dmitry Stogov
2908322c14 WIN64 support 2007-04-16 09:43:53 +00:00
Antony Dovgal
18b3919675 fix test 2007-04-16 08:14:27 +00:00
Brian Shire
be3064577d MFB: reverting incorrect changes to pack test
# only a problem on darwin, latest gcc-4.2 branch works as expected.
2007-04-13 02:15:12 +00:00
Antony Dovgal
63d2c1f093 return success only if succeeded casting at least one stream to fd 2007-04-12 13:15:17 +00:00
Zoe Slattery
904042bb83 new tests: array_merge, array_push, fprintf. modified tests: count_recursive, md5. 2007-04-11 11:44:37 +00:00
Antony Dovgal
5c2b931d6f skip this test on MacOS 2007-04-10 21:20:33 +00:00
Antony Dovgal
8667be3e5d fix #41037 (unregister_tick_function() inside the tick function crash PHP) 2007-04-10 09:36:10 +00:00
Dmitry Stogov
8610b4f6cf Fixed 64-bit support 2007-04-09 15:39:16 +00:00
Antony Dovgal
c711d41f1f fix test 2007-04-06 19:35:06 +00:00
Brian Shire
c1104b0262 MFB: correction for previous fix to bug #38770 (pack/unpack is broken on 64bit)
fix pack test, correct space to tabs
2007-04-03 19:50:43 +00:00
Stanislav Malyshev
7ef06296b3 fix for #33664 Console window appears when using exec() 2007-04-02 20:48:53 +00:00
foobar
7da784c5f7 MFB- 64bit test 2007-04-02 15:12:55 +00:00
foobar
573028aff2 MFB:- Make this 32bit only test. (will add 64bit version next) 2007-04-02 15:02:22 +00:00
foobar
0ac6bb9f16 MFB52:- Changed phpinfo() to make difference between set php.ini path and what was actually loaded. 2007-04-02 12:42:18 +00:00
Zoe Slattery
dfaf949f2f New tests for ltrim, rtrim, str_pad 2007-03-28 10:31:13 +00:00
Antony Dovgal
b3352b6a04 drop deprecated funcs and change error level to E_WARNING 2007-03-28 10:22:33 +00:00
Zoe Slattery
61ccbdee7e New ucfirst() test. 2007-03-28 09:54:31 +00:00
Zoe Slattery
f9596816cc new test for printf 2007-03-28 09:41:55 +00:00
Antony Dovgal
c178da987c fix compile warning 2007-03-27 09:28:49 +00:00
Antony Dovgal
c9b1ff5080 fix #40915 (addcslashes unexpected behavior with binary input) 2007-03-26 10:23:50 +00:00
Stanislav Malyshev
638a8c9e07 MFB: fix MOPB-29 - unserialize modifier S does not calculate length correctly 2007-03-23 20:34:11 +00:00
Wez Furlong
edf3fe4731 MFB, #40848 2007-03-18 20:23:51 +00:00
Zoe Slattery
cc3795cd6f Fixing %i - > %d, previously changed in error 2007-03-16 23:18:01 +00:00
Stanislav Malyshev
023531f76c Fix UMR in array_user_key_compare() (MOPB24 by Stefan Esser) 2007-03-16 20:16:05 +00:00
Zoe Slattery
6503645079 Changed %d to %i in EXPECTF 2007-03-16 13:35:47 +00:00
Zoe Slattery
7f5832323c new test cases for string functions 2007-03-16 12:55:38 +00:00
Antony Dovgal
cdce6779ca fix folding and add missing footer 2007-03-12 20:55:07 +00:00
Antony Dovgal
ebb2fc5b1b fix #40752 (parse_ini_file() segfaults when a scalar setting is redeclared as an array) 2007-03-08 00:43:06 +00:00
Zoe Slattery
16507b73cd New test case for array_slice 2007-03-07 13:22:26 +00:00
Antony Dovgal
702c31844b fix tests 2007-03-06 20:53:11 +00:00
Antony Dovgal
d5a9eab2e7 fix tests 2007-03-06 20:45:15 +00:00
Antony Dovgal
05dd85e7c9 be consistent with non-unicode implementation 2007-03-06 20:35:49 +00:00
Antony Dovgal
fdae6875ea fix segfault in import_request_variables() and its test
I'm not completely sure it's correct to import numeric vars like _POST["1"] etc.
2007-03-06 19:59:13 +00:00
Antony Dovgal
733b197105 initialize variable 2007-03-06 19:45:02 +00:00
Marcus Boerger
01220f548f - Add glob stream wrapper 2007-03-03 20:41:12 +00:00
Marcus Boerger
2b5f0d87b7 - Fix realpath() logic 2007-03-03 19:07:51 +00:00
Nuno Lopes
65f3544a3c MFB 2007-03-02 18:54:41 +00:00
Antony Dovgal
60639069c5 simplify disk_*_space() functions sources by moving ifdef'ed implementations into separate functions 2007-02-26 20:35:41 +00:00
Antony Dovgal
67dda0e7d6 fix folding 2007-02-26 14:11:14 +00:00
Antony Dovgal
6a8829137e new test 2007-02-26 09:57:54 +00:00
Marcus Boerger
20a40063c5 - avoid sprintf 2007-02-24 16:25:58 +00:00
Antony Dovgal
72c8da0695 fix #40606 (umask is not being restored when request is finished) 2007-02-23 16:21:31 +00:00
Nuno Lopes
c0c9d8b164 MFB 2007-02-22 11:49:23 +00:00
Dmitry Stogov
cc39e75ac7 Fixed possible crash in putenv() on win32 2007-02-22 08:23:44 +00:00
Antony Dovgal
2edcbcbbd5 minor improvements 2007-02-21 22:08:00 +00:00
Antony Dovgal
c4b38c3af0 fix test on FreeBSD 2007-02-21 19:57:08 +00:00
Nuno Lopes
48f1b8cc77 MFB 2007-02-21 16:27:12 +00:00
Marcus Boerger
e490ccf47d - MFH Fixed bug #40465 (Ensure that all PHP elements are printed by var_dump) 2007-02-19 17:28:11 +00:00
Marcus Boerger
260443cdfe - WS/CS 2007-02-19 16:20:43 +00:00
Dmitry Stogov
54f2863991 Optimize out RINIT() 2007-02-16 16:33:37 +00:00
Dmitry Stogov
adec1ae327 Fixed return value of assert_options(ASSERT_CALLBACK) and possible crash (Andy Wharmby) 2007-02-16 13:12:55 +00:00
Nuno Lopes
d5ec5c9807 fix a few tests in unicode mode 2007-02-14 19:29:33 +00:00
Nuno Lopes
9bb808dc35 MFB 2007-02-14 19:20:15 +00:00
Nuno Lopes
5615e79140 MFB 2007-02-13 19:56:42 +00:00
Antony Dovgal
c212923e29 new/improved tests 2007-02-13 13:01:18 +00:00
Antony Dovgal
f6987cb6bc plug possible leak 2007-02-13 12:56:10 +00:00
Antony Dovgal
e89a9df1d4 fix bug #40109 (iptcembed fails on non-jfif jpegs)
+ use safe_emalloc
2007-02-12 20:27:48 +00:00