[PHP-CVS] svn: /SVNROOT/ commit-email.php

2011-06-28 Thread Philip Olson
philip   Tue, 28 Jun 2011 06:12:33 +

Revision: http://svn.php.net/viewvc?view=revisionrevision=312547

Log:
Added the cia.vc service using a simple email hook

Changed paths:
U   SVNROOT/commit-email.php

Modified: SVNROOT/commit-email.php
===
--- SVNROOT/commit-email.php2011-06-28 05:42:04 UTC (rev 312546)
+++ SVNROOT/commit-email.php2011-06-28 06:12:33 UTC (rev 312547)
@@ -109,7 +109,7 @@
 '|^SVNROOT|' = array('php-cvs@lists.php.net'),
 );
 $fallback_addresses = array('php-cvs@lists.php.net');
-$always_addresses = array('gwy...@php.net');
+$always_addresses = array('gwy...@php.net', 'ping+twvhw...@cia.vc');

 // 
-
 // Build list of e-mail addresses and parent changed path

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

[PHP-CVS] svn: /php/php-src/ branches/PHP_5_4/ext/sockets/sockets.c trunk/ext/sockets/sockets.c

2011-06-28 Thread Gustavo André dos Santos Lopes
cataphract   Tue, 28 Jun 2011 10:27:29 +

Revision: http://svn.php.net/viewvc?view=revisionrevision=312558

Log:
- Fixed socket_import_stream returning NULL on some errors and FALSE on others

Changed paths:
U   php/php-src/branches/PHP_5_4/ext/sockets/sockets.c
U   php/php-src/trunk/ext/sockets/sockets.c

Modified: php/php-src/branches/PHP_5_4/ext/sockets/sockets.c
===
--- php/php-src/branches/PHP_5_4/ext/sockets/sockets.c  2011-06-28 09:38:55 UTC 
(rev 312557)
+++ php/php-src/branches/PHP_5_4/ext/sockets/sockets.c  2011-06-28 10:27:29 UTC 
(rev 312558)
@@ -2520,6 +2520,7 @@
 error:
if (retsock != NULL)
efree(retsock);
+   RETURN_FALSE;
 }
 /* }}} */


Modified: php/php-src/trunk/ext/sockets/sockets.c
===
--- php/php-src/trunk/ext/sockets/sockets.c 2011-06-28 09:38:55 UTC (rev 
312557)
+++ php/php-src/trunk/ext/sockets/sockets.c 2011-06-28 10:27:29 UTC (rev 
312558)
@@ -2520,6 +2520,7 @@
 error:
if (retsock != NULL)
efree(retsock);
+   RETURN_FALSE;
 }
 /* }}} */


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

[PHP-CVS] svn: /php/php-src/ branches/PHP_5_3/NEWS branches/PHP_5_3/ext/spl/spl_iterators.c branches/PHP_5_3/ext/spl/tests/bug54971.phpt branches/PHP_5_4/ext/spl/spl_iterators.c branches/PHP_5_4/ext/s

2011-06-28 Thread Pierrick Charron
pierrick Tue, 28 Jun 2011 11:09:06 +

Revision: http://svn.php.net/viewvc?view=revisionrevision=312564

Log:
Fixed bug #54971 (Wrong result when using iterator_to_array with use_keys on 
true)

Bug: http://bugs.php.net/54971 (unknown) 
  
Changed paths:
U   php/php-src/branches/PHP_5_3/NEWS
U   php/php-src/branches/PHP_5_3/ext/spl/spl_iterators.c
A   php/php-src/branches/PHP_5_3/ext/spl/tests/bug54971.phpt
U   php/php-src/branches/PHP_5_4/ext/spl/spl_iterators.c
A   php/php-src/branches/PHP_5_4/ext/spl/tests/bug54971.phpt
U   php/php-src/trunk/ext/spl/spl_iterators.c
A   php/php-src/trunk/ext/spl/tests/bug54971.phpt

Modified: php/php-src/branches/PHP_5_3/NEWS
===
--- php/php-src/branches/PHP_5_3/NEWS   2011-06-28 11:03:16 UTC (rev 312563)
+++ php/php-src/branches/PHP_5_3/NEWS   2011-06-28 11:09:06 UTC (rev 312564)
@@ -14,6 +14,9 @@
 - PDO ODBC driver:
   . Fixed data type usage in 64bit. (leocsilva at gmail dot com)

+- SPL extension:
+  . Fixed bug #54971 (Wrong result when using iterator_to_array with use_keys
+on true). (Pierrick)

 16 Jun 2011, PHP 5.3.7 RC1
 - Upgraded bundled SQLite to version 3.7.6.3. (Scott)

Modified: php/php-src/branches/PHP_5_3/ext/spl/spl_iterators.c
===
--- php/php-src/branches/PHP_5_3/ext/spl/spl_iterators.c2011-06-28 
11:03:16 UTC (rev 312563)
+++ php/php-src/branches/PHP_5_3/ext/spl/spl_iterators.c2011-06-28 
11:09:06 UTC (rev 312564)
@@ -3306,6 +3306,7 @@
goto done;
}

