cvs: php-src(PHP_5_3) /ext/ereg ereg.c

From: Date: Sun, 20 Apr 2008 01:44:16 +0000
Subject: cvs: php-src(PHP_5_3) /ext/ereg ereg.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-49685@lists.php.net to get a copy of this message
felipe Sun Apr 20 01:44:16 2008 UTC Modified files: (Branch: PHP_5_3) /php-src/ext/ereg ereg.c Log: - Better error message http://cvs.php.net/viewvc.cgi/php-src/ext/ereg/ereg.c?r1=1.90.2.4&r2=1.90.2.5&diff_format=u Index: php-src/ext/ereg/ereg.c diff -u php-src/ext/ereg/ereg.c:1.90.2.4 php-src/ext/ereg/ereg.c:1.90.2.5 --- php-src/ext/ereg/ereg.c:1.90.2.4 Wed Apr 9 13:51:09 2008 +++ php-src/ext/ereg/ereg.c Sun Apr 20 01:44:16 2008 @@ -17,7 +17,7 @@ | Jaakko Hyvätti <jaakko@hyvatti.iki.fi> | +----------------------------------------------------------------------+ */ -/* $Id: ereg.c,v 1.90.2.4 2008/04/09 13:51:09 felipe Exp $ */ +/* $Id: ereg.c,v 1.90.2.5 2008/04/20 01:44:16 felipe Exp $ */ #include <stdio.h> #include <ctype.h> @@ -645,11 +645,7 @@ /* No more matches */ regfree(&re); - if (icase) { - php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid Regular Expression to spliti()"); - } else { - php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid Regular Expression to split()"); - } + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid Regular Expression"); zend_hash_destroy(Z_ARRVAL_P(return_value)); efree(Z_ARRVAL_P(return_value));

« previous php.cvs (#49685) next »