Commit Graph

18615 Commits

Author SHA1 Message Date
Antony Dovgal
b16f925e37 MFH 2006-12-27 10:31:10 +00:00
Antony Dovgal
65f50e7e31 MFH more test improvements by Chris Jones 2006-12-27 09:49:53 +00:00
Ilia Alshanetsky
7fe60ada00 Don't forget to free url structure 2006-12-26 16:58:23 +00:00
Ilia Alshanetsky
5e576be36f Fixed bug #39878 (CURL doesn't compile on Sun Studio Pro). 2006-12-26 16:55:56 +00:00
Ilia Alshanetsky
ffd41a503f Session deserializer protection. 2006-12-26 16:53:47 +00:00
Ilia Alshanetsky
dc5be15a6f is_numeric_string() optimization 2006-12-26 16:45:39 +00:00
Antony Dovgal
24124518ab MFH 2006-12-26 12:29:42 +00:00
Pierre Joye
f458ff3dac - MFH: add better zlib detection 2006-12-26 10:42:50 +00:00
Pierre Joye
5a6f0e3059 - #39952 zip ignoring --with-libdir on zlib checks (judas dot
iscariote at gmail dot com)
2006-12-26 09:52:05 +00:00
Dmitry Stogov
67583e7aa5 Code review:
. fixed integer overflow
  . fixed buffer overflow/underflow
  . added more strict IP validation
  . reimplemented float number validation
2006-12-26 09:16:25 +00:00
Ilia Alshanetsky
e2c110bebf Allocation safety checks 2006-12-25 23:43:10 +00:00
Antony Dovgal
32d078f8e7 MFH 2006-12-25 22:40:23 +00:00
Ilia Alshanetsky
52d53543ac Allocation safety checks 2006-12-25 22:36:57 +00:00
Antony Dovgal
9c2b6efb77 MFH 2006-12-25 22:27:24 +00:00
Antony Dovgal
6ac8ffdfea MFH 2006-12-25 22:12:46 +00:00
Antony Dovgal
7dc7882745 MFH 2006-12-25 21:47:02 +00:00
Ilia Alshanetsky
7efb0a14f4 Use safe_emalloc() 2006-12-25 21:41:04 +00:00
Antony Dovgal
807a0966a9 fix weird strlen() usage 2006-12-25 21:18:01 +00:00
Antony Dovgal
6c50fa955b MFH 2006-12-25 21:08:02 +00:00
Ilia Alshanetsky
652c7096b2 Fixed test for 64bit systems 2006-12-25 21:07:53 +00:00
Antony Dovgal
3fd433c07d MFH 2006-12-25 20:53:50 +00:00
Antony Dovgal
2e3cd64566 MFH 2006-12-25 20:44:45 +00:00
Antony Dovgal
35db4d21b0 MFH 2006-12-25 20:03:43 +00:00
Ilia Alshanetsky
0776e56437 Use %F (ignores locale) for internal representation of floats 2006-12-25 16:48:18 +00:00
Antony Dovgal
601f4cd129 MFH 2006-12-25 15:28:57 +00:00
Antony Dovgal
c52bc49f50 fix test 2006-12-25 14:27:51 +00:00
Ilia Alshanetsky
e3569ae80a Define SENDBUFLEN for older c-client libs 2006-12-25 14:23:18 +00:00
Antony Dovgal
04d4811532 MFH 2006-12-25 11:50:31 +00:00
Antony Dovgal
6e8a7d7b20 fix tests 2006-12-25 11:16:23 +00:00
Ilia Alshanetsky
c5db57b495 Fixed buffer boundary protection 2006-12-24 22:15:06 +00:00
Ilia Alshanetsky
4f46c4e90f Added empty string checks 2006-12-24 20:50:02 +00:00
Rob Richards
47fb655a56 fix bug #33734 and related (Something strange with COM Object)
- caused by fix in com_handlers.c rev 1.22.2.5
2006-12-24 12:32:10 +00:00
Rob Richards
b7ec6f90e0 - fix bug #33386 (ScriptControl only sees last function of class): com_wrapper.c
- fix bug #37588 (COM Property propputref converts to PHP function
  and can't be accesed): com_handlers.c
