php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #37373 filter.default changed value
Submitted: 2006-05-08 23:57 UTC Modified: 2006-05-10 00:02 UTC
From: judas dot iscariote at gmail dot com Assigned: dave (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: *
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: judas dot iscariote at gmail dot com
New email:
PHP Version: OS:

 

 [2006-05-08 23:57 UTC] judas dot iscariote at gmail dot com
Description:
------------
filter extension has chenged the default value of default.filter setting as well the Filter Configuration Options.






Reproduce code:
---------------
patch here :

http://www.onfocus.cl/judas/phpdoc/filter-doc.patch

Expected result:
----------------
see patch

Actual result:
--------------
see description.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-05-09 00:02 UTC] dave@php.net
As soon as the newsgroups are working again, I will add the filter changes.
 [2006-05-09 00:34 UTC] dave@php.net
Before I update the documentation, it seems that FILTER_FLAG_ARRAY does nothing, and simply reverts to the existing behaviour of using php_zval_filter_recursive() (which accepts scalar as well as array types). Was this intended?
 [2006-05-09 00:59 UTC] dave@php.net
Nevermind, I see that the default flag value is SCALAR for input_get_args(), so setting ARRAY does something meaningful.
 [2006-05-09 18:29 UTC] pajoye@php.net
I changed it in CVS only. I would recommend to document the new behavior for pecl release and how it would act later in php6.

It is not yet defined which default filter will be used in php6 (likely "string").

About FILTER_FLAG_ARRAY and FILTER_FLAG_SCALAR, input_get will support them as well in the next release.

One question, how do you manage the doc for CVS and the various releases when behaviors change between them?
 [2006-05-10 00:02 UTC] dave@php.net
I added a changelog entry for the two INI settings. As far as what the default might be in PHP 6, I don't think we really need to state that just yet. The extension is still classified as experimental, and the experimental warning already states "... may change without notice in a future release of PHP", which I think is sufficient.

As far as managing the docs for stuff in CVS, we usually just document it as per normal, including version information about the upcoming release. So, for the INI settings changelog, I said "before Filter 0.9.5", even though 0.9.5 hasn't been released yet.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Aug 02 22:00:02 2025 UTC