Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0002761 [Quercus] major always 07-01-08 03:03 07-04-08 00:09
Reporter znagy_k2004 View Status public  
Assigned To nam
Priority normal Resolution fixed Platform
Status closed   OS
Projection none   OS Version
ETA none Fixed in Version 3.2.0 Product Version 3.1.6
  Product Build
Summary 0002761: glob() doesn't work as in mod_php
Description 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.
Steps To Reproduce
Additional Information
Attached Files  glob-test.php [^] (391 bytes) 07-01-08 03:03
 0002761_glob.patch [^] (1,388 bytes) 07-02-08 15:22

- Relationships

- 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
 

- Issue History
Date Modified Username Field Change
07-01-08 03:03 znagy_k2004 New Issue
07-01-08 03:03 znagy_k2004 File Added: glob-test.php
07-01-08 03:05 znagy_k2004 Issue Monitored: znagy_k2004
07-02-08 15:22 znagy_k2004 File Added: 0002761_glob.patch
07-02-08 15:24 znagy_k2004 Note Added: 0003236
07-04-08 00:09 nam Status new => assigned
07-04-08 00:09 nam Assigned To  => nam
07-04-08 00:09 nam Status assigned => closed
07-04-08 00:09 nam Note Added: 0003239
07-04-08 00:09 nam Resolution open => fixed
07-04-08 00:09 nam Fixed in Version  => 3.2.0


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
34 total queries executed.
27 unique queries executed.
Powered by Mantis Bugtracker