Commit Graph

18923 Commits

Author SHA1 Message Date
andy wharmby
74cafe0840 Fixed bug #37927 (Prevent trap when COM extension processes argument of type VT_DISPATCH|VT_REF) 2007-02-02 15:44:06 +00:00
andy wharmby
cda82bc0a3 Fixed bug #34564 (COM extension not returning modified "out" argument) 2007-02-02 15:27:35 +00:00
Ilia Alshanetsky
a8c006235c Better generated parser 2007-02-02 00:03:33 +00:00
Ilia Alshanetsky
79dfb302b1 Fixed test mixup 2007-02-02 00:00:33 +00:00
Antony Dovgal
c313af32a9 MFH 2007-02-01 14:21:01 +00:00
Antony Dovgal
0c84a4d927 MFH: free class_name when necessary 2007-02-01 14:07:43 +00:00
Antony Dovgal
6e8654aae1 plug leak 2007-02-01 14:02:35 +00:00
Antony Dovgal
82f70c9493 fix leaks on error 2007-02-01 13:45:25 +00:00
Ilia Alshanetsky
c219c6f4a8 Fixed bug #40285 (The PDO prepare parser goes into an infinite loop in
some instances).
2007-02-01 00:12:39 +00:00
Antony Dovgal
cdaff68610 MFH: improve tests 2007-01-31 13:56:16 +00:00
Antony Dovgal
4f6f150490 MFH: fix segfault on rebindinging and rexecuting a statement with LOBs
fix compile failure in ZTS mode when collections support is missing
2007-01-31 13:55:43 +00:00
Rui Hirokawa
693c9a7d2c fixed incompatibility with PHP 5.2.0 for encoding conversion between ShiftJIS(CP932), eucJP, ISO-2022-JP. 2007-01-29 22:53:47 +00:00
Pierre Joye
601a77b3a3 - #40228, ZipArchive::extractTo does create empty directories
recursively
2007-01-29 15:25:06 +00:00
Antony Dovgal
58e96c4c10 nullify param.parameter and avoid destroying it twice 2007-01-27 21:53:26 +00:00
Antony Dovgal
c98dcd5a21 use length - 1 when we fetch it from hashes 2007-01-26 15:33:18 +00:00
Antony Dovgal
c5732112a9 fix leak
readuce size of the buffer to prevent ORA-01461
2007-01-26 15:07:45 +00:00
Antony Dovgal
46baad774f add package2.xml 2007-01-25 16:55:40 +00:00
Antony Dovgal
40ca697a67 add missing ifdefs 2007-01-25 14:38:45 +00:00
Antony Dovgal
4cb734b05f setlocale() returns static buffer, which must be copied 2007-01-25 13:37:04 +00:00
Antony Dovgal
0bc0e57b85 MFH: fix #40189 (possible endless loop in zlib.inflate stream filter) 2007-01-25 12:22:21 +00:00
Antony Dovgal
de3c2038af PHP4 compatibility 2007-01-25 09:31:23 +00:00
Rasmus Lerdorf
49dbf804ad Fix typo 2007-01-25 06:12:58 +00:00
Ilia Alshanetsky
49c0823800 Added safety checks to the code 2007-01-25 00:27:19 +00:00
Ilia Alshanetsky
094a5717b1 Eliminate strcat() and strcpy() 2007-01-25 00:26:51 +00:00
Antony Dovgal
93951f1931 prepare to release 1.2.3 2007-01-24 14:34:13 +00:00
Ilia Alshanetsky
eb6b99d7df strcat() -> strlcat() 2007-01-24 00:45:54 +00:00
Antony Dovgal
d32dc5bda0 MFH 2007-01-24 00:33:51 +00:00
Nuno Lopes
a2b7b84685 add test 2007-01-23 19:26:24 +00:00
Nuno Lopes
8e8b369bc2 fix a few crashes 2007-01-23 19:23:29 +00:00
Hannes Magnusson
14fb4afd5c Fix typo 2007-01-23 12:37:21 +00:00
Ilia Alshanetsky
17864fc3e9 emalloc() -> safe_emalloc() 2007-01-23 00:23:17 +00:00
Antony Dovgal
725217571e fix PECL bug #7295 (ORA-01405: fetched column value is NULL on LOB fields) 2007-01-22 12:49:22 +00:00
Dmitry Stogov
933c26de41 Fixed bug #39367 (clearstatcache() doesn't clear realpath cache)
Fixed bug #40092 (chroot() doesn't clear realpath cache)
2007-01-22 09:31:46 +00:00
Antony Dovgal
a4ae84d014 MFH 2007-01-22 09:08:28 +00:00
Antony Dovgal
78e610b4f9 fix classname 2007-01-22 08:36:21 +00:00
Antony Dovgal
eae1072ccc MFH 2007-01-22 08:21:57 +00:00
Antony Dovgal
2c36778e47 MFH: fix #40191 (use of array_unique() with objects triggers segfault) 2007-01-22 08:17:26 +00:00
Marcus Boerger
d2c8a3bb63 - Add tests 2007-01-21 12:30:19 +00:00
Rob Richards
75fdefba0c MFH: fix accessing public key from x509 resource
add test
fix test under win32
2007-01-20 22:08:29 +00:00
Antony Dovgal
6bef5f8e80 typo in the test name 2007-01-20 19:19:29 +00:00
Nuno Lopes
65975bfc15 new tests. bump code coverage to 81% 2007-01-20 12:50:19 +00:00
Nuno Lopes
4b8911d062 fix another crash 2007-01-20 12:49:35 +00:00
Nuno Lopes
f3f2d827db fix crash. tests will follow 2007-01-20 12:27:18 +00:00
Antony Dovgal
216d041717 MFH 2007-01-19 22:33:25 +00:00
Antony Dovgal
4c6e1df9e2 MFH: improve utf8_mime2text() signature detection 2007-01-19 20:45:09 +00:00
Antony Dovgal
a5f3e15114 MFH 2007-01-19 19:43:30 +00:00
Nuno Lopes
d27d7619be fix segfaults with new libtidy. the patch is backwards compatible 2007-01-19 18:50:26 +00:00
Antony Dovgal
7e74ff0ff1 MFH 2007-01-19 18:03:33 +00:00
Antony Dovgal
504e9e31f3 MFH: fix #40169 (CURLOPT_TCP_NODELAY only available in curl >= 7.11.2) 2007-01-19 15:38:51 +00:00
Pierre Joye
4dafc7a2fa - save/restore the alpha blending mode correctly in imagefill and
imagefilltoborder
2007-01-19 15:03:56 +00:00
Antony Dovgal
ebd7c13e8b MFH: fix #40168 2007-01-19 14:50:11 +00:00
Ilia Alshanetsky
aeddf73dc4 Fix win32 build 2007-01-19 00:17:43 +00:00
Ilia Alshanetsky
ef3fcf2894 Added read-timeout context option "timeout" for HTTP streams.
# A patch mostly by Hannes
2007-01-19 00:02:13 +00:00
Ilia Alshanetsky
6f98a771e6 Fixed bug #39993 (tr_TR.UTF-8 locale has problems with PHP). 2007-01-18 23:20:24 +00:00
Antony Dovgal
84a827e0d4 MFH 2007-01-18 16:21:32 +00:00
Antony Dovgal
5f12c71382 MFH 2007-01-18 15:55:09 +00:00
Antony Dovgal
05c11fdfb2 MFH 2007-01-18 15:41:01 +00:00
Antony Dovgal
c592304ac0 MFH: use snprintf() 2007-01-18 15:29:30 +00:00
Antony Dovgal
e506abc408 MFH: improve check configure for new version of utf8_mime2text() 2007-01-18 14:05:21 +00:00
Antony Dovgal
04add4c727 MFH: use strlcat() 2007-01-18 14:03:38 +00:00
Antony Dovgal
5a23201d82 moved ext/informix to PECL 2007-01-18 12:28:10 +00:00
Antony Dovgal
fc9970a6e9 MFH: fix #40129 (iconv extension doesn't compile with CodeWarrior on Netware)
patch by gk at gknw dot de
2007-01-17 20:32:53 +00:00
Antony Dovgal
d6a4586197 MFH 2007-01-17 08:25:32 +00:00
Ilia Alshanetsky
b4f76016fd Fixed output code inside odbc_result_all() 2007-01-16 18:56:06 +00:00
Antony Dovgal
bb691f155c MFH: return false if realpath()/getcwd() fail 2007-01-16 14:42:38 +00:00
Antony Dovgal
bd6c862fee MFH 2007-01-16 11:19:10 +00:00
Antony Dovgal
7ad1c3c5f2 MFH: add trailing '\0' to stream hashes 2007-01-15 17:07:08 +00:00
Frank M. Kromann
c2cfc1eeee Fix mysql -> dblib 2007-01-15 01:56:09 +00:00
Ilia Alshanetsky
c5588fae3a Fixed bug #40121 (PDO_DBLIB driver wont free statements). 2007-01-14 16:57:50 +00:00
Hannes Magnusson
a6ff74de28 Fix typo in error message 2007-01-14 14:22:40 +00:00
Ilia Alshanetsky
f7d1d3ef44 Improve validation of argnum, width and precision. 2007-01-13 16:31:17 +00:00
Nuno Lopes
8815fdf5e0 OMG, this line was really bogus (and allocating huge amounts of memory unecessarly) 2007-01-13 11:21:21 +00:00
Nuno Lopes
e22c9cd775 fix valgrind error in test bug24594.phpt
while at it, remove some dead code and change the pts vector to char to save (much) memory
# Pierre: one more to merge ;)
2007-01-13 11:16:15 +00:00
Antony Dovgal
e351aedbdc MFH 2007-01-12 12:32:15 +00:00
Antony Dovgal
e8d2c9489d MFH: nuke skeleton leftovers 2007-01-12 12:17:32 +00:00
Antony Dovgal
7d4ea80b07 MFH 2007-01-12 12:06:45 +00:00
Ilia Alshanetsky
25e7373009 Use long instead of int where long is expected. 2007-01-12 02:03:59 +00:00
Ilia Alshanetsky
2ae036f038 Fixed bug #40098 (php_fopen_primary_script() not thread safe).
Adjusted previous fixes for similar issue to handle sysconf() failures
2007-01-12 01:46:11 +00:00
Antony Dovgal
ed30473f7c MFH 2007-01-11 22:23:20 +00:00
Antony Dovgal
870bd0b99f MFH 2007-01-11 16:45:37 +00:00
Antony Dovgal
f361d9e4f0 MFH: fix #39988 (type argument of oci_define_by_name() is ignored)
patch and tests by Chris Jones
2007-01-11 12:01:08 +00:00
Antony Dovgal
12d54fa683 MFH: fix #40078 (ORA-01405 when fetching NULL values using oci_bind_array_by_name()) 2007-01-11 11:27:52 +00:00
Sara Golemon
5e74c607a2 MFH 2007-01-11 02:33:07 +00:00
Ilia Alshanetsky
b5228f0c6c Fixed bug #40091 (spl_autoload_register with 2 instances of the same class). 2007-01-10 18:14:37 +00:00
Dmitry Stogov
7c750656f1 Fixed tests 2007-01-10 16:00:31 +00:00
Hannes Magnusson
4e0f1992ed Add missing ifdefs for shutdown() 2007-01-10 15:25:07 +00:00
Hannes Magnusson
3e0e2bb49d Fix ifdefs 2007-01-10 14:40:06 +00:00
Hannes Magnusson
5d75262062 Fix build on system where HAVE_SETLOCALE is not defined 2007-01-10 14:37:31 +00:00
Dmitry Stogov
ae792a06b0 Fixed SIGSEGV 2007-01-10 07:04:49 +00:00
Sara Golemon
6a8f688af2 MFH: Add CURLOPT_TCP_NODELAY constant 2007-01-09 23:13:05 +00:00
Marcus Boerger
023144ffa9 - MFH Fix for #40073 2007-01-09 17:55:29 +00:00
Dmitry Stogov
5709b64739 Close open files in case of failure (Amit) 2007-01-09 16:27:17 +00:00
Ilia Alshanetsky
81729c1ece Prevent SESSION/GLOBALS overload via session decoding 2007-01-09 15:31:12 +00:00
Ilia Alshanetsky
96a8399e2f Added key_length intialization for intergers 2007-01-09 15:20:45 +00:00
Antony Dovgal
1e352b3ae7 MFH: zerofill info_data and fix possible segfault
partly fixes #40073
2007-01-09 11:37:17 +00:00
Nuno Lopes
43369cef58 avoid calling MSHUTDOWN when built without libt1 2007-01-08 22:52:22 +00:00
Nuno Lopes
1790b05591 remove useless MSHUTDOWN function 2007-01-08 22:34:07 +00:00
Nuno Lopes
ec66c5be3d make the hash_ops structures const and save some memory
# ram memory is so expensive these days...
2007-01-08 22:29:25 +00:00
Andrei Zmievski
cdfed7f757 MFH 2007-01-08 22:24:11 +00:00
Ilia Alshanetsky
60e20922eb Use safe_emalloc() rather then emalloc() 2007-01-08 14:24:59 +00:00
Ilia Alshanetsky
13f006ac69 Fixed bug #38325 (spl_autoload_register() gaves wrong line for "class
not found").
2007-01-08 04:27:29 +00:00
Ilia Alshanetsky
c5fb061cbf Provide means for opening file for zend with error supression. Allows us to
avoid INI hackery such as the one used in SPL.
2007-01-08 03:39:09 +00:00
Ilia Alshanetsky
8df326e003 Fixed bug #39394 (Missing check for older variants of openssl). 2007-01-07 18:38:22 +00:00
Hannes Magnusson
a688c62f57 Use relative timestamp
#Thanks Nuno :)
2007-01-07 07:58:28 +00:00
Ilia Alshanetsky
5babb6d10d Fixed bug #39979 (PGSQL_CONNECT_FORCE_NEW will causes next connect to
establish a new connection).
2007-01-07 04:36:40 +00:00
Ilia Alshanetsky
5068511748 Fixed bug #40036 (empty() does not work correctly with ArrayObject when
using ARRAY_AS_PROPS).
2007-01-07 03:52:44 +00:00
Ilia Alshanetsky
cbf6f5b538 Fixed memory leaks on error 2007-01-07 03:12:14 +00:00
Nuno Lopes
3eaf46af3e fix a few memleaks and double-free()s on error conditions 2007-01-06 20:16:25 +00:00
Nuno Lopes
9b253882fc fix build with libming 0.3 and older 2007-01-06 19:25:33 +00:00
Rob Richards
57792acabc MFH: parameter entity argument (pe) should be bool
update test
2007-01-06 18:03:43 +00:00
Ilia Alshanetsky
d1891c3d8a removed dl() block 2007-01-06 17:35:44 +00:00
Hannes Magnusson
630254d55e Fix skipif 2007-01-06 16:56:38 +00:00
Hannes Magnusson
252b9e9fb1 MFH: bug #39504 (xmlwriter_write_dtd_entity() creates Attlist tag, not entity)
Add & improve test
2007-01-06 15:53:33 +00:00
Dmitry Stogov
f694c1f1db Improved proc_open(). Now on Windows it can run external commands not through CMD.EXE 2007-01-06 09:02:02 +00:00
Sara Golemon
13f447eb64 MFH: (r-1.16) ttyname_r() is broken on BSD 2007-01-05 21:31:56 +00:00
Hannes Magnusson
3f9a4baa31 Fix test according to bug#40009 2007-01-05 15:22:35 +00:00
Hannes Magnusson
91b8c3b2b5 Fix tests
#We'll need to update these every year..
2007-01-05 15:21:45 +00:00
Ilia Alshanetsky
7d901eacbe %f -> %F 2007-01-05 15:06:55 +00:00
Ilia Alshanetsky
7ba84b8807 Added missing open_basedir checks 2007-01-04 23:49:35 +00:00
Ilia Alshanetsky
a078b56326 Fixed bug #40009 (http_build_query(array()) returns NULL). 2007-01-03 23:16:56 +00:00
Nuno Lopes
b2fa0cb89d reduce the test data size even further or when running with valgrind it times out 2007-01-03 22:32:49 +00:00
Nuno Lopes
b6dff166bf MFH: fix infinite cycle
#this was the infinite cycle that was bugging me in the gcov machine...
2007-01-03 22:05:24 +00:00
Antony Dovgal
7cf0e005fa MFH 2007-01-03 20:45:22 +00:00
Hannes Magnusson
9ad0ffbd33 MFH: revert pcrelib version string 2007-01-03 20:08:37 +00:00
Antony Dovgal
614e0b29ac MFH 2007-01-03 18:32:27 +00:00
Derick Rethans
3dcf540547 - Fixed bug #40012 (php_date.c doesnt compile on Netware). 2007-01-03 14:46:23 +00:00
Antony Dovgal
46e5e63f94 MFH 2007-01-03 13:48:54 +00:00
Antony Dovgal
97f0cf1208 fix test 2007-01-03 13:47:11 +00:00
Ilia Alshanetsky
9046eaa260 Use proper length 2007-01-03 04:05:12 +00:00
Ilia Alshanetsky
b1cac0f72c Added filter callback
Unlink temporary file on error
2007-01-03 03:55:07 +00:00
Nuno Lopes
8a806d186e +- Fixed bug #37619 (proc_open() closes stdin on fork() failure). 2007-01-02 15:29:09 +00:00
Ilia Alshanetsky
18548c1041 fixed compiler warnings 2007-01-01 19:40:29 +00:00
Ilia Alshanetsky
cb70d99ee2 fixed compiler warning 2007-01-01 19:35:47 +00:00
Ilia Alshanetsky
2df7386475 Update copyright year
# The rest of the files were already updated by Sebastian
2007-01-01 19:32:10 +00:00
Ilia Alshanetsky
e095b94609 Fixed compiler warnings 2007-01-01 19:24:50 +00:00
Ilia Alshanetsky
5787b56554 Added missing entity functions (MFH from HEAD)
Fixed php_xmlwriter_streams_IO_close() docs
2007-01-01 19:21:48 +00:00
Sebastian Bergmann
4223aa4d5e MFH: Bump year. 2007-01-01 09:36:18 +00:00
Ilia Alshanetsky
6e0af2f4d5 Simplify code and change strchr() to memchr() 2006-12-31 22:47:13 +00:00
Ilia Alshanetsky
ba64553913 Added boundary checks to php_binary deserializer 2006-12-31 22:25:55 +00:00
Marcus Boerger
b8003b8461 - MFH Bugfix: #39996 Wrong PHPDoc comment for SplFileInfo::getType() 2006-12-31 18:20:22 +00:00
Nuno Lopes
169b207532 - Fixed bug #36427 (proc_open() / proc_close() leak handles on windows). 2006-12-31 15:27:13 +00:00
Nuno Lopes
877ee65622 Fixed bug #38542 (proc_get_status() returns wrong PID on windows) 2006-12-31 14:47:17 +00:00
Ilia Alshanetsky
5298554fb6 Added missing resource validation checks 2006-12-30 20:46:47 +00:00
Ilia Alshanetsky
3ca748d49c Added missing resource type checks 2006-12-30 20:21:25 +00:00
Rob Richards
604f18c20d fix bug #39760 (cloning fails on nested SimpleXML-Object)
add test
2006-12-30 15:41:17 +00:00
Ilia Alshanetsky
7f376183f8 C++ comment 2006-12-30 02:28:15 +00:00
Ilia Alshanetsky
78d8808f42 Mark test as being 32bit only 2006-12-30 02:00:51 +00:00
Ilia Alshanetsky
790b0b9edf Fixes test #50 2006-12-30 01:56:18 +00:00
Ilia Alshanetsky
79d524dc1e Fixed bug #39971 (pg_insert/pg_update do not allow now() to be used for
timestamp fields).
2006-12-29 00:34:30 +00:00
Antony Dovgal
e5f95ec3e4 MFH 2006-12-28 20:45:27 +00:00
Nuno Lopes
559ab4b3f9 make this test run a little faster (is currently timeout with valgrind) 2006-12-28 19:52:37 +00:00
Ilia Alshanetsky
794845234e Added buffer length checks 2006-12-28 15:21:21 +00:00
Ilia Alshanetsky
b154f188d1 Simplify code and eliminate strcat() usage 2006-12-28 15:09:29 +00:00
Antony Dovgal
ef9646c867 MFH 2006-12-28 14:26:36 +00:00
Antony Dovgal
fdfa403388 MFH 2006-12-28 14:17:38 +00:00
Nuno Lopes
66e555c66f die("skip this is for PHP < 4.2.3"); 2006-12-27 15:22:28 +00:00
Nuno Lopes
54f3ff34b7 oops: remove uneeded code in the skip condition 2006-12-27 15:17:04 +00:00
Nuno Lopes
d07a46ebab add fr_FR@euro to the setlocale list 2006-12-27 15:11:35 +00:00
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