Commit Graph

19936 Commits

Author SHA1 Message Date
Greg Beaver
68b54b4d83 add test to make sure the phar is modified on disk 2007-01-07 18:51:39 +00:00
Marcus Boerger
e947f62b01 - Fix memory issues 2007-01-07 18:35:48 +00:00
Marcus Boerger
0d8ec844d6 - Fix a memleak
- Fix uninitialized mem access
- Fix/improve error handling
- Add INI entry phar.readonly
- Add tests
2007-01-07 16:01:35 +00:00
Hannes Magnusson
8080363f2d Use relative timestamp 2007-01-07 07:59:22 +00:00
Sara Golemon
73cd7bf543 Remaining unicode updates for user filters 2007-01-07 06:29:40 +00:00
Nuno Lopes
f3c60295ed MFB 2007-01-06 20:30:23 +00:00
Nuno Lopes
726dfb0837 MFB: fix build with libming 0.3 2007-01-06 19:26:32 +00:00
Edin Kadribasic
b23813044d Var declarations first (fixes windows build) 2007-01-06 18:58:34 +00:00
Rob Richards
05a532c07a parameter entity argument (pe) should be bool
update test
2007-01-06 18:03:15 +00:00
Hannes Magnusson
71a68db63e MFB: fix skipif 2007-01-06 16:57:42 +00:00
Hannes Magnusson
be32e75cf0 Fix parameter parsing 2007-01-06 15:53:55 +00:00
Dmitry Stogov
d92e5968ee Improved proc_open(). Now on Windows it can run external commands not through CMD.EXE 2007-01-06 09:08:06 +00:00
Georg Richter
a8d9958f70 merged from 5_2 (mysqli_info crash) 2007-01-06 05:50:36 +00:00
Sara Golemon
b42c175d75 Refix posix_ttyname(), test for a working implementation of ttyname_r() -- which BSD doesn't have 2007-01-05 21:30:06 +00:00
Sara Golemon
925cbe4cfe BSD4.1 (possibly others) doesn't support _SC_TTY_NAME_MAX 2007-01-05 20:01:44 +00:00
Andrei Zmievski
2f3a309da1 Clean up set_include_path(). 2007-01-05 18:50:46 +00:00
Sara Golemon
851a151712 Don't bother with conversion when the converter is already UTF8 2007-01-05 17:29:30 +00:00
Hannes Magnusson
1175652bef MFB: Fix tests 2007-01-05 15:28:41 +00:00
Sebastian Bergmann
4e8661438d Fix ZTS issues. 2007-01-05 14:53:30 +00:00
Greg Beaver
94d1d69569 add unset support and test
make sure isset() does not return deleted files
do not store implicit aliases for the phar
2007-01-05 04:45:52 +00:00
Greg Beaver
8b94a6a254 add support for creating new files via array access 2007-01-05 04:27:49 +00:00
Sara Golemon
5d988bb1aa Allow ext/session to use ext/hash's algorithms for generating IDs 2007-01-05 03:57:57 +00:00
Greg Beaver
ef4749b8cf fix creation of phar from scratch, add test case 2007-01-05 03:04:56 +00:00
Sara Golemon
344cda1666 Unicode Updates 2007-01-05 02:07:59 +00:00
Greg Beaver
c7c42d9d47 add test for delete in phar, we needed to check the deleted flag in case the new phar has not been flushed to disk 2007-01-05 02:04:07 +00:00
Greg Beaver
00f516cc99 fix creation of new files within an existing phar, add test 2007-01-05 01:50:26 +00:00
Greg Beaver
68cd2941fd revert changes to test 2007-01-05 01:13:35 +00:00
Greg Beaver
10d45c7668 fixed crc - write test works 2007-01-05 01:13:13 +00:00
Ilia Alshanetsky
b21b4c01c3 MFB: Added missing open_basedir checks 2007-01-04 23:50:19 +00:00
Sara Golemon
21bac192e9 Cleanup ext/session so that I can do a unicode update without going insane. 2007-01-04 22:04:38 +00:00
Greg Beaver
fc2d773388 major reworking of how the phar is re-worked in memory when written to, fix written phar
CRC32 check fails on newly added files in phar, I can't figure out why
2007-01-04 05:32:45 +00:00
Ilia Alshanetsky
0b2e195bd8 MFB: Fixed bug #40009 (http_build_query(array()) returns NULL). 2007-01-03 23:17:17 +00:00
Nuno Lopes
22ad2f9538 MFB 2007-01-03 22:33:33 +00:00
Nuno Lopes
699351d794 fix a bug where PHP would enter in an infinite cycle with chars with ascii value > 127
while at it, remove the lim structure parameter (it wasn't being used)
2007-01-03 22:02:43 +00:00
Antony Dovgal
6dd26de0c9 more magic number fixes 2007-01-03 20:49:27 +00:00
Antony Dovgal
a323972c87 use constant 2007-01-03 20:45:17 +00:00
Nuno Lopes
5861f56dea fix PDO_DRIVER_API 2007-01-03 20:33:09 +00:00
Nuno Lopes
84f62f1133 fix lcov build 2007-01-03 20:27:49 +00:00
Hannes Magnusson
75267ee88d Revert pcrelib version string to 2006 2007-01-03 20:08:08 +00:00
Antony Dovgal
4c923b2753 revert this date to its previous state 2007-01-03 18:32:16 +00:00
Greg Beaver
801f8aaf01 add unlink support 2007-01-03 15:53:29 +00:00
Greg Beaver
d1cc13c9b2 fix all but one of the double-destroyed hashes, and all but one of the unclosed streams 2007-01-03 15:43:07 +00:00
Derick Rethans
44327b0af2 - MFB: Fixed bug #40012 (php_date.c doesnt compile on Netware). 2007-01-03 14:46:52 +00:00
Antony Dovgal
1167da966b and one more.. 2007-01-03 13:48:46 +00:00
Antony Dovgal
4a88a40537 fix test 2007-01-03 13:47:03 +00:00
Ilia Alshanetsky
b597606cfb Use proper length 2007-01-03 04:05:36 +00:00
Ilia Alshanetsky
b648434448 MFB:
Added filter callback
	Unlink temporary file on error
2007-01-03 03:55:29 +00:00
Greg Beaver
3842b6712d correctly generate version string for new phar 2007-01-02 22:57:47 +00:00
Greg Beaver
c88a692b31 add some error handling to phar creation 2007-01-02 21:21:18 +00:00
Greg Beaver
5321858746 add some error handling to phar creation 2007-01-02 21:01:44 +00:00
Marcus Boerger
d013240a01 - Change write macros to inline funcs 2007-01-02 20:25:04 +00:00
Greg Beaver
a90c542188 add new failing test for write support 2007-01-02 20:07:54 +00:00
Greg Beaver
0bbbb73910 fix a number of bugs found in testing new (uncommitted) unit test 2007-01-02 19:59:38 +00:00
Marcus Boerger
63bc59ae0a - TSRM fix 2007-01-02 19:54:09 +00:00
Marcus Boerger
4562ab4d4a - Make Andrei happy - spread some U's 2007-01-02 18:15:22 +00:00
Greg Beaver
1ffb4ba7eb initial support for writeable phars
# we need to refcount everything, I suspect, or we can get segfaults, have not verified this though
# all the write stuff is untested, and Phar::__construct() does not allow creation of a new phar, only appending to and existing one
2007-01-02 18:15:17 +00:00
Nuno Lopes
80122d6b53 MFB 2007-01-02 15:31:58 +00:00
Georg Richter
f9fe766355 fixed parameters for unicode in mysqli_change_user 2007-01-02 05:49:05 +00:00
Greg Beaver
373fb2f82f add doc comments to help sort out what's what 2007-01-02 00:04:30 +00:00
Ilia Alshanetsky
669bc30619 MFB: fixed compiler warnings 2007-01-01 19:42:19 +00:00
Sebastian Bergmann
3717df72ae Bump year. 2007-01-01 09:29:37 +00:00
Ilia Alshanetsky
3e654e4d53 MFB: Simplify code and change strchr() to memchr() 2006-12-31 22:47:27 +00:00
Ilia Alshanetsky
15f1692572 MFB: Added boundary checks to php_binary deserializer 2006-12-31 22:26:06 +00:00
Marcus Boerger
f9a45d2cdb - Bugfix: #39996 Wrong PHPDoc comment for SplFileInfo::getType() 2006-12-31 18:20:03 +00:00
Nuno Lopes
9c754139fb MFB: fix #36427. patch by jdolecek at NetBSD dot org 2006-12-31 15:28:56 +00:00
Nuno Lopes
976c72cce7 MFB: fix PID info on windows 2006-12-31 14:49:06 +00:00
Ilia Alshanetsky
647ad42cf7 MFB: Added missing resource type checks 2006-12-30 20:21:47 +00:00
Rob Richards
4b81343bd3 MFB: fix bug #39760 (cloning fails on nested SimpleXML-Object)
add test
2006-12-30 15:42:24 +00:00
Ilia Alshanetsky
fb392210ee MFB: Mark test as being 32bit only 2006-12-30 02:01:09 +00:00
Ilia Alshanetsky
2120039c2b MFB: Fixes test #50 2006-12-30 01:56:33 +00:00
Ilia Alshanetsky
df5d843c99 MFB: Fixed bug #39971 (pg_insert/pg_update do not allow now() to be used for
timestamp fields).
2006-12-29 00:34:53 +00:00
Antony Dovgal
bef17c425a use strlcpy() 2006-12-28 20:45:20 +00:00
Nuno Lopes
fc9b8ae1a3 MFB 2006-12-28 19:53:30 +00:00
Antony Dovgal
4cf068ac32 include basic_functions.h for php_get_current_user() declaration 2006-12-28 15:44:50 +00:00
Antony Dovgal
3dc31987be it's ptr, not ptrptr 2006-12-28 15:26:20 +00:00
Antony Dovgal
ea14ce7700 use the macro, casting works only with GCC 2006-12-28 15:24:00 +00:00
Ilia Alshanetsky
c42fb0033d MFB: Added buffer length checks 2006-12-28 15:21:32 +00:00
Antony Dovgal
a04c65f97f fix ZTS build 2006-12-28 15:03:19 +00:00
Antony Dovgal
0958fdb46e use strlcat() 2006-12-28 14:26:30 +00:00
Antony Dovgal
d312d33f46 minor improvements 2006-12-28 14:17:09 +00:00
Antony Dovgal
9e41e0fda3 fix tests 2006-12-27 19:22:29 +00:00
Antony Dovgal
5498386f63 fix tests 2006-12-27 19:17:02 +00:00
Antony Dovgal
ec8984ea81 NULL is a special value for number_format() meaning "use default separator" 2006-12-27 19:07:28 +00:00
Antony Dovgal
1857da91b4 fix *scanf() tests 2006-12-27 15:26:13 +00:00
Nuno Lopes
1511cee1a0 MFB 2006-12-27 15:18:15 +00:00
Antony Dovgal
8c44974966 initialize memory with 0's, so we won't get garbage if the statement does not set the var 2006-12-27 10:30:47 +00:00
Antony Dovgal
7b42968afd that should not be there.. 2006-12-27 09:49:06 +00:00
Antony Dovgal
06216846e7 more test improvements by Chris Jones 2006-12-27 09:48:05 +00:00
Andrei Zmievski
6212288bea Unicode support in sscanf() and fscanf(). (Tony, Andrei) 2006-12-26 22:34:05 +00:00
Nuno Lopes
0fe5fabd9b fix build 2006-12-26 22:07:45 +00:00
Ilia Alshanetsky
2dbfe66e4a MFB: safety checks 2006-12-26 17:40:20 +00:00
Ilia Alshanetsky
4386719b07 MFB: Session deserializer protection. 2006-12-26 17:18:28 +00:00
Ilia Alshanetsky
fdf33c7593 MFB: Fixed bug #39878 (CURL doesn't compile on Sun Studio Pro). 2006-12-26 16:57:51 +00:00
Antony Dovgal
79c8816327 fix arguments order (just in the sake of purity) 2006-12-26 12:29:32 +00:00
Pierre Joye
5f83f04cbb - Add better zlib detection 2006-12-26 10:42:25 +00:00
Pierre Joye
1766548574 - #39952 zip ignoring --with-libdir on zlib checks (judas dot
iscariote at gmail dot com)
2006-12-26 09:52:32 +00:00
Dmitry Stogov
b0c3becc4f Code review:
. fixed integer overflow
  . fixed buffer overflow/underflow
  . added more strict IP validation
  . reimplemented float number validation
