Mantis - Quercus
Viewing Issue Advanced Details
2761 major always 07-01-08 03:03 07-04-08 00:09
znagy_k2004  
nam  
normal  
closed 3.1.6  
fixed  
none    
none 3.2.0  
0002761: glob() doesn't work as in mod_php
I think quercus is great idea and software. Thank you for it!
I am trying to run a symfony based project in quercus and I have run into problems. I have found the problems at the glob() function.

Here is a simple testcase:
<?php
  $matches = glob('/usr/share/php/symfony');
  echo '
';
  var_dump($matches);
  echo '
';
?>

the returned value with apache and mod_php is:
array(1) {
  [0]=>
  string(22) "/usr/share/php/symfony"
}

while Quercus returns:
array(1) {
  [0]=>
  string(21) "usr/share/php/symfony"
}

So Quercus doesn't returns a leading slash while mod_php does.
 glob-test.php [^] (391 bytes) 07-01-08 03:03
 0002761_glob.patch [^] (1,388 bytes) 07-02-08 15:22

Notes
(0003236)
znagy_k2004   
07-02-08 15:24   
I've attached the patch file for the resin-3.1.s080611 snapshot version. Apply this patch in the modules directory.

I hope you will find useful this patch!
(0003239)
nam   
07-04-08 00:09   
php/164k