pajoye          Wed Oct 25 17:23:45 2006 UTC

  Added files:                 
    /php-src/ext/filter/tests   callback_non_modified_var.phpt 

  Modified files:              
    /php-src/ext/filter package.xml 
  Log:
  - add test for callback with non modified var
  - update changelog
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/filter/package.xml?r1=1.30&r2=1.31&diff_format=u
Index: php-src/ext/filter/package.xml
diff -u php-src/ext/filter/package.xml:1.30 php-src/ext/filter/package.xml:1.31
--- php-src/ext/filter/package.xml:1.30 Thu Oct  5 20:15:02 2006
+++ php-src/ext/filter/package.xml      Wed Oct 25 17:23:45 2006
@@ -31,7 +31,7 @@
     <email>[EMAIL PROTECTED]</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>
@@ -41,11 +41,13 @@
     <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="/">
@@ -100,6 +102,7 @@
         <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>
 <!-- / -->

http://cvs.php.net/viewvc.cgi/php-src/ext/filter/tests/callback_non_modified_var.phpt?view=markup&rev=1.1
Index: php-src/ext/filter/tests/callback_non_modified_var.phpt
+++ php-src/ext/filter/tests/callback_non_modified_var.phpt
--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"

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to