- fix bug #39596 (Creating Variant of type VT_ARRAY): com_variant.c
- add tests
2006-12-24 10:00:59 +00:00
Hannes Magnusson
6077df1a03 Fix typo 2006-12-24 01:29:20 +00:00
Ilia Alshanetsky
eaf3d32157 Safety checks 2006-12-23 23:28:39 +00:00
Ilia Alshanetsky
1379ad02e3 Added checks for negative max length and overflow checks for overly long
strings.
2006-12-23 18:50:33 +00:00
Derick Rethans
7180422fdc - Fixed bug #39935 (Extensions tidy,mcrypt,mhash,pdo_sqlite ignores
--with-libdir).
2006-12-23 17:58:47 +00:00
Antony Dovgal
46b25155d2 MFH 2006-12-23 14:02:50 +00:00
Ilia Alshanetsky
72895cda6d Fixed bug #39884 (ReflectionParameter::getClass() throws exception for type
hint self).
2006-12-22 15:37:48 +00:00
Ilia Alshanetsky
f40ebf4171 Fixed bug #36392 (wrong number of decimal digits with %e specifier in
sprintf).
2006-12-22 15:29:41 +00:00
Ilia Alshanetsky
7772e33ace Small optimization of the date() function 2006-12-22 15:21:34 +00:00
Antony Dovgal
a7faaa1b14 new tests 2006-12-22 13:30:10 +00:00
Antony Dovgal
fb18a8e760 more tests 2006-12-22 13:07:53 +00:00
Ilia Alshanetsky
fd8f758ecd Fixed bug #39873 (number_format() breaks with locale & decimal points). 2006-12-22 04:03:15 +00:00
Antony Dovgal
ed11386c3d MFH 2006-12-21 22:08:26 +00:00
Antony Dovgal
8854c3d51a MFH 2006-12-21 21:37:45 +00:00
Antony Dovgal
66d9c24ccc improve tests 2006-12-21 19:23:26 +00:00
Seiji Masugata
133d6bf2ca Fixed bug #39361, #39400 (mbstring function overloading problem). 2006-12-21 17:26:05 +00:00
Rob Richards
60941b02dc fix issues identitified by coverity 2006-12-21 12:51:26 +00:00
Antony Dovgal
6546914e68 new tests 2006-12-21 12:41:36 +00:00
Antony Dovgal
6aec52bde7 MFH 2006-12-21 01:18:28 +00:00
Ilia Alshanetsky
1783b0e481 Optimize out zend_hash_num_elements() call 2006-12-21 01:16:10 +00:00
Antony Dovgal
ffa7e957c5 fix possible leaks 2006-12-21 01:00:58 +00:00
Antony Dovgal
0abe62e027 MFH 2006-12-20 23:36:56 +00:00
Antony Dovgal
a0e2ccf490 MFH 2006-12-20 23:30:30 +00:00
Ilia Alshanetsky
87ffae250c fixed ZTS build 2006-12-20 19:48:12 +00:00
Antony Dovgal
7d2142a56e protect _SESSION, HTTP_SESSION_VARS and GLOBALS
maintain an internal reference of _SESSION, so that it won't be possible to destroy it from userspace
2006-12-20 19:31:28 +00:00
Ilia Alshanetsky
ea491dba64 Fixed bug #39898 (FILTER_VALIDATE_URL validates \r\n\t etc). 2006-12-20 19:20:01 +00:00
Antony Dovgal
40f6288fa3 MFH 2006-12-20 15:12:38 +00:00
Derick Rethans
a9d0abf82c - Fixed the validate email filter so that the letter "v" can also be used in
the user part of the email address. (Derick)
2006-12-20 14:39:01 +00:00
Antony Dovgal
0f2eed24bb MFH 2006-12-20 13:09:02 +00:00
Dmitry Stogov
53b088e60c Make MEMORY_LIMIT and ZEND_USE_MALLOC_MM to be always enabled. They don't make any significant slowdown, but incrise maintainability a lot. Note that the setting of memory_limit wasn't changes (neither in main/main.c nor in php.ini) and it still set to 16M. 2006-12-20 10:49:33 +00:00
Hannes Magnusson
1e19ee8785 - Fixed incorrect function names on FreeBSD where inet_pton() was named
__inet_pton() and inet_ntop() was named __inet_ntop()
- Fixed bug #39685 (iconv() - undefined function)
- Fixed bug #38852 (XML-RPC Breaks iconv)
2006-12-20 10:34:36 +00:00
Nuno Lopes
6a8a2e8b0e new test 2006-12-19 21:46:48 +00:00
Michael Wallner
2beee146b4 MFH: check CRYPTO_get_id_callback() if anyone else already set thread lock callbacks 2006-12-19 21:41:25 +00:00
Antony Dovgal
1ef3ca7bf7 on FreeBSD these locales have different names 2006-12-19 21:39:48 +00:00
Antony Dovgal
949a0934c8 MFH 2006-12-19 20:46:56 +00:00
Nuno Lopes
078fda3d6e remove NOP code in json_determine_array_type(), as we already know the zval passed is an array (based on patch by Ron Korving) 2006-12-19 15:01:05 +00:00
Antony Dovgal
2c3db736c4 add missing SKIPIF sections 2006-12-19 14:16:23 +00:00
Antony Dovgal
c34d863d3e MFH 2006-12-19 13:15:39 +00:00
Dmitry Stogov
5d8183f0b2 Support for systems without locale.h 2006-12-19 13:13:29 +00:00
Antony Dovgal
0ecaeb89d3 serialize() should use '.' as decimal point irrespectively to locale 2006-12-19 12:36:44 +00:00
Dmitry Stogov
c43fc2afc8 Fixed bug #39815 (SOAP double encoding is not locale-independent) 2006-12-19 11:54:38 +00:00
Hannes Magnusson
b12e3e1475 Fix tests 2006-12-19 10:03:24 +00:00
Dmitry Stogov
03312cc0d9 Added function stream_socket_shutdown(). It is a wraper for system shutdown() function, that shut downs part of a full-duplex connection 2006-12-19 08:58:58 +00:00
Ilia Alshanetsky
d257696604 Fixed bug #39845 (Persistent connections generate a warning in pdo_pgsql). 2006-12-18 17:56:25 +00:00
Ilia Alshanetsky
b9531d5b07 Cleanup & optimize php_filter_encode_url() 2006-12-18 15:42:18 +00:00
Ilia Alshanetsky
090e14dfda Less hackish support for spaces at the start of tags within strip_tags() 2006-12-18 15:02:16 +00:00
Ilia Alshanetsky
a938d8e386 Fixed bugs with trimming of spaces 2006-12-18 14:56:40 +00:00
Antony Dovgal
a726dcaa99 MFH: fix #39850 (SplFileObject throws contradictory/wrong error messages when trying to open "php://wrong") 2006-12-18 14:56:20 +00:00
Dmitry Stogov
6e0b78cd4c Fixed bug #39832 (SOAP Server: parameter not matching the WSDL specified type are set to 0) 2006-12-18 14:39:23 +00:00
Antony Dovgal
5fc3e649b6 MFH 2006-12-18 11:12:55 +00:00
Antony Dovgal
5e8eecb362 remove the comment, it's not valid anymore 2006-12-18 10:19:52 +00:00
Hannes Magnusson
9ef3575c25 MFH:
- make %f locale aware again
- fix precision loss with %F (noticed by Sebastian Nohn)
- add new tests
2006-12-18 09:26:54 +00:00
Ilia Alshanetsky
7d7248390c Filter fixes:
Fixed possible double encoding problem with sanitizing filters
	Make use of space-strict strip_tags() function
