Browse Source

MFB(r-1.109.2.12): A possible fix for bug #26026

PEAR_1_4DEV
Moriyoshi Koizumi 23 years ago
parent
commit
13f16d5690
  1. 2
      ext/standard/dir.c

2
ext/standard/dir.c

@ -401,7 +401,7 @@ PHP_FUNCTION(glob)
#ifndef GLOB_NOMATCH
/* now catch the FreeBSD style of "no matches" */
if (!globbuf.gl_pathc) {
if (!globbuf.gl_pathc || !globbuf.gl_pathv) {
array_init(return_value);
return;
}

Loading…
Cancel
Save