2006-12-26 09:16:39 +00:00
Antony Dovgal
fa6ec58949 add missing space for \0 2006-12-25 22:40:13 +00:00
Antony Dovgal
3bbf11859c more safe_emalloc() 2006-12-25 22:27:12 +00:00
Antony Dovgal
df52817f48 use safe_emalloc() 2006-12-25 22:12:36 +00:00
Antony Dovgal
f3c0c42b76 use safe_emalloc() 2006-12-25 21:45:09 +00:00
Ilia Alshanetsky
0b145dcb90 MFB: Fixed test for 64bit systems 2006-12-25 21:08:10 +00:00
Antony Dovgal
dbcb473139 use safe_emalloc() 2006-12-25 21:07:32 +00:00
Antony Dovgal
b1813c961b use safe_emalloc() 2006-12-25 20:53:43 +00:00
Antony Dovgal
a30e5b9920 use safe_emalloc() 2006-12-25 20:44:28 +00:00
Antony Dovgal
487ce5744a improve check for overflow 2006-12-25 20:03:20 +00:00
Antony Dovgal
e185df5995 fix CS, add missing folding markers
mark Unicode safe functions as they are
2006-12-25 19:34:00 +00:00
Antony Dovgal
824323149f stream_socket_shutdown() is Unicode safe by definition 2006-12-25 19:19:08 +00:00
Antony Dovgal
184406c016 fix proto 2006-12-25 19:12:39 +00:00
Antony Dovgal
549b48aee3 fix protos 2006-12-25 19:08:33 +00:00
Antony Dovgal
611c688d7c mark most of the ext/posix functions as Unicode safe, for they do not use strings in any way 2006-12-25 19:03:56 +00:00
Antony Dovgal
fa3c084b36 mark all LOB functions as Unicode safe 2006-12-25 18:57:15 +00:00
Ilia Alshanetsky
428f53e5fb MFB: Use %F (ignores locale) for internal representation of floats 2006-12-25 16:49:05 +00:00
Antony Dovgal
03aea51026 fix build 2006-12-25 15:28:44 +00:00
Antony Dovgal
a5ca775c02 fix test 2006-12-25 14:27:44 +00:00
Ilia Alshanetsky
d98c67c89d MFB: Define SENDBUFLEN for older c-client libs 2006-12-25 14:23:38 +00:00
Antony Dovgal
a2d8ca3b53 update credits at request of Gabor 2006-12-25 11:50:23 +00:00
Antony Dovgal
524eb56503 fix tests 2006-12-25 11:16:05 +00:00
Antony Dovgal
ebfd8e9bf2 fix #36392 in Unicode mode 2006-12-25 11:15:08 +00:00
Ilia Alshanetsky
6fa038ae50 MFB: Fixed buffer boundary protection 2006-12-24 22:15:18 +00:00
Ilia Alshanetsky
59b437aff8 MFB: Added empty string checks 2006-12-24 20:50:21 +00:00
Rob Richards
2185635e10 update function signature 2006-12-24 12:42:47 +00:00
Rob Richards
1a6ea57ee9 MFB: 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:35 +00:00
Rob Richards
39c037b734 MFB:
- 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:02:00 +00:00
Ilia Alshanetsky
34dc00fd7a MFB: safety checks 2006-12-23 23:29:41 +00:00
Ilia Alshanetsky
4e17200d59 MFB: Added checks for negative max length and overflow checks for overly
long strings.
2006-12-23 18:50:52 +00:00
Derick Rethans
7b170eea73 - MFB: Fixed bug #39935 (Extensions tidy,mcrypt,mhash,pdo_sqlite ignores
--with-libdir).
2006-12-23 18:00:49 +00:00
Antony Dovgal
083bddc23d fix test 2006-12-23 14:14:14 +00:00
Antony Dovgal
8a3000977c fix tests 2006-12-23 14:10:52 +00:00
Antony Dovgal
96d19377ce use add_ascii_assoc_text() 2006-12-23 14:10:35 +00:00
Antony Dovgal
19060d3a14 use OCI_SUCCESS constant, do not rely on its value 2006-12-23 14:02:38 +00:00
Andrei Zmievski
f88aa1b9ab Unicode support in number_format(). 2006-12-22 21:18:30 +00:00
Nuno Lopes
168185e7a0 fix lcov/genhtml build (yes it is very picky) 2006-12-22 17:02:54 +00:00
Ilia Alshanetsky
2b23e4e205 MFB: Fixed bug #39884 (ReflectionParameter::getClass() throws exception for
type hint self).
2006-12-22 15:38:42 +00:00
Ilia Alshanetsky
2e5e31c6b8 MFB: Fixed bug #36392 (wrong number of decimal digits with %e specifier in
sprintf).
2006-12-22 15:30:18 +00:00
Antony Dovgal
2010ae0c5c more OCI8 tests by Chris Jones 2006-12-22 13:28:46 +00:00
Antony Dovgal
a7e4f10ae2 more ext/date tests by Chris Jones 2006-12-22 13:07:26 +00:00
Ilia Alshanetsky
3eadc2ad58 MFB: Fixed bug #39873 (number_format() breaks with locale & decimal points). 2006-12-22 04:03:35 +00:00
Hannes Magnusson
2d0d09830c Fix tests 2006-12-22 01:20:24 +00:00
Hannes Magnusson
5ed5c10517 Fix ZTS build... 2006-12-22 01:07:28 +00:00
Marcus Boerger
844b3a1b86 - Fix memory allocation/deallocation to match 2006-12-22 00:57:51 +00:00
Marcus Boerger
c130110b05 - Make custom serializing work with zstr (as discussed with andrei) 2006-12-22 00:47:27 +00:00
Andrei Zmievski
20e8a1ac55 Fix serialization test. 2006-12-22 00:37:20 +00:00
Andrei Zmievski
4385fe240e levenshtein() already supported Unicode. 2006-12-21 23:52:22 +00:00
Andrei Zmievski
c745a2b18c Metaphone will work only with binary runtime-encoded strings. 2006-12-21 23:43:52 +00:00
Marcus Boerger
8dd85147c4 - No misleading comments 2006-12-21 23:19:48 +00:00
Marcus Boerger
483aae6646 - Mark a fewthings as unicode ready 2006-12-21 22:56:58 +00:00
Marcus Boerger
8794071b21 - Serialization doesn't work with unicode data 2006-12-21 22:55:07 +00:00
Antony Dovgal
921d845f8d temporary fix for oci_error(), just to make it work
it should be using add_ascii_assoc_text() instead
2006-12-21 22:50:57 +00:00
Antony Dovgal
b87049fd42 added support for CALL statement type (patch by Chris Jones) 2006-12-21 22:08:02 +00:00