Commit Graph

18323 Commits

Author SHA1 Message Date
Antony Dovgal
770188279f plug leak in my last patch 2006-06-23 13:52:53 +00:00
Ilia Alshanetsky
a2b61371cd MFB: Change E_ERROR to E_RECOVERABLE_ERROR 2006-06-23 11:40:14 +00:00
Antony Dovgal
d9de0eac85 fix typo and bug #37886 2006-06-23 08:25:58 +00:00
Michael Wallner
4c4d083b52 MFB: use %zu to format size_t 2006-06-23 07:30:40 +00:00
Antony Dovgal
a3d2ed6356 timelib_day_of_week_ex() returns -1 if the year is less than 1753
don't use its return value directly, as accessing array element with negative index may lead to unpredictable result (crash?)
2006-06-22 21:03:48 +00:00
Antony Dovgal
fbbfdafe0a add 4.3.10 dependency to package.xml
add check for PHP version in ./configure
2006-06-22 20:28:51 +00:00
Antony Dovgal
c605235b53 don't try to parse empty string, return false immediately
(fixes off-by-one)
2006-06-22 18:44:18 +00:00
Pierre Joye
011bb5fef6 - initialize the custom values to null (optional arg)
- raise error for REQUEST and unknown mode
2006-06-22 10:58:13 +00:00
Andrei Zmievski
e875205714 Implement user conversion error handler support. Works as normal error
handler, in that it can return false to make the default one take over.
Handler signature is:
  user_handler($direction, $encoding, $char_byte, $offset, $message)

