Commit Graph

83 Commits

Author SHA1 Message Date
Jani Taskinen
438b181d82 CS 2009-07-17 11:49:50 +00:00
Stanislav Malyshev
fa1f24867a fix memory leak 2009-07-17 00:57:46 +00:00
Jani Taskinen
24d327ba2b CS 2009-07-16 12:18:13 +00:00
Stanislav Malyshev
29fb4ab87d fix ini_restore problem 2009-07-16 00:03:44 +00:00
Felipe Pena
8ecf8ede1f - Removed:
- UG(unicode) checks
       - pcre_cache_entry.unicode_mode
- Changed:
       - ZEND_STR_TYPE -> IS_UNICODE
       - convert_to_text -> convert_to_unicode
       - convert_to_text_ex -> convert_to_unicode_ex

(Felipe, Steph)
2009-03-26 20:02:53 +00:00
Sebastian Bergmann
7f4dc8702a Bump copyright year, 3 of 3. 2008-12-31 11:12:40 +00:00
Hannes Magnusson
6eb36e683f Fixed bug#46811 ini_set() doesn't return false on failure 2008-12-09 10:08:15 +00:00
Scott MacVicar
e81f69708a Add zend_ini_string_ex so that the you can differentiate between NULL as a value and its absence, this is important for ini_get. Related to bug #42657 and #43348 2008-07-07 21:47:30 +00:00
Antony Dovgal
500e17c5c1 add zend_atol() and use it instead of zend_atoi() where applicable 2008-03-19 12:40:20 +00:00
Ilia Alshanetsky
12c56d0764 MFB: MFB: Fixed bug #43677 (Inconsistent behaviour of include_path set with
php_value).
2008-03-13 16:01:46 +00:00
Antony Dovgal
810c41e096 fix #43680 (OnUpdateUTF8String problems in PHP 6)
patch by Christopher Jones
2008-01-15 17:10:25 +00:00
Sebastian Bergmann
9b620d50b4 Bump copyright year, 2 of 2. 2007-12-31 07:12:20 +00:00
Ilia Alshanetsky
5d68e6a71b MFB: MFB: Fixed typo in previous patch 2007-10-01 15:00:24 +00:00
Ilia Alshanetsky
8c94e4045d MFB: Refactor code to make fixes for coverity issues #385 and #386 a bit
more obvious
2007-10-01 14:56:34 +00:00
Dmitry Stogov
8146078f7b Improved memory usage by movig constants to read only memory. (Dmitry, Pierre) 2007-09-27 18:28:44 +00:00
Ilia Alshanetsky
98a2c03808 MFB: Fixed coverity issue #470 Unitialized integer value used inside
zend_ini_boolean_displayer_cb
2007-09-27 17:28:53 +00:00
Jani Taskinen
44604d3b8f - Fixed bug #42657 (ini_get() returns incorrect value when default is NULL) 2007-09-27 17:05:01 +00:00
Jani Taskinen
210fdc8237 BC 2007-09-27 16:58:38 +00:00
Jani Taskinen
4fa6949a58 - Nuked unnecessary TSRMLS_FETCH(). 2007-09-27 16:54:55 +00:00
Jani Taskinen
7667ca40b0 MFB52:
---8<---
revision 1.39.2.2.2.10
date: 2007/06/17 14:31:12;  author: iliaa;  state: Exp;  lines: +22 -15

Fixed zend_alter_ini_entry() memory_limit interruption vulnerability.
---8<---

