Commit Graph

304 Commits

Author SHA1 Message Date
Hannes Magnusson
0aae13f9d2 MFH: Allow numeric options & tests 2007-11-15 13:13:21 +00:00
Hannes Magnusson
c692127ff2 Fix test (getopt() works on windows now) 2007-11-14 15:22:11 +00:00
Hannes Magnusson
35ba8020cd Fixed bug#43293 (Multiple segfaults in getopt()) 2007-11-14 14:42:25 +00:00
Jani Taskinen
b3a334eaf2 Fix tests (MFH) 2007-11-05 17:43:21 +00:00
Jani Taskinen
c2cfed1b32 - Add missing tests from HEAD 2007-11-02 19:42:51 +00:00
Jani Taskinen
a541bb8078 - Fix tests
- Update README.PARAMETER_PARSING_API
2007-11-02 19:41:12 +00:00
Johannes Schlüter
5f15b1ef7a - Fix test 2007-10-01 15:01:47 +00:00
Jani Taskinen
2bc631fb40 MFH:- Added common getopt implementation to core.
MFH:- Added long-option feature to getopt().
MFH:- Made getopt() available on win32 systems.
MFH:  Patch by: David Soria Parra <dsp@php.net>
[DOC]: These changes will be available from 5.3+

# Note: Fixed also tests and synced basic_functions.c with HEAD.
2007-10-01 12:40:54 +00:00
Antony Dovgal
cd5b16015e fix test 2007-09-30 14:40:06 +00:00
Jani Taskinen
09b6f37f20 MFH:
- Added ".htaccess" style user-defined php.ini files support for
  CGI/FastCGI.
- Added support for special [PATH=/opt/httpd/www.example.com/] sections
  in php.ini. All directives set in these sections will not be able to be
  overridden in user-defined ini-files or during runtime in the specified
  path.

- Improved php.ini handling:
  . Added better error reporting for syntax errors in php.ini files
  . Allowed "ini-variables" to be used almost everywhere ini php.ini files
  . Allowed using alphanumeric/variable indexes in "array" ini options
  . Fixed get_cfg_var() to be able to return "array" ini options

- Fixed bug #27372 (parse error loading browscap.ini at apache startup)
- Fixed bug #42069 (parse_ini_file() allows using some non-alpha numeric
  characters)
2007-09-28 02:05:10 +00:00
Stanislav Malyshev
cfd8f6d775 add test for dl() with long name 2007-09-20 18:44:24 +00:00
Zoe Slattery
619b218e9a Changing to use %a to match recent run-tests.php patch 2007-09-14 16:28:54 +00:00
Nuno Lopes
40085b06f2 changes to run-tests.php:
- change %s to %a
- make %s = [^\r\n]+
- fix tests accordingly
2007-09-14 15:28:03 +00:00
Nuno Lopes
b121ffae92 fix expected output 2007-09-14 15:04:19 +00:00
Raghubansh Kumar
b33ea59337 fix test 2007-09-11 05:21:40 +00:00
Raghubansh Kumar
3b32190c91 fix test, do not run on macos 2007-08-29 04:38:09 +00:00
Dmitry Stogov
af0e8612af Fixed test 2007-07-24 20:08:33 +00:00
Antony Dovgal
9069dde1a4 fix test 2007-07-12 09:26:42 +00:00
Antony Dovgal
ce22f44493 MFH: fix #41445 (parse_ini_file() has a problem with certain types of integer as sections) 2007-06-26 12:10:08 +00:00
Derick Rethans
3b481cef64 - MFH: Added the H modifier to create non-locale-aware non-fixed-precision
float representations.
- MFH: Fixed var_export() to use the new H modifier so that it can generate
  parsable PHP code for floats again, independent of the locale.
