felipe          Thu Jan  8 18:43:12 2009 UTC

  Modified files:              
    /php-src/main/streams       streams.c 
  Log:
  - Fixed bug #47037 (No error when using fopen with emty string)
  Patch by Cristian Rodriguez R.
  
  
http://cvs.php.net/viewvc.cgi/php-src/main/streams/streams.c?r1=1.177&r2=1.178&diff_format=u
Index: php-src/main/streams/streams.c
diff -u php-src/main/streams/streams.c:1.177 
php-src/main/streams/streams.c:1.178
--- php-src/main/streams/streams.c:1.177        Wed Dec 31 11:12:39 2008
+++ php-src/main/streams/streams.c      Thu Jan  8 18:43:12 2009
@@ -19,7 +19,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: streams.c,v 1.177 2008/12/31 11:12:39 sebastian Exp $ */
+/* $Id: streams.c,v 1.178 2009/01/08 18:43:12 felipe Exp $ */
 
 #define _GNU_SOURCE
 #include "php.h"
@@ -2387,6 +2387,7 @@
        }
 
        if (!path || !*path) {
+               php_error_docref(NULL TSRMLS_CC, E_WARNING, "Filename cannot be 
empty");
                return NULL;
        }
 



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

Reply via email to