svn: /pecl/hidef/trunk/ hidef.c
| From: | Gopal Vijayaraghavan | Date: | Thu, 08 Dec 2011 19:46:35 +0000 |
| Subject: | svn: /pecl/hidef/trunk/ hidef.c | ||
| Groups: | php.pecl.cvs | ||
| Request: | Send a blank email to pecl-cvs+get-17339@lists.php.net to get a copy of this message | ||
gopalv Thu, 08 Dec 2011 19:46:35 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=320692
Log:
Error message & Protection against typo-related hair loss
Changed paths:
U pecl/hidef/trunk/hidef.c
Modified: pecl/hidef/trunk/hidef.c
===================================================================
--- pecl/hidef/trunk/hidef.c 2011-12-08 19:34:33 UTC (rev 320691)
+++ pecl/hidef/trunk/hidef.c 2011-12-08 19:46:35 UTC (rev 320692)
@@ -493,7 +493,11 @@
if(new_value != NULL)
{
- hidef_parse_ini(new_value, &ctxt TSRMLS_CC);
+ if(!hidef_parse_ini(new_value, &ctxt TSRMLS_CC))
+ {
+ zend_error(E_WARNING, "hidef cannot read %s", new_value);
+ return FAILURE;
+ }
}
return SUCCESS;
}