Christoph M. Becker
23e721fc93
Fix #73054 : default option ignored when object passed to int filter
...
If an object that can't be converted to string is validated, we must not
bail out early, but rather check for a requested default value.
2016-09-09 14:30:24 +02:00
Levi Morrison
cb91a51b00
Partially fix bug #67167 - Wrong return value...
...
...from FILTER_VALIDATE_BOOLEAN, FILTER_NULL_ON_FAILURE
The remainer of the fix would require the filter functions to only
convert to string when it makes sense for that particular filter.
(cherry picked from commit 432dc527ad
)
2016-09-09 12:45:46 +02:00
Lior Kaplan
49493a2dcf
Happy new year (Update copyright to 2016)
2016-01-01 19:21:47 +02:00
Xinchen Hui
0579e8278d
bump year
2015-01-15 23:26:37 +08:00
Kévin Dunglas
8439eb6277
Minor: typo fix in filter_var comment
2014-11-23 15:18:47 -08:00
Xinchen Hui
c081ce628f
Bump year
2014-01-03 11:08:10 +08:00
Stanislav Malyshev
476924ec3d
Merge branch 'PHP-5.4' into PHP-5.5
...
* PHP-5.4:
Update news for FILTER_SANITIZE_FULL_SPECIAL_CHARS fix
Wrong value for FILTER_SANITIZE_FULL_SPECIAL_CHARS in REGISTER_LONG_CONSTANT
2013-07-21 22:31:19 -07:00
Andrey
da3886de6d
Wrong value for FILTER_SANITIZE_FULL_SPECIAL_CHARS in REGISTER_LONG_CONSTANT
2013-07-21 22:25:21 -07:00
Martin Jansen
2f33443883
ext/filter support for validating MAC addresses.
2013-02-03 13:23:53 +01:00
Xinchen Hui
a666285bc2
Happy New Year
2013-01-01 16:37:09 +08:00
Xinchen Hui
0a7395e009
Happy New Year
2013-01-01 16:28:54 +08:00
David Soria Parra
c918ca57a7
Merge branch 'PHP-5.3' into PHP-5.4
...
* PHP-5.3:
Replace $Revision$ with $Id$ in keyword expansion enable files
Enable $Id$ expansion for files with the $Revision$ keyword
Conflicts:
ext/mysqlnd/mysqlnd.h
2012-03-20 17:58:58 +01:00
David Soria Parra
f7b10abae9
Replace $Revision$ with $Id$ in keyword expansion enable files
2012-03-20 17:53:47 +01:00
Felipe Pena
e4ca0ed09f
- Year++
2012-01-01 13:15:04 +00:00
Felipe Pena
4e19825281
- Year++
2012-01-01 13:15:04 +00:00
Felipe Pena
23e438594d
- Make usage of new PHP_FE_END macro
2011-07-25 11:42:53 +00:00
Felipe Pena
4b30846b50
- Make usage of new PHP_FE_END macro
2011-07-25 11:35:02 +00:00
Pierre Joye
9805e1674a
- remove magic quotes support, functions are kept (see the NEWS entry for the details) for BC reasons but do not allow to set enable MQ
2011-07-22 11:25:30 +00:00
Ilia Alshanetsky
118695a4ea
#doc
...
Added 3rd parameter to filter_var_array() and filter_input_array()
functions that allows disabling addition of empty elements
2011-04-28 12:32:47 +00:00
Ilia Alshanetsky
fc7ee596f6
#doc
...
Added 3rd parameter to filter_var_array() and filter_input_array()
functions that allows disabling addition of empty elements
2011-04-28 12:32:47 +00:00
Felipe Pena
927bf09c29
- Year++
2011-01-01 02:19:59 +00:00
Felipe Pena
0203cc3d44
- Year++
2011-01-01 02:17:06 +00:00
Ilia Alshanetsky
a68864969e
Fixed bug #52209 (INPUT_ENV returns NULL for set variables (CLI)).
2010-12-22 16:18:59 +00:00
Ilia Alshanetsky
1d7294f73c
Fixed bug #52209 (INPUT_ENV returns NULL for set variables (CLI)).
2010-12-22 16:18:59 +00:00
Pierre Joye
3bdac76cf1
- fix ts build (zend_list_insert change)
2010-09-17 10:51:53 +00:00
Dmitry Stogov
c0cf4ef129
Removed useless copying
2010-08-26 12:21:06 +00:00
Kalle Sommer Nielsen
febee11285
Removed register_globals
2010-04-21 01:27:22 +00:00
Adam Harvey
b47136d332
Added explanatory comments to filter_input and filter_input_array to document
...
why some code that looks intuitively wrong is actually correct. Related to
bug #51344 (FILTER_NULL_ON_FAILURE flag automatically set in filter_input()
functions).
2010-04-20 04:31:11 +00:00
Adam Harvey
afa1045305
Added explanatory comments to filter_input and filter_input_array to document
...
why some code that looks intuitively wrong is actually correct. Related to
bug #51344 (FILTER_NULL_ON_FAILURE flag automatically set in filter_input()
functions).
2010-04-20 04:31:11 +00:00
Kalle Sommer Nielsen
a5304b138f
Removed register_long_arrays ini option (and $HTTP_SESSION_VARS from ext/session)
2010-04-15 16:36:08 +00:00
Rasmus Lerdorf
a5b5743d71
full_special_chars filter from trunk - approved by johannes
2010-03-31 22:59:09 +00:00
Rasmus Lerdorf
4d75c64415
Added the full htmlspecialchars() functionality which includes utf-8
...
validation as a default filter.
2010-03-31 21:50:36 +00:00
Ilia Alshanetsky
299c4c43ed
Fixed bug #50632 (filter_input() does not return default value if the variable does not exist)
2010-01-03 22:58:37 +00:00
Sebastian Bergmann
9ba1e81665
sed -i "s#1997-2009#1997-2010#g" **/*.c **/*.h **/*.php
2010-01-03 09:23:27 +00:00
Felipe Pena
a94558c855
- Added MAKE_COPY_ZVAL(ppzv, pzv) macro
2009-12-08 01:57:37 +00:00
Ilia Alshanetsky
2be6de0a50
Added FILTER_FLAG_STRIP_BACKTICK option to the filter extension.
2009-12-07 13:43:44 +00:00
Pierre Joye
3dd3cbb662
- fix #49274 , filter_var does not accept object without a toString implementation
2009-09-05 17:35:26 +00:00
Stanislav Malyshev
94b7a00760
fix for #47930
2009-04-28 21:30:23 +00:00
Antony Dovgal
2627e08886
MFH: revert wrong fix for bug #47930
2009-04-14 14:18:35 +00:00
Stanislav Malyshev
d62333c7d6
fix #47930
2009-04-13 19:21:28 +00:00
Sebastian Bergmann
08659c2dcd
MFH: Bump copyright year, 3 of 3.
2008-12-31 11:15:49 +00:00
Scott MacVicar
e5e17578bf
MFB: Back out bugfix for #42718 as this broke magic_quotes_gpc
2008-12-06 17:25:35 +00:00
Felipe Pena
fc2fb50d09
- MFH: Added 'static' into ZEND_BEGIN_ARG_INFO_EX macro
2008-11-17 11:28:01 +00:00
Arnaud Le Blanc
517e365ce1
MFH: Fixed bug #42718 (FILTER_UNSAFE_RAW not applied when configured as
...
default filter)
2008-11-02 22:22:43 +00:00
Felipe Pena
7a37fa2d6b
- Revert ZEND_BEGIN_ARG_INFO change
2008-11-02 21:19:39 +00:00
Felipe Pena
df10005563
- MFH: Added 'static' into ZEND_BEGIN_ARG_INFO_EX macro
2008-10-24 14:35:40 +00:00
Felipe Pena
ff83deb66d
- Added arginfo
2008-06-24 12:09:31 +00:00
Felipe Pena
84a8bb038a
MFH: New way for check void parameters
2008-03-10 22:15:36 +00:00
Felipe Pena
6a128d5614
MFB: Fixed segfault in filter extension when using callbacks.
2008-02-24 18:41:08 +00:00
Jani Taskinen
d2b77f5cf3
MFH:- Fixed bug in handling arrays which caused the original array being modified too.
2008-02-06 19:06:58 +00:00