helly           Wed Jan 30 23:43:05 2008 UTC

  Modified files:              
    /php-src/main/streams       glob_wrapper.c 
  Log:
  - Get rid of overoptimization
  
http://cvs.php.net/viewvc.cgi/php-src/main/streams/glob_wrapper.c?r1=1.7&r2=1.8&diff_format=u
Index: php-src/main/streams/glob_wrapper.c
diff -u php-src/main/streams/glob_wrapper.c:1.7 
php-src/main/streams/glob_wrapper.c:1.8
--- php-src/main/streams/glob_wrapper.c:1.7     Mon Dec 31 07:12:18 2007
+++ php-src/main/streams/glob_wrapper.c Wed Jan 30 23:43:05 2008
@@ -16,7 +16,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: glob_wrapper.c,v 1.7 2007/12/31 07:12:18 sebastian Exp $ */
+/* $Id: glob_wrapper.c,v 1.8 2008/01/30 23:43:05 helly Exp $ */
 
 #include "php.h"
 #include "php_streams_int.h"
@@ -49,7 +49,7 @@
 PHPAPI char* _php_glob_stream_get_path(php_stream *stream, int copy, int *plen 
STREAMS_DC TSRMLS_DC) /* {{{ */
 {
        glob_s_t *pglob = (glob_s_t *)stream->abstract;
-       
+
        if (pglob && pglob->path) {
                if (plen) {
                        *plen = pglob->path_len;
@@ -251,9 +251,7 @@
        pglob->pattern_len = strlen(pos);
        pglob->pattern = estrndup(pos, pglob->pattern_len);
 
-       if (strcspn(path, "*?[") < (path_len - pglob->pattern_len)) {
-               pglob->flags |= GLOB_APPEND;
-       }
+       pglob->flags |= GLOB_APPEND;
 
        if (pglob->glob.gl_pathc) {
                php_glob_stream_path_split(pglob, pglob->glob.gl_pathv[0], 1, 
&tmp TSRMLS_CC);

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

Reply via email to