cvs: pear /PECL/vpopmail php_vpopmail.c
| From: | Andrey Hristov | Date: | Fri, 17 Jan 2003 17:13:03 +0000 |
| Subject: | cvs: pear /PECL/vpopmail php_vpopmail.c | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-8346@lists.php.net to get a copy of this message | ||
andrey Fri Jan 17 12:13:03 2003 EDT
Modified files:
/pear/PECL/vpopmail php_vpopmail.c
Log:
Removing checks for the result of array_init. In case the engine cannot
initialize the var it will die instead of returning FAILURE.
Index: pear/PECL/vpopmail/php_vpopmail.c
diff -u pear/PECL/vpopmail/php_vpopmail.c:1.31 pear/PECL/vpopmail/php_vpopmail.c:1.32
--- pear/PECL/vpopmail/php_vpopmail.c:1.31 Sat Jan 4 06:56:09 2003
+++ pear/PECL/vpopmail/php_vpopmail.c Fri Jan 17 12:13:03 2003
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_vpopmail.c,v 1.31 2003/01/04 11:56:09 mj Exp $ */
+/* $Id: php_vpopmail.c,v 1.32 2003/01/17 17:13:03 andrey Exp $ */
/* TODO: move to config.m4 when support for old versions is ready or just
* don't support rather old vpopmail. current version must bail out if
@@ -854,10 +854,7 @@
VPOPMAILG(vpopmail_open) = 1;
- if (array_init(return_value)!=SUCCESS) {
- zend_error(E_ERROR,"unable to create array");
- RETURN_FALSE;
- }
+ array_init(return_value);
talias=valias_select(Z_STRVAL_PP(alias), Z_STRVAL_PP(domain));
while (talias) {
@@ -886,19 +883,14 @@
VPOPMAILG(vpopmail_open) = 1;
- if (array_init(return_value)!=SUCCESS) {
- zend_error(E_ERROR,"unable to create array");
- RETURN_FALSE;
- }
+ array_init(return_value);
talias=valias_select_all(tpath, Z_STRVAL_PP(domain));
while (talias) {
if (strcmp(ppath,tpath)) {
MAKE_STD_ZVAL(tarr);
- if (array_init(tarr)!=SUCCESS) {
- zend_error(E_ERROR,"unable to create array");
- RETURN_FALSE;
- }
+ array_init(tarr);
+
add_assoc_zval(return_value,tpath,tarr);
strcpy(ppath,tpath);
}