2007-06-19 12:20:50 +00:00
Zoe Slattery
22c68a8155 new test cases for general functions 2007-06-05 09:12:34 +00:00
Antony Dovgal
31ce08253c MFH 2007-06-04 17:18:51 +00:00
Antony Dovgal
8e3eee385e MFH: fix #41518 (file_exists() warns of open_basedir restriction on non-existent file) 2007-06-01 13:35:23 +00:00
Antony Dovgal
f7ec7197f7 fix tests 2007-05-29 10:25:33 +00:00
Antony Dovgal
060589090d fix test 2007-05-27 14:30:06 +00:00
Zoe Slattery
eb0f324f70 New testcaes for file/strings/general_functions 2007-05-25 13:44:23 +00:00
Antony Dovgal
9a37c5588c fix tests 2007-05-22 16:58:33 +00:00
Antony Dovgal
d14d148f66 fix test 2007-05-22 16:52:58 +00:00
Raghubansh Kumar
17a6ac36da New version of gettype_settype_variation1.phpt gettype_settype_variation6.phpt
gettype_settype_variation2.phpt  gettype_settype_variation7.phpt      gettype_settype_variation3.phpt  gettype_settype_variation8.phpt
gettype_settype_basic.phpt  gettype_settype_variation4.phpt
gettype_settype_error.phpt  gettype_settype_variation5.phpt
2007-05-22 16:01:59 +00:00
Antony Dovgal
a69e6e2c79 MFH: improve variable name checks
add more tests
2007-05-22 14:34:23 +00:00
Antony Dovgal
e72d044f9f fix tests 2007-05-15 14:25:21 +00:00
Antony Dovgal
9100e9efde add 64bit tests 2007-05-14 11:04:30 +00:00
Antony Dovgal
83df9beca2 fix precision 2007-05-14 11:04:08 +00:00
Antony Dovgal
b33de5d0aa fix tests - make them 32bit only, 64bit version will be later
add --INI-- section
remove recursive arrays, that thing should be in a separate test
2007-05-14 10:57:04 +00:00
Raghubansh Kumar
c5c162d182 New version of debug_zval_dump_b.phpt, is_array.phpt, is_null.phpt, is_string.phpt, debug_zval_dump_e.phpt, is_bool.phpt, is_numeric.phpt, print_r.phpt, debug_zval_dump_o.phpt, is_float.phpt is_object.phpt, strval.phpt,
debug_zval_dump_v.phpt, is_int.phpt, is_scalar.phpt, var_dump.phpt
2007-05-12 10:28:00 +00:00
Antony Dovgal
1f65545121 fix test names 2007-05-07 18:03:01 +00:00
Hannes Magnusson
1d2c53b249 Fix test 2007-05-06 13:11:31 +00:00
Antony Dovgal
16129b7024 MFH: fix putenv("var") (i.e. unset) on BSD systems
add test
2007-04-17 20:34:14 +00:00
Antony Dovgal
e83f375c2f fix test 2007-04-16 08:14:33 +00:00
Antony Dovgal
903155d504 fix test name 2007-04-10 21:16:56 +00:00
Antony Dovgal
562f886ecb MFH: fix #41037 (unregister_tick_function() inside the tick function crash PHP) 2007-04-10 09:37:09 +00:00
Antony Dovgal
af1843f866 MFH: fix #40752 (parse_ini_file() segfaults when a scalar setting is redeclared as an array) 2007-03-08 00:44:23 +00:00
Nuno Lopes
d94e388d74 fix test on ultra-fast-machines and/or SOs with long time slices
# Thanks Tony
2007-02-22 11:48:14 +00:00
Nuno Lopes
4f3150c350 use /usr/bin/nohup instead 2007-02-21 16:25:37 +00:00
Nuno Lopes
d446564786 Fixed bug #39322 (proc_terminate() destroys process resource) 2007-02-14 19:13:31 +00:00
Nuno Lopes
9cc85b6030 Fixed bug #34794 (proc_close() hangs when used with two processes) 2007-02-13 19:53:42 +00:00
Antony Dovgal
29a9ba9639 new/improved tests 2007-02-13 12:59:53 +00:00
Marcus Boerger
3bd74e422a - MFH Add new test 2007-02-08 08:44:51 +00:00
Antony Dovgal
c52bc49f50 fix test 2006-12-25 14:27:51 +00:00
Antony Dovgal
9ce985bbae cosmetic improvements 2006-12-05 23:03:19 +00:00
Nuno Lopes
e8384cbcca more tests 2006-11-24 20:18:54 +00:00
Antony Dovgal
cf04587553 fix tests 2006-11-16 13:49:20 +00:00
Antony Dovgal
36d66521c9 add new tests 2006-11-16 13:01:23 +00:00
Antony Dovgal
9d6f7755b8 fix leak appearing when converting object to NULL
add test
2006-11-15 17:29:08 +00:00
Antony Dovgal
84ff4aaf1a add new tests 2006-11-15 17:27:03 +00:00
Antony Dovgal
04da058284 MFH: fix leak when call to shutdown function fails 2006-09-15 09:12:17 +00:00
Antony Dovgal
44005b7986 fix test 2006-06-20 13:14:29 +00:00
Antony Dovgal
ac1ec7914c fix typo 2006-01-16 20:40:41 +00:00
Marcus Boerger
add3c79a23 - Fixed bug #36011 2006-01-14 15:22:40 +00:00
Ilia Alshanetsky
f079ef83ab Fixed test. 2006-01-10 03:18:37 +00:00
Derick Rethans
88268c6bcc - MFH: Fixed bug #35887 (wddx_deserialize not parsing dateTime fields properly).
- MFH: Fixed bug #35885 (strtotime("NOW") no longer works).
- MFH: Fixed bug #33789 (Many Problems with SunFuncs).
- MFH: Fixed bug #33671 (sun_rise and sun_set don't return a GMT timestamp if one
  passes an offset).
