Re: cvs: php4 /ext/mcal php_mcal.c
| From: | Andi Gutmans | Date: | Tue, 17 Oct 2000 18:30:32 +0000 |
| Subject: | Re: cvs: php4 /ext/mcal php_mcal.c | ||
| References: | 1 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-2105@lists.php.net to get a copy of this message | ||
We use tabs (usually with tab size 4).
Andi
At 17:31 17/10/00 +0000, Chuck Hagenbuch wrote:
--- Andi Gutmans <andi@zend.com> http://www.zend.com/chagenbu Tue Oct 17 10:31:36 2000 EDTModified files:/php4/ext/mcal php_mcal.cLog: spaces to tabs. do we have a standard on this? Index: php4/ext/mcal/php_mcal.c diff -u php4/ext/mcal/php_mcal.c:1.33 php4/ext/mcal/php_mcal.c:1.34--- php4/ext/mcal/php_mcal.c:1.33 Tue Oct 17 08:52:03 2000 +++ php4/ext/mcal/php_mcal.c Tue Oct 17 10:31:36 2000@@ -223,16 +223,16 @@convert_to_string_ex(calendar); convert_to_string_ex(user); convert_to_string_ex(passwd); - mcal_user = estrndup(Z_STRVAL_PP(user), Z_STRLEN_PP(user)); - mcal_password = estrndup(Z_STRVAL_PP(passwd), Z_STRLEN_PP(passwd)); + mcal_user = estrndup(Z_STRVAL_PP(user), Z_STRLEN_PP(user)); + mcal_password = estrndup(Z_STRVAL_PP(passwd), Z_STRLEN_PP(passwd)); if (myargc == 4) { convert_to_long_ex(options); flags = (*options)->value.lval; } mcal_stream = cal_open(NULL, (*calendar)->value.str.val, 0); - efree(mcal_user); - efree(mcal_password);-+ efree(mcal_user); + efree(mcal_password);+if (!mcal_stream) { php_error(E_WARNING, "Couldn't open stream %s\n", (*calendar)->value.str.val); RETURN_FALSE;-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-cvs-unsubscribe@lists.php.net For additional commands, e-mail: php-cvs-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net