<email>iliaa@php.net</email>
<active>yes</active>
</lead>
- <date>2006-05-10</date>
+ <date>2006-25-10</date>
<version>
<release>0.11.0</release>
<api>0.11.0</api>
<api>beta</api>
</stability>
<license uri="http://www.php.net/license">PHP</license>
- <notes>- Attention, this release contains BC breaks, the API has been rewamped
+ <notes>* Attention, this release contains BC breaks, the API has been rewamped *
+see the manuals and the examples for more details about the new API
- Fixed possible bug in all filtering functions, input value was modified
- Filters operate now on a copy of the data, allow to safely fetch multiple times the same values
-- add two modes: FILTER_REQUIRE_ARRAY and FILTER_FORCE_ARRAY
-- see the manuals and the examples for more details about the new API
+- Added three flags: FILTER_REQUIRE_ARRAY, FILTER_FORCE_ARRAY and FILTER_NULL_ON_FAILURE
+- Fixed a bug in FILTER_CALLBACK when a non modified value is returned
+- Improve support of _SERVER/_ENV (apache1 only)
</notes>
<contents>
<dir name="/">
<file role="test" name="bug7715.phpt"/>
<file role="test" name="bug8315.phpt"/>
<file role="test" name="bug7586.phpt"/>
+ <file role="test" name="callback_non_modified_var.phpt"/>
</dir>
</dir>
<!-- / -->
--- /dev/null
+--TEST--
+callback function returns non modified value
+--FILE--
+<?php
+function callback($var) {
+ return $var;
+}
+$var = "test";
+var_dump(filter_var($var, FILTER_CALLBACK, array('options'=>'callback')));
+?>
+--EXPECT--
+string(4) "test"