2006-12-18 04:22:05 +00:00
Brian Shire
5bf3df531f Fixed bug #30074
extract with EXTR_REFS was setting EG(unitialized_zval_ptr)->is_ref=1, affecting subsequent usage
  Added test
2006-12-17 20:09:48 +00:00
Ilia Alshanetsky
24cc05dc09 Fixed bug #39779 (Enable AUTH PLAIN mechanism in underlaying libc-client). 2006-12-17 18:22:53 +00:00
Hannes Magnusson
93a606a192 Fix build 2006-12-17 03:26:04 +00:00
Ilia Alshanetsky
b75d079c89 Fixed bug #39846 (Invalid IPv4 treated as valid). 2006-12-16 21:48:05 +00:00
Andrei Zmievski
8f5310afad Support for 'S' format in unserialize() (forward compatibility with PHP
6)
2006-12-15 00:58:08 +00:00
Ilia Alshanetsky
563221783a Removed deadcode found by Ron Korving 2006-12-13 15:39:12 +00:00
Ilia Alshanetsky
a055e93a27 optimize out strlen() calls
# Patch by Matt Wilmas
2006-12-13 15:31:47 +00:00
Ilia Alshanetsky
e034b4a8b0 Removed dummy vars.
# Patch by Matt Wilmas
2006-12-12 15:35:16 +00:00
Antony Dovgal
beeb5ddec4 disable tests 2006-12-12 13:22:44 +00:00
Antony Dovgal
fd23b700fb fix test 2006-12-12 13:11:36 +00:00
Antony Dovgal
2f5229c9fc MFH: skip BFILE tests if Oracle is not on localhost 2006-12-12 13:00:01 +00:00
Antony Dovgal
dc64595467 MFH 2006-12-12 12:11:51 +00:00
Antony Dovgal
24b312f8d5 MFH: missing part of the fix for #39795 2006-12-12 12:06:37 +00:00
Antony Dovgal
fc0e395678 add new tests 2006-12-12 09:33:33 +00:00
Antony Dovgal
f5543e8279 MFH 2006-12-12 09:28:18 +00:00