Mantis - Quercus
|
|||||
Viewing Issue Advanced Details | |||||
|
|||||
ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
2550 | minor | have not tried | 03-24-08 15:47 | 05-12-08 17:19 | |
|
|||||
Reporter: | mardala | Platform: | |||
Assigned To: | ferg | OS: | |||
Priority: | normal | OS Version: | |||
Status: | closed | Product Version: | 3.1.3 | ||
Product Build: | Resolution: | fixed | |||
Projection: | none | ||||
ETA: | none | Fixed in Version: | 3.2.0 | ||
|
|||||
Summary: | 0002550: PHP5 singleton example not working the same as Apache module php 5 | ||||
Description: |
given something like this: class Singleton { // object instance private static $instance; private function __construct() {} public static function getInstance() { if (self::$instance === null) self::$instance = new self; return self::$instance; } public function doAction() { ... } } This will not work. Quercus throws an exception (com.caucho.quercus.QuercusException: no matching class self) on "new self;" ... the fix is "new Singleton();" Not a show stopper by anymeans at all, but just a subtle difference than php on apache. |
||||
Steps To Reproduce: | |||||
Additional Information: | I did a quick search of singleton in Quercus and didn't see anything so I hope this is not a dupe. | ||||
Relationships | |||||
Attached Files: |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|