colder Tue Feb 3 12:54:45 2009 UTC
Modified files: (Branch: PHP_5_3)
/php-src/ext/spl/examples dualiterator.inc
/php-src NEWS
Log:
MFH: Fix #47031 (Fix constants in example)
http://cvs.php.net/viewvc.cgi/php-src/ext/spl/examples/dualiterator.inc?r1=1.1.2.5&r2=1.1.2.5.2.1&diff_format=u
Index: php-src/ext/spl/examples/dualiterator.inc
diff -u php-src/ext/spl/examples/dualiterator.inc:1.1.2.5
php-src/ext/spl/examples/dualiterator.inc:1.1.2.5.2.1
--- php-src/ext/spl/examples/dualiterator.inc:1.1.2.5 Sun Dec 10 23:44:49 2006
+++ php-src/ext/spl/examples/dualiterator.inc Tue Feb 3 12:54:44 2009
@@ -23,10 +23,9 @@
const KEY_LHS = 0x10;
const KEY_RHS = 0x20;
- const KEY_ARRAY = 0x30;
const KEY_0 = 0x00;
- const DEFAULT_FLAGS = 0x33;
+ const DEFAULT_FLAGS = 0x13;
private $lhs;
private $rhs;
@@ -39,7 +38,7 @@
* @param flags iteration flags
*/
function __construct(Iterator $lhs, Iterator $rhs,
- $flags = 0x33
/*DualIterator::DEFAULT_FLAGS*/)
+ $flags = 0x13
/*DualIterator::DEFAULT_FLAGS*/)
{
$this->lhs = $lhs;
$this->rhs = $rhs;
@@ -107,20 +106,18 @@
}
}
- /** @return current value depending on KEY_* flags
+ /** @return key value depending on KEY_* flags
*/
function key()
{
switch($this->flags & 0xF0)
{
default:
- case self::CURRENT_ARRAY:
- return array($this->lhs->key(), $this->rhs->key());
- case self::CURRENT_LHS:
+ case self::KEY_LHS:
return $this->lhs->key();
- case self::CURRENT_RHS:
+ case self::KEY_RHS:
return $this->rhs->key();
- case self::CURRENT_0:
+ case self::KEY_0:
return NULL;
}
}
http://cvs.php.net/viewvc.cgi/php-src/NEWS?r1=1.2027.2.547.2.965.2.481&r2=1.2027.2.547.2.965.2.482&diff_format=u
Index: php-src/NEWS
diff -u php-src/NEWS:1.2027.2.547.2.965.2.481
php-src/NEWS:1.2027.2.547.2.965.2.482
--- php-src/NEWS:1.2027.2.547.2.965.2.481 Mon Feb 2 19:23:12 2009
+++ php-src/NEWS Tue Feb 3 12:54:44 2009
@@ -3,6 +3,7 @@
?? ??? 2009, PHP 5.3.0 Beta 2
- Fixed bug #47229 (preg_quote() should escape the '-' char). (Nuno)
- Fixed bug #46347 (parse_ini_file() doesn't support * in keys). (Nuno)
+- Fixed bug #47031 (Fix constants in DualIterator example). (Etienne)
29 Jan 2009, PHP 5.3.0 Beta 1
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php