Also removed support for using exceptions in default error handler.
2006-06-21 20:17:21 +00:00
Ilia Alshanetsky
960ac4a6b1 MFB: Fixed compiler warnings. 2006-06-21 15:19:37 +00:00
Antony Dovgal
06ae96342f improve check for stream mode, add tests 2006-06-21 14:38:06 +00:00
Antony Dovgal
49a29c9b94 don't try to read or write from/to a stream if it was open in different mode (leads to segfault in libbz2) 2006-06-21 13:12:00 +00:00
Antony Dovgal
f20ba806f9 fix invalid read with bzopen("","") and prevent filename from being empty (which causes endless loop somewhere is libbz2)
tests will follow
2006-06-21 12:42:50 +00:00
Antony Dovgal
9af1ea3883 fix compile failure with <s>ancient</s> older PHP versions caused by new globals management code 2006-06-21 10:51:55 +00:00
Andrei Zmievski
37972451f8 Implement unicode_set_error_handler() / unicode_restore_error_handler().
The error handler doesn't do anything yet. (vaporware)
2006-06-20 23:00:02 +00:00
Ilia Alshanetsky
e6543cd7dc MFB: Removed pointless callbacks. 2006-06-20 22:42:42 +00:00
Nuno Lopes
b5fda0101c MFB 5.2 2006-06-20 21:58:03 +00:00
Antony Dovgal
016fe711f9 fix tests 2006-06-20 19:49:44 +00:00
Hannes Magnusson
1cb807ab63 Renamed file to bug37864.phpt 2006-06-20 19:31:04 +00:00
Hannes Magnusson
2c87f890bc Test for bug #37864 (file_get_contents() leaks on empty file) 2006-06-20 19:30:19 +00:00
Antony Dovgal
3d0e1456e4 fix test 2006-06-20 19:12:12 +00:00
Antony Dovgal
bc5a9692cb don't leave garbage in tmp dir 2006-06-20 18:55:37 +00:00
Hannes Magnusson
f3334c8df3 add test for file_get_contents() leaking on empty file 2006-06-20 18:46:14 +00:00
Antony Dovgal
438d74568d fix tests 2006-06-20 18:14:12 +00:00
Hannes Magnusson
d9f977e685 Add missing header include 2006-06-20 18:00:11 +00:00
Antony Dovgal
59e16e52de init variables 2006-06-20 13:28:02 +00:00
Antony Dovgal
8fd8789c9a nuke unused variables and init variables when needed 2006-06-20 13:21:10 +00:00
Antony Dovgal
f59302fe60 fix test to work on all platforms 2006-06-20 13:14:20 +00:00
Antony Dovgal
381269b354 fix test 2006-06-20 13:07:44 +00:00
Ilia Alshanetsky
2e1fd9c044 MFB: Added missing ifdef block. 2006-06-19 23:55:11 +00:00
Antony Dovgal
3210771d31 display oci8 version in phpinfo() 2006-06-19 18:21:19 +00:00
Antony Dovgal
635be00596 MFB: fix #37848 (ext/odbc compile failure) 2006-06-19 16:13:31 +00:00
Antony Dovgal
26713e9afe fix #37807 (segmentation fault during SOAP schema import) 2006-06-19 11:43:36 +00:00
Ilia Alshanetsky
4396986fc7 MFB: Added posix_initgroups() function. 2006-06-19 02:19:45 +00:00
Hannes Magnusson
fc53160464 Revert accidental libxml class property declaration.. 2006-06-17 13:15:37 +00:00
Hannes Magnusson
587311d07e Added argument info
Fixed protos
Fixed vim folding
2006-06-17 13:00:21 +00:00
Hannes Magnusson
9b8efc936a Fixed tests 2006-06-17 12:48:20 +00:00
Nuno Lopes
fa23156c42 MFB 2006-06-17 10:31:21 +00:00
Nuno Lopes
e74021e487 MFB: new tests 2006-06-16 22:48:29 +00:00
Rasmus Lerdorf
9e0cedcdd6 Optimize the other string conversion functions here to just create raw
text nodes.
2006-06-15 22:44:55 +00:00
Pierre Joye
da989ab849 - reimport logical_filter.c 2006-06-15 22:20:57 +00:00
Rasmus Lerdorf
c0c6e9944f I don't think the call to xmlNodeSetContentLen() is needed here and
it is causing performance problems because it tries to parse the blob
and create a subtree.  Because we are escaping the string anyway, we
are never going to get a subtree, but the entity parsing that is done
by xmlNodeSetContentLen() is killing performance on large blobs of
text.  On one recent example it took a couple of minutes to parse
whereas if we just create a text node like this and set the contents
to the raw string it is down to milliseconds.  As far as I can tell
all the tests pass with this patch.
2006-06-15 18:03:30 +00:00
Andrei Zmievski
927c5f2eb7 Rename to str_transliterate(). 2006-06-15 17:37:48 +00:00
Hannes Magnusson
284ad23f60 Add array type hinting
Remove unnecessary array checkes
2006-06-15 16:25:12 +00:00
Seiji Masugata
85f42ffe65 changed GINIT definition. 2006-06-15 15:44:05 +00:00
Nuno Lopes
06f93f77f3 MFB: fix bug #37800 2006-06-15 15:35:50 +00:00
Hannes Magnusson
66ad36259b Revert array type hinting 2006-06-15 15:31:39 +00:00
Dmitry Stogov
f6bdedcb5b Fixed ZTS build 2006-06-15 10:03:52 +00:00
Hannes Magnusson
a0c41f3e95 Added arg info
Fixed protos
2006-06-14 21:29:22 +00:00
Hannes Magnusson
a24552497f Fixed test 2006-06-14 19:47:30 +00:00
Nuno Lopes
4ee2074d12 MFB 2006-06-14 18:07:45 +00:00
Nuno Lopes
3b69def3e7 MFB: fix mem leak 2006-06-14 18:04:01 +00:00
Nuno Lopes
6b34ab5816 MFB: remove pcre_dfa_exec.c 2006-06-14 16:28:16 +00:00
Ilia Alshanetsky
8a5127ffb5 MFB: E_ERROR -> E_RECOVERABLE_ERROR 2006-06-14 16:04:47 +00:00
Christian Stocker
aad9541658 Fix a segfault, when an unknown type was given support all known xpath object types 2006-06-14 09:41:28 +00:00
Dmitry Stogov
441d051bcd Fixed compilation (automatic module globals management). 2006-06-14 05:51:16 +00:00
Andrei Zmievski
a093762a6f transliterate() 2006-06-13 23:46:04 +00:00
Nuno Lopes
b5f20ceb48 MFB 2006-06-13 22:05:26 +00:00
Ilia Alshanetsky
b37a784265 MFB: Removed unused variables. 2006-06-13 20:20:03 +00:00
Andrei Zmievski
f2ef84a495 Move GINIT definition above re-definition of iconv. Gah. 2006-06-13 15:57:46 +00:00
Dmitry Stogov
943960c324 Added automatic module globals management 2006-06-13 13:12:20 +00:00
Ilia Alshanetsky
634e59643c MFB: Fixed compiler warning 2006-06-12 23:28:44 +00:00
Hannes Magnusson
d6486b8116 Only display visibility for methods 2006-06-11 23:46:53 +00:00
Ilia Alshanetsky
4ccab9d5ab MFB: Fixed ZTS build 2006-06-11 20:47:55 +00:00
Hannes Magnusson
53d262c04d Nuke unused var 2006-06-11 20:33:29 +00:00
Hannes Magnusson
9f786b9eff Fix typo 2006-06-11 20:11:52 +00:00
Hannes Magnusson
3b36c0e4d8 Added argument info
Fixed protos & vim folding
2006-06-11 19:59:53 +00:00
Ilia Alshanetsky
2863d56d8a MFB: Fully print array() in phpinfo(). 2006-06-11 16:27:41 +00:00
Hannes Magnusson
6ec968a181 Fixed tests in unicode mode 2006-06-11 00:16:04 +00:00
Hannes Magnusson
00f9624a35 Fix test 2006-06-10 23:53:14 +00:00
Hannes Magnusson
e6487d115e Added argument info
Fixed protos
Fixed vim folding
2006-06-10 22:59:40 +00:00
Ilia Alshanetsky
6434512a05 MFB: Improved performance of str_replace() when doing 1 char to 1 char or 1
char to many chars replacement by 30-40%.
2006-06-10 15:51:23 +00:00
Hannes Magnusson
6d1b43df02 Fixed bug #37764
- Created new abstract class, ReflectionFunctionAbstract implementing Reflector
- Moved all methods from ReflectionFunction (except export, invoke & invokeArgs)
- ReflectionFunction now inherits everything from ReflectionFunctionAbstract
    and implements its own export, invoke & invokeArgs methods