+   iter-index = 0;
if (iter-funcs-rewind) {
iter-funcs-rewind(iter TSRMLS_CC);
if (EG(exception)) {
@@ -3320,6 +3321,7 @@
if (apply_func(iter, puser TSRMLS_CC) == ZEND_HASH_APPLY_STOP 
|| EG(exception)) {
goto done;
}
+   iter-index++;
iter-funcs-move_forward(iter TSRMLS_CC);
if (EG(exception)) {
goto done;

Added: php/php-src/branches/PHP_5_3/ext/spl/tests/bug54971.phpt
===
--- php/php-src/branches/PHP_5_3/ext/spl/tests/bug54971.phpt
(rev 0)
+++ php/php-src/branches/PHP_5_3/ext/spl/tests/bug54971.phpt2011-06-28 
11:09:06 UTC (rev 312564)
@@ -0,0 +1,45 @@
+--TEST--
+Bug #54971 (Wrong result when using iterator_to_array with use_keys on true)
+--FILE--
+?php
+
+$source = XML
+root
+nodeval1/node
+nodeval2/node
+/root
+XML;
+
+
+$doc = new DOMDocument();
+$doc-loadXML($source);
+
+$xpath = new DOMXPath($doc);
+$items = $xpath-query('//node');
+
+print_r(iterator_to_array($items, false));
+print_r(iterator_to_array($items, true));
+?
+--EXPECT--
+Array
+(
+[0] = DOMElement Object
+(
+)
+
+[1] = DOMElement Object
+(
+)
+
+)
+Array
+(
+[0] = DOMElement Object
+(
+)
+
+[1] = DOMElement Object
+(
+)
+
+)

Modified: php/php-src/branches/PHP_5_4/ext/spl/spl_iterators.c
===
--- php/php-src/branches/PHP_5_4/ext/spl/spl_iterators.c2011-06-28 
11:03:16 UTC (rev 312563)
+++ php/php-src/branches/PHP_5_4/ext/spl/spl_iterators.c2011-06-28 
11:09:06 UTC (rev 312564)
@@ -3446,6 +3446,7 @@
goto done;
}

+   iter-index = 0;
if (iter-funcs-rewind) {
iter-funcs-rewind(iter TSRMLS_CC);
if (EG(exception)) {
@@ -3460,6 +3461,7 @@
if (apply_func(iter, puser TSRMLS_CC) == ZEND_HASH_APPLY_STOP 
|| EG(exception)) {
goto done;
}
+   iter-index++;
iter-funcs-move_forward(iter TSRMLS_CC);
if (EG(exception)) {
goto done;

Added: php/php-src/branches/PHP_5_4/ext/spl/tests/bug54971.phpt
===
--- php/php-src/branches/PHP_5_4/ext/spl/tests/bug54971.phpt
(rev 0)
+++ php/php-src/branches/PHP_5_4/ext/spl/tests/bug54971.phpt2011-06-28 
11:09:06 UTC (rev 312564)
@@ -0,0 +1,45 @@
+--TEST--
+Bug #54971 (Wrong result when using iterator_to_array with use_keys on true)
+--FILE--
+?php
+
+$source = XML
+root
+nodeval1/node
+nodeval2/node
+/root
+XML;
+
+
+$doc = new DOMDocument();
+$doc-loadXML($source);
+
+$xpath = new DOMXPath($doc);
+$items = $xpath-query('//node');
+
+print_r(iterator_to_array($items, false));
+print_r(iterator_to_array($items, true));
+?
+--EXPECT--
+Array
+(
+[0] = DOMElement Object
+(
+)
+
+[1] = DOMElement Object
+(
+)
+
+)
+Array
+(
+[0] = DOMElement Object
+(
+)
+
+[1] = DOMElement Object
+(
+)
+
+)

Modified: 

[PHP-CVS] svn: /php/php-src/ branches/PHP_5_4/NEWS trunk/NEWS

2011-06-28 Thread Christopher Jones
sixd Tue, 28 Jun 2011 18:58:07 +

Revision: http://svn.php.net/viewvc?view=revisionrevision=312581

Log:
clarify sqlite deprecation

Changed paths:
U   php/php-src/branches/PHP_5_4/NEWS
U   php/php-src/trunk/NEWS

Modified: php/php-src/branches/PHP_5_4/NEWS
===
--- php/php-src/branches/PHP_5_4/NEWS   2011-06-28 18:55:37 UTC (rev 312580)
+++ php/php-src/branches/PHP_5_4/NEWS   2011-06-28 18:58:07 UTC (rev 312581)
@@ -20,7 +20,8 @@
   . y2k_compliance ini option. (Kalle)

 - Moved extensions to PECL: (Johannes)
-  . ext/sqlite.
+  . ext/sqlite.  (Note: the ext/sqlite3 and ext/pdo_sqlite extensions are
+not affected)

 - Changed $_SERVER['REQUEST_TIME'] to include microsecond precision. (Ilia)
 - Changed default value of default_charset php.ini option from ISO-8859-1 to

Modified: php/php-src/trunk/NEWS
===
--- php/php-src/trunk/NEWS  2011-06-28 18:55:37 UTC (rev 312580)
+++ php/php-src/trunk/NEWS  2011-06-28 18:58:07 UTC (rev 312581)
@@ -19,7 +19,8 @@
   . y2k_compliance ini option. (Kalle)

 - Moved extensions to PECL: (Johannes)
-  . ext/sqlite.
+  . ext/sqlite.  (Note: the ext/sqlite3 and ext/pdo_sqlite extensions are
+not affected)

 - Changed $_SERVER['REQUEST_TIME'] to include microsecond precision. (Ilia)
 - Changed default value of default_charset php.ini option from ISO-8859-1 to

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