Last part of the missing fix only committed to PHP_5_2 branch.
2007-09-27 16:47:59 +00:00
Jani Taskinen
395c068043 MFB: Missing part of some fix (by Ilia) 2007-09-27 16:28:39 +00:00
Jani Taskinen
b117c94942 ws + cs (more to follow) 2007-09-27 15:52:56 +00:00
Antony Dovgal
285330fd31 add NULL check (coverity issue #385) and fix CS 2007-09-21 14:16:39 +00:00
Jani Taskinen
315eb5f335 - Make the macro into function (for the sake of idiotic ZEND_STRL() macro) 2007-09-07 14:18:06 +00:00
Jani Taskinen
15e5858698 - Fixed the rest of bug #41561 ( @ operator not working ) 2007-09-07 09:31:26 +00:00
Jani Taskinen
3082ec2ef3 - Revert the revert: this is not causing any problems (or we have lot bigger issues), the bug is elsewhere 2007-08-31 07:52:09 +00:00
Antony Dovgal
e02bd08889 revert patch which breaks multithreaded servers 2007-08-23 18:41:55 +00:00
Antony Dovgal
dd8af0654a fix folding, CS and WS 2007-07-11 11:19:58 +00:00
Antony Dovgal
1da8a5eba7 fix #41561 (Values set with php_admin_* in httpd.conf can be overwritten with ini_set()) 2007-06-08 14:47:32 +00:00
Dmitry Stogov
2908322c14 WIN64 support 2007-04-16 09:43:53 +00:00
Antony Dovgal
a298ef786a comment out unused function
need to figure out why and what for it has been added in the first place..
2007-03-06 21:07:52 +00:00
Sebastian Bergmann
3717df72ae Bump year. 2007-01-01 09:29:37 +00:00
Ilia Alshanetsky
2dbfe66e4a MFB: safety checks 2006-12-26 17:40:20 +00:00
Andrei Zmievski
93b9c779f3 Implement OnUpdateUTF8String() handler. It always assumes UTF-8 input,
since we cannot check for UG(unicodE) inside it.
2006-12-22 21:38:12 +00:00
Dmitry Stogov
15aca2c17d Fixed bug #39344 (Unnecessary calls to OnModify callback routine for an extension INI directive). (wharmby at uk dot ibm dot com, Dmitry) 2006-11-08 11:04:42 +00:00
Dmitry Stogov
97fdcf0f3b Fixed php_admin* bypass by ini_restore() 2006-09-06 08:54:57 +00:00
Dmitry Stogov
6f9a24e4e2 Fixed random crashes in ZTS mode becouse of uninitialized EG(modified_ini_directives). 2006-05-19 15:39:36 +00:00
Dmitry Stogov
1985424c4d Optimized request shutdown sequence to iterate only over modified ini directives 2006-05-15 14:53:47 +00:00
Dmitry Stogov
0f1209ab3d Portable unicode string API:
- use the same type (int) for zval.value.usr.len and zval.value.str.len
  - use union "zstr" as char*/UChar* mixture instead of void*
  - Z_UNISTR() and Z_UNILEN() no longer check for Z_TYPE()
  - nuke int32_t from ZE (not finisned)
2006-02-21 20:12:43 +00:00
Dmitry Stogov
2e5d0a3a9d WS 2006-02-21 08:00:39 +00:00
Dmitry Stogov
b424a32610 Preparation for portable string API (use macroses to access zval). 2006-02-20 19:03:43 +00:00
Andi Gutmans
5de7cc3194 - Update copyright notices to 2006 2006-01-04 23:54:12 +00:00
foobar
3cfa505102 MFB: - Fixed bug #34307. We were not calling on_modify handler to set the default
value in case setting the one from .ini file failed. (Andrei)
2005-09-02 21:08:11 +00:00
Andrei Zmievski
b80cb7bd2f Unicode support 2005-08-11 23:35:03 +00:00
foobar
916815b779 Bump up the year 2005-08-03 13:30:58 +00:00
Antony Dovgal
1c68938c60 - allow to use "yes" and "true" with ini_set() and in commandline (through -d flag)
- fix #15854 that was caused by wrong consideration that zend_ini_boolean_displayer_cb()
always recieves converted to "0"/"1" values.
2005-06-22 12:02:47 +00:00
Stanislav Malyshev
5ddf66e004 fix memory corruption if one on the on_modify handlers errors out 2005-04-12 13:06:39 +00:00
Zeev Suraski
1dbc47c43f Clarify logic 2005-03-14 12:53:34 +00:00
Derick Rethans
e612284ea4 - Fixed bug #30630: Added a BSD based strtod function that is
locale-independent.
2004-11-03 23:13:32 +00:00
Wez Furlong
b1667b579b Fix: ini entries for dl()'d modules now work under ZTS
Side-effect: avoid possible crashes when multiple threads load/unload
modules and mess with the global hash table.
2004-07-28 22:56:01 +00:00