felipe          Sat Nov 22 15:44:07 2008 UTC

  Modified files:              
    /php-src/ext/gettext        gettext.c 
  Log:
  - Fixed segfault [only in this branch]
  
http://cvs.php.net/viewvc.cgi/php-src/ext/gettext/gettext.c?r1=1.64&r2=1.65&diff_format=u
Index: php-src/ext/gettext/gettext.c
diff -u php-src/ext/gettext/gettext.c:1.64 php-src/ext/gettext/gettext.c:1.65
--- php-src/ext/gettext/gettext.c:1.64  Mon Nov 17 11:26:20 2008
+++ php-src/ext/gettext/gettext.c       Sat Nov 22 15:44:07 2008
@@ -16,7 +16,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: gettext.c,v 1.64 2008/11/17 11:26:20 felipe Exp $ */
+/* $Id: gettext.c,v 1.65 2008/11/22 15:44:07 felipe Exp $ */
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
@@ -253,7 +253,7 @@
 
        PHP_GETTEXT_DOMAIN_LENGTH_CHECK
 
-       if (!domain_len) {
+       if (!domain_len || !*domain_str) {
                php_error_docref(NULL TSRMLS_CC, E_WARNING, "the first 
parameter must not be empty");
                RETURN_FALSE;
        }



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to