- ReflectionMethod now extends ReflectionFunctionAbstract and implements
    its own export, invoke & invokeArgs methods.
- Removed stdClass typehint from ReflectionClass::isInstance
- Removed stdClass typehint from ReflectionClass::set/getValue
2006-06-10 00:28:28 +00:00
Derick Rethans
654b601543 - MF52: Fixed bug #37747 (strtotime segfaults when given "nextyear"). 2006-06-08 16:30:37 +00:00
Marcus Boerger
c100b2837f - Add arginfo (hannes) 2006-06-07 22:39:00 +00:00
Rasmus Lerdorf
2ef05dfd60 Remove useless RINIT/RSHUTDOWN calls 2006-06-07 21:13:33 +00:00
Antony Dovgal
4d7663363b happy birthday commit, yay =)
this patch should fix Unicode LOB problems using callbacks to read LOBs
the patch also includes an optimization: using chunk_size*X buffer should speed up LOB reading a bit

many thanks to Massimo Squillace <msquillace at sogei dot it> for the patch.
2006-06-07 13:36:19 +00:00
Marcus Boerger
7b2b67770e - Add ReflectionClass::getInterfaceNames() 2006-06-07 09:11:58 +00:00
Ilia Alshanetsky
5b40f43faa MFB: Fixed bug #37709 (Possible crash in PDO::errorCode()). 2006-06-07 03:33:39 +00:00
Michael Wallner
ebe449fde1 MFB: only try to fetch stream context options if context is set 2006-06-06 21:38:28 +00:00
Antony Dovgal
4ee32398b7 MFB: plug a leak 2006-06-06 20:12:46 +00:00
Ilia Alshanetsky
0170d0cb59 MFB: Fixed bug #37705 (Semaphore constants not available). 2006-06-05 22:52:27 +00:00
Marcus Boerger
e583cd31e7 - Make this compatible with 5.0/1 again 2006-06-05 12:20:08 +00:00
Antony Dovgal
d72a51c83a add new changelog entries 2006-06-05 10:02:45 +00:00
Antony Dovgal
0ab0cf61db fix OCIPasswordChange() parameters (patch by pholdaway at technocom-wireless dot com)
prevent username. password and new password from being empty
2006-06-05 07:34:00 +00:00
Ilia Alshanetsky
b36fde4b9e MFB: Fixed bug #37671 (MySQLi extension fails to recognize BIT column). 2006-06-04 14:57:06 +00:00
Marcus Boerger
6a113f3b51 - Use engine call to register interfaces (steph) 2006-06-04 10:31:58 +00:00
Marcus Boerger
9b70699617 - Use engine call to register interfaces (steph) 2006-06-04 10:11:48 +00:00
Andrei Zmievski
a871adf6bb MFB 2006-06-03 18:58:40 +00:00
Michael Wallner
231ad17475 - explicit usage of TS macros
# this could have been raised a lot earlier
2006-06-03 11:19:44 +00:00
Antony Dovgal
eac15d9fd5 fix tests in unicode mode 2006-06-02 22:22:43 +00:00
Antony Dovgal
0816690760 fix error messages in Unicode mode 2006-06-02 21:55:26 +00:00
Michael Wallner
be96a46e96 - fix encoding 2006-06-02 20:09:22 +00:00
Michael Wallner
4ce0141713 - new output control code
# scan README.NEW-OUTPUT-API to get a grasp
# tree has been tagged with BEFORE_NEW_OUTPUT_API
#
# TODO:
#  - improve existing output handlers
#  - move zlib.output_compression cruft from SAPI.c to zlib.c
#  - output_encoding handling was ambigious, resp. is undefined yet
#  - more tests
2006-06-02 19:51:43 +00:00
Rob Richards
653007cea0 idness not valid for attribute declarations 2006-06-02 16:15:58 +00:00
Ilia Alshanetsky
c270a8e627 MFB: fixed compiler warning 2006-06-01 22:42:53 +00:00
Michael Wallner
1ba7a6812c MFB: #37630 MySQL extensions should link against thread safe client libs if built with ZTS 2006-06-01 19:15:31 +00:00
Antony Dovgal
8c04c51f9b ignore my previous fix, it was wrong =) 2006-06-01 14:31:02 +00:00
Antony Dovgal
01bc25e4b6 suppress_errors is used only on Win32, no need to look for it on other systems 2006-06-01 14:03:38 +00:00
Antony Dovgal
3e5407b16d nuke unused variable 2006-06-01 13:45:16 +00:00