cvs: pecl /spread php_spread.c
| From: | Pierre-Alain Joye | Date: | Sat, 18 Feb 2006 02:49:50 +0000 |
| Subject: | cvs: pecl /spread php_spread.c | ||
| Groups: | php.pecl.cvs | ||
| Request: | Send a blank email to pecl-cvs+get-5203@lists.php.net to get a copy of this message | ||
pajoye Sat Feb 18 02:49:50 2006 UTC
Modified files:
/pecl/spread php_spread.c
Log:
- spaces > tabs
http://cvs.php.net/viewcvs.cgi/pecl/spread/php_spread.c?r1=1.14&r2=1.15&diff_format=u
Index: pecl/spread/php_spread.c
diff -u pecl/spread/php_spread.c:1.14 pecl/spread/php_spread.c:1.15
--- pecl/spread/php_spread.c:1.14 Sat Feb 18 02:46:38 2006
+++ pecl/spread/php_spread.c Sat Feb 18 02:49:50 2006
@@ -16,7 +16,7 @@
| Pierre-A. Joye <pierre@php.net |
+----------------------------------------------------------------------+
*/
-/* $Id: php_spread.c,v 1.14 2006/02/18 02:46:38 pajoye Exp $ */
+/* $Id: php_spread.c,v 1.15 2006/02/18 02:49:50 pajoye Exp $ */
#include "config.h"
@@ -271,7 +271,7 @@
php_info_print_table_start();
{
php_info_print_table_row(2, "Spread", "enabled");
- php_info_print_table_row(2, "CVS Id", "$Id: php_spread.c,v 1.14 2006/02/18
02:46:38 pajoye Exp $");
+ php_info_print_table_row(2, "CVS Id", "$Id: php_spread.c,v 1.15 2006/02/18
02:49:50 pajoye Exp $");
if (SP_version( &mver, &miver, &pver)) {
snprintf(sp_version, 128, "%d.%d.%d", mver, miver, pver);
php_info_print_table_row(2, "Spread version", sp_version);
@@ -601,13 +601,13 @@
efree(tmpgrp);
RETURN_TRUE;
} else if(Z_TYPE_P(group) == IS_ARRAY) {
- char groupnames[100][MAX_GROUP_NAME];
- HashPosition pos;
+ char groupnames[100][MAX_GROUP_NAME];
+ HashPosition pos;
HashTable *tmparr_hash;
- zval *tmparr, **tmp;
- int n = 0, tmparr_cnt;
- int error = 0;
- tmparr = group;
+ zval *tmparr, **tmp;
+ int n = 0, tmparr_cnt;
+ int error = 0;
+ tmparr = group;
tmparr_hash = Z_ARRVAL_P(tmparr);
tmparr_cnt = zend_hash_num_elements(tmparr_hash);
@@ -624,25 +624,25 @@
RETURN_LONG(ILLEGAL_GROUP);
}
- if((sperrno = SP_join(*mbox, Z_STRVAL_PP(tmp))) < 0) {
- error = sperrno;
+ if((sperrno = SP_join(*mbox, Z_STRVAL_PP(tmp))) < 0) {
+ error = sperrno;
break;
- }
+ }
#ifdef ZEND_ENGINE_2
- add_next_index_string(*joined_groups, Z_STRVAL_PP(tmp), 1);
+ add_next_index_string(*joined_groups, Z_STRVAL_PP(tmp), 1);
#endif
}
- if (error) {
+ if (error) {
RETURN_LONG(sperrno);
- } else {
- RETURN_TRUE;
- }
- } else {
+ } else {
+ RETURN_TRUE;
+ }
+ } else {
php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s", "SP_Join: expect groups to an
array of strings or a string");
RETURN_LONG(ILLEGAL_GROUP);
- }
+ }
}
/* }}} */