Commit Graph

4742 Commits

Author SHA1 Message Date
Antony Dovgal
6640a1c861 one more test 2006-11-14 22:23:45 +00:00
Antony Dovgal
963b1db67f add new tests 2006-11-14 21:59:57 +00:00
Derick Rethans
de50222d1c - MFH: No idea if we actually support 16 bit systems, but this just looked wrong 2006-11-14 14:42:42 +00:00
Antony Dovgal
923b785fd1 add new test 2006-11-13 21:27:48 +00:00
Antony Dovgal
017f3ae479 don't forget to close the stream when/if flock() fails 2006-11-13 20:31:27 +00:00
Antony Dovgal
34db368fe4 MFH: fix leaks in get_meta_tags() when used with b0rked HTML
add test
2006-11-13 20:18:12 +00:00
Ilia Alshanetsky
d4a64fba74 removed bogus char 2006-11-12 17:23:01 +00:00
Ilia Alshanetsky
e0d385a328 Optimized array functions utilizing php_splice(). 2006-11-12 17:13:22 +00:00
Hannes Magnusson
7b81e554ae MFH: Fixed bug#36975 (natcasesort() causes array_pop() to misbehave) 2006-11-12 01:14:39 +00:00
Dmitry Stogov
532b02cd19 Implemented registry cache that prevent registry lookup on each request. In case of modification of corresponding registry-tree PHP will reload it automatic. 2006-11-10 11:42:07 +00:00
Dmitry Stogov
a930751112 Faster and better licensed implementation 2006-11-10 10:10:38 +00:00
Ilia Alshanetsky
126be8ec7c Added missing API declarations. 2006-11-10 01:28:59 +00:00
Ilia Alshanetsky
ddae41877f Added missing PHPAPI declaration 2006-11-09 20:01:41 +00:00
Dmitry Stogov
25f01e8ec3 Fixed tests 2006-11-09 08:29:18 +00:00
Ilia Alshanetsky
d6b3b73490 Fixed tests 2006-11-07 20:24:38 +00:00
Ilia Alshanetsky
07cdfefdee Fixed bug #39350 (crash with implode("\n", array(false))). 2006-11-06 17:21:05 +00:00
Dmitry Stogov
82f89748a4 Windows doesn't have chown(). Remove unused function and reference to undeclared macro VCWD_CHOWN(). 2006-11-06 14:54:52 +00:00
Rasmus Lerdorf
cea64d52fa data: and php:stdin/input allow_url_include checks 2006-11-05 20:08:58 +00:00
Hannes Magnusson
b11b08e987 MFH: fix parameter parsing in getrusage() 2006-11-03 15:48:39 +00:00
Hannes Magnusson
050f94f746 MFH: Fix double "wron param count" messages 2006-11-03 14:46:48 +00:00
Hannes Magnusson
4f4e724b1b MFH: Remove SKIPIF 2006-11-03 14:17:40 +00:00
Ilia Alshanetsky
bd2ab7bc15 Fixed bug #39215 (Inappropriate close of stdin/stdout/stderr). 2006-11-03 13:34:19 +00:00
Ilia Alshanetsky
3a533934c7 Added missing boundary checks. 2006-11-01 01:55:11 +00:00
Antony Dovgal
0cf7b1012f add new test by Pierre 2006-10-19 12:07:07 +00:00
Antony Dovgal
0ebfbfe791 MFH: initialize optional vars 2006-10-16 19:27:57 +00:00
Hannes Magnusson
b3a914aca8 Fix test (bug#39097) 2006-10-15 13:43:45 +00:00
Hannes Magnusson
e4bdd6fcba Added missing API function declaration. 2006-10-13 09:34:34 +00:00
Ilia Alshanetsky
bc59416ff2 Fixed bug #38934 (move_uploaded_file() cannot read uploaded file outside of
open_basedir).
2006-10-13 01:42:20 +00:00
Sara Golemon
adf31588d2 MFH(r-1.96) Bugfix#38649 Optional param not initialized 2006-10-11 23:22:45 +00:00
Antony Dovgal
e20650616e add test 2006-10-11 14:57:52 +00:00
Antony Dovgal
14b168fcab MFH: check filter and class names for empty strings 2006-10-11 14:46:40 +00:00
Ilia Alshanetsky
a39201675f Catch empty strings right away. 2006-10-11 14:19:55 +00:00
Antony Dovgal
9b7ba01618 MFH: avoid reading str[-1], add warning when invalid format specified
add test
2006-10-11 13:15:30 +00:00
Antony Dovgal
1cc0339d40 MFH: fix crash when parsing invalid hostnames/IPs 2006-10-11 12:53:56 +00:00
Ilia Alshanetsky
7b77d536c3 Fixed bug #37262 (var_export() does not escape \0 character). 2006-10-09 18:08:34 +00:00
Antony Dovgal
24195cf941 re-add the test 2006-10-06 14:50:46 +00:00
Antony Dovgal
b37dd23c35 <tony2001> ilia: are you serious?
<ilia> tony2001: yes
2006-10-05 20:28:15 +00:00
Antony Dovgal
e2999137a7 add test 2006-10-05 19:49:43 +00:00
Andrei Zmievski
e779c3aa36 Increment replace count value for case-sensitive single char searches. 2006-10-05 18:23:19 +00:00
Ilia Alshanetsky
9230cf3da6 Fixed missing open_basedir check inside chdir() function. 2006-10-04 23:19:25 +00:00
Edin Kadribasic
38772455a4 Update credits 2006-10-04 12:51:33 +00:00
Antony Dovgal
d8648eae57 MFH: fix #39032 (strcspn() stops on null character) 2006-10-04 11:14:32 +00:00
Ilia Alshanetsky
8581c7328f optimize zend_hash_init() with known hash table sizes. 2006-10-03 17:41:47 +00:00
Hannes Magnusson
59fabbb464 MFH: compact() doesnt throw "wrong param count" 2006-10-03 16:37:51 +00:00
Andrei Zmievski
5c96544b7d Use php_error_docref() instead. 2006-10-02 20:07:14 +00:00
Andrei Zmievski
007c6ff8d9 More offset fixes. Added E_NOTICE where appropriate. 2006-10-02 19:58:15 +00:00
Andrei Zmievski
c36d94aac2 Fix invalid memory access in strrpos(). 2006-10-02 19:42:42 +00:00
Hannes Magnusson
39219cf7fe protos 2006-10-02 07:58:13 +00:00
Ilia Alshanetsky
154f70acf1 Fixed bug #38993 (Fixed safe_mode/open_basedir checks for
session.save_path, allowing them to account for extra parameters).
2006-10-01 20:58:02 +00:00
Ilia Alshanetsky
3ae8d67002 Added missing API function declaration. 2006-09-29 22:35:47 +00:00
Ilia Alshanetsky
01898e0f33 Added missing declaration of the php_get_uname() PHPAPI function. 2006-09-29 21:40:16 +00:00
Hannes Magnusson
281536e866 fix protos 2006-09-29 13:11:28 +00:00
Antony Dovgal
8c09e1ca40 fix test name 2006-09-28 22:02:04 +00:00
Ilia Alshanetsky
e919a873cd Fixed bug #38859 (parse_url() fails if passing '@' in passwd). 2006-09-28 14:52:31 +00:00
Antony Dovgal
30a015a92f MFH: fix #38981 (using FTP URLs in get_headers() causes crash) 2006-09-28 12:55:15 +00:00
Antony Dovgal
b805c9e089 MFH: fix #38961 (metaphone() results in segmentation fault on NetBSD) 2006-09-27 08:32:24 +00:00
Ilia Alshanetsky
4b286026c3 64bit fix (Possible fix for bug #38961) 2006-09-26 15:40:45 +00:00
Ilia Alshanetsky
cc0d254e4f Fixed bug #38891 (get_headers() do not work with curl-wrappers). 2006-09-25 16:00:43 +00:00
Antony Dovgal
39856ab9cb MFH: fix possible segfault in #38891 2006-09-23 11:58:58 +00:00
Ilia Alshanetsky
af993553fb array_key_exists() should not work by by-ref 2006-09-19 23:44:30 +00:00
Hannes Magnusson
db5dc9d5d8 fix test 2006-09-19 12:25:27 +00:00
Antony Dovgal
bc60e07d57 argh.. nuke UEXPECTF 2006-09-19 09:40:00 +00:00
Antony Dovgal
e1ff6fe881 support objects in array_walk*() 2006-09-19 09:35:27 +00:00
Antony Dovgal
0fe381cd70 fix tests 2006-09-19 09:07:56 +00:00
Antony Dovgal
dba1f1d42f MFH: fix #34066 (recursive array_walk causes segfault)
add tests
2006-09-19 09:04:16 +00:00
Ilia Alshanetsky
92c3cfd81f Additional expand_filepath() checks 2006-09-16 18:30: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
99b133d7a7 MFH: fix double free(), add test 2006-09-15 07:27:22 +00:00
Dmitry Stogov
3fcfdf573d Write valid run-time value for Zend Memeory Manager 2006-09-14 08:01:48 +00:00
Ilia Alshanetsky
f4a75d91d2 Fixed bug #38096 (large timeout values ignored on 32bit machines in
stream_socket_accept() and stream_socket_client()).
2006-09-11 14:52:21 +00:00
Antony Dovgal
88b59df262 add new tests 2006-09-07 11:48:30 +00:00
Ilia Alshanetsky
8e86a189ec Fixed bug #38464 (array_count_values() mishandles numeric strings). 2006-09-06 17:25:57 +00:00
Nuno Lopes
731b68fbc5 fix gcc warning 2006-09-04 19:14:59 +00:00
Johannes Schlüter
688efae2d0 - Remove version number here as already done in HEAD 2006-09-03 11:27:50 +00:00
Pierre Joye
d63e411e9a - MFH 2006-08-31 22:52:54 +00:00
Antony Dovgal
c2a38c607b more z/Z fixes 2006-08-31 14:41:24 +00:00
Antony Dovgal
0c482b5c64 more z/Z fixes 2006-08-31 14:21:21 +00:00
Antony Dovgal
644a796525 MFH: fix leak in iptcembed() 2006-08-30 16:30:14 +00:00
Hannes Magnusson
d6ec9d21ec fix test 2006-08-30 09:44:53 +00:00
Ilia Alshanetsky
1b9e18d471 Corrected problems introduced by previous commit.
# Issue found by Stefan
2006-08-29 19:50:04 +00:00
Ilia Alshanetsky
7c618c40bc Finalize implode() patch 2006-08-29 14:32:16 +00:00
Antony Dovgal
ffc3d4a076 fix win32 build
EG(precision) can be changed in runtime, even in php_implode() (hint: __toString()), so please think twice before optimizing
2006-08-29 12:20:18 +00:00
Ilia Alshanetsky
914d362176 Adjust code to avoid TSRMLS_FETCH 2006-08-28 23:33:37 +00:00
Antony Dovgal
7384c12b11 MFH: make sure ext/standard is down before ext/session (fixes #38534) 2006-08-28 19:57:57 +00:00
Antony Dovgal
ecfa880820 MFH: set BG(locale_string) to NULL on shutdown (partly fixes #38534) 2006-08-28 18:58:47 +00:00
Antony Dovgal
615f2d7295 fix ZTS build 2006-08-28 09:56:28 +00:00
Hannes Magnusson
2d3056e94f MFH:
- Fixed bug #33895 (missing math constants).
 - Remove M_PI from math.c (its defined in php_math.h)
2006-08-27 19:14:43 +00:00
Ilia Alshanetsky
78d7b0bf0e Optimize the operation of implode() on non-string parameters 2006-08-27 19:06:09 +00:00
Hannes Magnusson
a180abdbfd fix tests on freebsd 2006-08-27 15:06:53 +00:00
Antony Dovgal
806d9fe71b tm_yday may be 0 2006-08-24 11:27:20 +00:00
Antony Dovgal
0584dc011c MFH: fix segfault in strptime() on 64bit Linuxes, caused by the missing declaration 2006-08-24 11:06:02 +00:00
Antony Dovgal
a3b62c8eed add test for real 2006-08-22 20:10:50 +00:00
Antony Dovgal
d5c9b41db1 fix implode() function (see http://news.php.net/php.qa/26876)
add test
2006-08-22 19:55:56 +00:00
Ilia Alshanetsky
2a41a50216 Fixed bug #38524 (strptime() does not initialize the internal date storage
structure).
2006-08-20 18:20:07 +00:00
Antony Dovgal
a33913d960 MFH: add a notice to fgetcsv() when delimiter or enclosure is longer than 1 char
(feature request #38496)
2006-08-18 12:50:57 +00:00
Antony Dovgal
f3c1722b0c MFH: don't try to use "auto", "none" and "pass" charsets returned from mbstring 2006-08-15 15:09:38 +00:00
Antony Dovgal
c3209b53d2 new tests 2006-08-15 08:54:15 +00:00
Ilia Alshanetsky
a4d2f04307 Fixed overflow on 64bit systems in str_repeat() and wordwrap().
Disabled CURLOPT_FOLLOWLOCATION in curl when open_basedir or safe_mode are
enabled.

# Patches by Stefan E.
2006-08-10 14:40:13 +00:00
Ilia Alshanetsky
e5fe441cbd Added support for httpOnly flag for session extension and cookie setting
functions.

# Original patch by Scott MacVicar
2006-08-10 13:50:56 +00:00
Antony Dovgal
1ec10ac8c7 typos in comments and other minor improvements 2006-08-10 13:43:18 +00:00
Antony Dovgal
03ee807824 zend_hash_get_current_key_ex() returns string_len + 1, so we need to subtract 1 to get the real length 2006-08-08 13:12:00 +00:00
Pierre Joye
1f69ad5aa1 - compiler warnings 2006-08-08 10:36:58 +00:00
Antony Dovgal
1a4b715ef2 use memrchr/zend_memrchr instead of strrchr 2006-08-08 10:22:25 +00:00
Antony Dovgal
9596bda7fc add new test 2006-08-08 09:51:06 +00:00
Antony Dovgal
d17c2ec46d add new test 2006-08-04 15:01:37 +00:00
Antony Dovgal
afcbbe2b86 MFH: fix #38322 (reading past array in sscanf() leads to arbitary code execution) 2006-08-04 11:50:15 +00:00
Andrei Zmievski
3d7a1c3972 Make array_merge(_recursive) handle binary keys safely. (Patch by Matt W) 2006-07-30 03:31:18 +00:00
Ilia Alshanetsky
726dee9ee3 ext/standard/info.c ext/standard/info.h 2006-07-28 14:23:35 +00:00
Antony Dovgal
a76b852989 fix test 2006-07-28 13:47:56 +00:00
Antony Dovgal
a28a95c11a MFH: patch for #37846 (wordwrap() wraps incorrectly)
by Dmitry Kononov <ddk at krasn dot ru>
2006-07-28 12:23:18 +00:00
foobar
60562a6312 update credits 2006-07-27 01:21:27 +00:00
Antony Dovgal
a0371df33f MFH: fix compile warning on Solaris, getloadavg() is in sys/loadavg.h there 2006-07-26 08:57:44 +00:00
Hannes Magnusson
d5ec319367 MFH: Update protos & arginfo for memory_get_usage() & memory_get_peak_usage() 2006-07-25 16:41:04 +00:00
Dmitry Stogov
356facf4af Changed memory_get_usage() and memory_get_peak_usage(). Optional boolean argument allows get memory size allocated by emalloc() (by default) or real size of memory allocated from system. 2006-07-25 13:40:05 +00:00
Marcus Boerger
5da6415bfe - MFH Correctly handle binary proeprty names which are not mangled 2006-07-24 23:40:57 +00:00
Andrei Zmievski
8474838a9a +1 for keys 2006-07-24 18:18:33 +00:00
Marcus Boerger
d0f2f6cd04 - MFH zend_unmangle_property_name(), drop zend_unmangle_property_name_ex() 2006-07-24 18:03:45 +00:00
Andrei Zmievski
bb430b3737 Gah. 2006-07-22 16:58:39 +00:00
Andrei Zmievski
d827c76379 Matt should be happy now. 2006-07-22 16:58:06 +00:00
Andrei Zmievski
1223119155 MFH 2006-07-21 23:54:19 +00:00
foobar
34ae4eafd0 update 2006-07-20 10:09:09 +00:00
Michael Wallner
46f21b8a32 MFH: added error_get_last() function 2006-07-19 12:25:46 +00:00
Dmitry Stogov
29ed52ffa4 New memory manager 2006-07-18 09:06:33 +00:00
Michael Wallner
c0fcaa7acb - fix bug #37945 pathinfo() cannot handle argument with special characters
like german "Umlaute"
2006-07-17 20:36:47 +00:00
Antony Dovgal
f3f44275f4 MFH 2006-07-17 06:45:08 +00:00
Antony Dovgal
e79591b081 fix test 2006-07-16 15:59:08 +00:00
Marcus Boerger
dc571fa9e2 - MFH Fixed Bug #29538 number_format and problem with 0 2006-07-16 10:50:58 +00:00
Marcus Boerger
f03f2c5eae - MFH Pathinfo allows to get filename (Toby S, Christian S) 2006-07-16 10:37:24 +00:00
Marcus Boerger
9c30e20bd6 - MFH Implement todo: SplFileObject: ability to set the CSV separator per object 2006-07-15 15:08:41 +00:00
Marcus Boerger
31a8d6a6b3 - MFH array_fill_keys, better unicode support, use new param parsing API 2006-07-15 12:14:07 +00:00
Marcus Boerger
87c64280b0 - MFH Added array_fill_keys(). (Marcus, Mathew W) 2006-07-15 10:21:10 +00:00
Antony Dovgal
54dba635a3 rephrase the error message (fixes #38106) 2006-07-14 20:44:04 +00:00
Antony Dovgal
4902fc6c25 MFH: fix #38086 (stream_copy_to_stream() returns 0 when maxlen is bigger than the actual length)
add tests
2006-07-13 12:00:17 +00:00
Antony Dovgal
69d6fe45c8 it's usually good idea to initialize variables
especially if you rely on their values
2006-07-12 12:38:49 +00:00
Antony Dovgal
3cce465528 fix invalid read - no need to compare strings if haystack is "" or shorter than needle
add test
2006-07-12 12:33:48 +00:00
Ilia Alshanetsky
d21628f993 Fixed test 2006-07-11 22:13:53 +00:00
Antony Dovgal
7ff8061d0a add new tests by Ligaya Turmelle 2006-07-11 21:28:38 +00:00
Antony Dovgal
40b87ec99f MFH: /tmp is often a symlink, use /bin instead 2006-07-11 21:20:20 +00:00
Dmitry Stogov
83ac79600e Fixed bug #37947 (zend_ptr_stack reallocation problem) 2006-07-10 14:02:40 +00:00
Ilia Alshanetsky
278dc574f2 E_ERROR > E_RECOVERABLE_ERROR 2006-07-05 17:38:14 +00:00
Hannes Magnusson
a32fb32781 Make everyone happy 2006-07-03 22:42:03 +00:00
Ilia Alshanetsky
4a0d670f43 Fixed test 2006-07-03 21:58:46 +00:00
Hannes Magnusson
87bc74ea7a fix tests 2006-07-03 16:03:51 +00:00
Ilia Alshanetsky
1b2cc459c6 Fixed bug #37987 (invalid return of file_exists() in safe mode). 2006-07-02 13:51:40 +00:00
Hannes Magnusson
7af33194e5 MFH: arginfo fixes 2006-07-02 00:11:06 +00:00
Nuno Lopes
b7311e9173 fixed segfaults and such things within the new assert02.phpt test 2006-07-01 12:21:07 +00:00
Hannes Magnusson
6910275d51 MFH reference fixes 2006-06-30 18:17:38 +00:00
Antony Dovgal
a518b450fd MFH: add error messages to disk_free_space() & disk_total_space() (feature request #37971) 2006-06-30 10:53:11 +00:00
Hannes Magnusson
77b307021d fix test 2006-06-29 14:53:50 +00:00
Hannes Magnusson
7a6fe06e4b url->URL 2006-06-29 14:40:49 +00:00