- MFH: Fixed bug #32820 (date_sunrise and date_sunset don't handle GMT offset
  well).
- MFH: Fixed bug #30937 (date_sunrise() & date_sunset() don't handle endless
  day/night at high latitudes).
2006-01-04 21:31:35 +00:00
Antony Dovgal
537900c8e8 add new test for recently fixed bug 2005-12-26 15:05:38 +00:00
Marcus Boerger
10f77a5d71 - Add/fix tests 2005-12-16 22:19:02 +00:00
Dmitry Stogov
8bd18e174b Fixed bug #35229 (call_user_func() crashes when arguement_stack is nearly full) 2005-11-16 09:31:21 +00:00
foobar
e6a70fd0d3 Added test for bug #32647 2005-04-21 14:17:52 +00:00
foobar
714080f10f bug => Bug 2005-04-21 14:04:12 +00:00
Ilia Alshanetsky
cd0435b15a Fixed test. 2005-02-13 19:23:53 +00:00
Dmitry Stogov
ea6ea21939 Fixed bug #31190 (exceptions in call_user_func_array()) 2005-01-18 10:38:04 +00:00
Andrey Hristov
bc69bdb01a fixing the name of the test 2004-07-11 18:19:43 +00:00
Andrey Hristov
7af08c0c34 fixing bug 29038:
EXTR_PREFIX_SAME is prevented from creating a new variable when the key
is a empty string. EXTR_PREFIX_ALL is also prevented from doing that,
but works for numbers.
2004-07-11 18:18:05 +00:00
Marcus Boerger
29cfd6d24f - Remove unused blocks 2004-05-19 08:56:50 +00:00
Derick Rethans
88c17817a9 - Fixed bug #27822 (is_resource() returns TRUE for closed resources) 2004-04-01 08:54:44 +00:00
Ard Biesheuvel
04d178f79c Prevent test from failing on least significant digit 2004-03-30 12:36:44 +00:00
Derick Rethans
f954677e54 - Fix tests after change to highlight_string() 2004-02-25 22:55:47 +00:00
Marcus Boerger
a84f8156ff Bugfix #25038 (call_user_func issues warning if function throws exception) 2003-12-27 21:10:34 +00:00
Ilia Alshanetsky
99dec6927c Fixed bug #26463 (Incorrect handling of semicolons after heredoc) 2003-11-29 19:05:14 +00:00
Sterling Hughes
f6d84a10ea set precision properly.. test passes here 2003-06-30 20:03:17 +00:00
Sterling Hughes
223584a138 this is the correct result 2003-06-30 19:50:18 +00:00
Rasmus Lerdorf
832ffd1970 Fix 3 tests that didn't adequately specify the .ini settings they rely on 2003-06-30 18:22:53 +00:00
Ilia Alshanetsky
9e53c34ad3 Fixed test failure on systems with short_tags (<?) off. 2003-06-28 17:36:46 +00:00
foobar
6b7a822cec Assuming the results were created in system with Asia/Jerusalem as TZ 2003-02-17 05:51:03 +00:00
foobar
1c89652590 override precision ini setting 2003-02-17 05:02:05 +00:00
Moshe Doron
ea8d11cc87 @ new idate() function.
@ new date_sunrise() function.
@ new date_sunset() function.
#since i have no premission updating the win32 project file, i'm sending patch on the list.
2003-02-16 22:28:01 +00:00
Kai Schroeder
390799592d newlines changed 2003-02-09 13:25:23 +00:00
Kai Schroeder
f93b09b2db getopt() is currently not available on Windows 2003-02-09 13:23:50 +00:00
Derick Rethans
a50e9acd8e - Skip test if the function to test is not available
#- Perhaps we need some infrastructure for this...
2003-01-18 13:53:25 +00:00
Wez Furlong
a3a2dcd8a9 Relieve scripts of the burden of ensuring that all pipes are closed prior
to calling proc_close().
Implement proc_get_status(resource $process) which returns an array of
information about a process created with proc_open().
The information includes:
array(
	"command" => string "name of the command",
	"pid" => long process identifier,
	"running" => bool true if the process is still running
	"exitcode" => long exitcode if the process exited
	"signaled" => bool true if the process was signaled
	"termsig" => long signal number if signaled
	"stopped" => bool true if the process is stopped
	"stopsig" => long signal number if stopped
);
2003-01-15 18:54:03 +00:00
Ilia Alshanetsky
c194d9333d Added getopt() test. 2002-12-11 17:38:28 +00:00
Stefan Esser
63a50e500d Adding SHA1 tests. 2002-11-19 23:25:57 +00:00
Marcus Boerger
2442adabe5 Force float for the float test 2002-11-16 23:45:58 +00:00
Ilia Alshanetsky
04db537d97 Added tests for %e & %E 2002-10-15 12:08:02 +00:00
Ilia Alshanetsky
fed3b964ea Added float printing tests. 2002-10-14 16:31:56 +00:00
Marcus Boerger
be1e23cbc9 Add var_dump float format test 2002-08-21 01:27:56 +00:00
Marcus Boerger
534a63b5af Add combined base64 and md5 test 2002-08-21 01:26:21 +00:00
James E. Flemer
9eb1213206 Close pipes to avoid deadlock.
Submitted By: Melvyn Sopacua <msopacua@idg.nl>
2002-08-03 14:54:30 +00:00
Wez Furlong
e202ad5c8b Add simple test case for proc_open 2002-05-23 10:46:06 +00:00
Hartmut Holzgraefe
954dbb2d35 fix and regression test for Bug #16473 2002-04-07 19:46:45 +00:00
Kirill Maximov
33ed30fce8 (PHP quoted_printable_decode) Fixed CR/LF processing for Windows/OS2
@ Fixed CR/LF processing for Windows/OS2 in quoted_printable_decode (kir)
2002-04-01 17:03:01 +00:00
Derick Rethans
39225a22b8 - Fix tests to work with CLI
#- Not totally done, but this makes it a lot better
2002-03-05 09:00:56 +00:00
Zak Greant
bbf41d2116 Adding test for is_scalar(). 2000-12-18 21:24:25 +00:00
Hartmut Holzgraefe
9b1b253548 fgetcsv() will now work correct with empty fields in tab delimited files
# fix for bug #8258 and regression test
2000-12-14 14:18:36 +00:00
Hartmut Holzgraefe
63e6b0b5bf levenshtein() fixed, regression tests added (bug id #6562 and #7368)
# fallback to unoptimized version for 4.0.4 release
2000-12-13 23:26:19 +00:00
Kirill Maximov
023a95ae1c @ quoted_printable_decode() function is made RFC-2045 compliant. (Kir)
This hopefully closes bugs #5321, #7138, #7855.
  Test script for the function is added.
2000-11-17 10:55:37 +00:00
Stig Bakken
315f4f5658 @PHP 3 regression testing framework re-born (Stig)
Took the old PHP 3 regression testing framework and rewrote it in PHP.
Should work on both Windows and UNIX, however I have not tested it on
Windows.  See tests/README for how to write tests.  Added the PHP 3
tests and converted most of them.
2000-08-27 19:46:06 +00:00