Commit Graph

75 Commits

Author SHA1 Message Date
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
Andi Gutmans
67502a2e7d - modifyable -> modifiable 2004-04-12 12:22:26 +00:00
foobar
ccfc46b0aa - Happy new year and PHP 5 for rest of the files too..
# Should the LICENSE and Zend/LICENSE dates be updated too?
2004-01-08 17:33:29 +00:00
James Cox
f68c7ff249 updating license information in the headers. 2003-06-10 20:04:29 +00:00
Ilia Alshanetsky
d53b487633 MFHZE2 2003-03-24 14:53:30 +00:00
foobar
3c9155e0cb Renamed OnUpdateInt -> OnUpdateLong to prevent further misunderstandings.
# Intentionally left out any 'alias' for it, this way 3rd party extension
# maintainers will really NOTICE the change.
2003-03-07 05:15:28 +00:00
foobar
333406bdc2 - Added some missing CVS $Id$ tags, headers and footers. 2003-02-01 01:49:15 +00:00
Zeev Suraski
424e98f4e2 Implemented compatibility mode
To enable - zend2.implicit_clone = on in php.ini or using ini_set()
2003-01-12 12:39:06 +00:00
Sebastian Bergmann
2c5d4b8c23 Bump year. 2002-12-31 15:59:15 +00:00