Custom Query (272 matches)
Results (19 - 21 of 272)
| Ticket | Resolution | Summary | Owner | Reporter |
|---|---|---|---|---|
| #194 | worksforme | PHP 5.3 class type hint must be null error with namespaces | moo | tom@… |
| Description |
Using xcache from svn trunk, once any class that uses class type hints in a method definition with null as the default value has been cached, php engine will throw a fatal error complaining that the default value is *not* null, if you "use" the same namespace as the one you are working in. trivial example: <?php namespace My::NS; use My::NS; class A { public function test(A $obj=null) { var_dump($obj); } } actual result: "Fatal error: Default value for parameters with a class type hint can only be NULL in ..." expected: no errors |
|||
| #238 | worksforme | if and else execute together! (class extends) | moo | ehsanch |
| Description |
i create a simple php script : <?php
class newclass {
public function newfunc() {
echo 'class exist';
}
}
if (true) {
class myclass1 extends newclass {}
}
else {
class myclass2 extends newclass {}
}
$test = new myclass2;
$test->newfunc();
[root@server]# php test.php Fatal error: Class 'myclass2' not found in test.php on line 15 [root@server]# php-cgi test.php X-Powered-By: PHP/5.2.6 Content-type: text/html class exist |
|||
| #239 | worksforme | Internal Server error on admin page | moo | suli3 |
| Description |
see at thread http://forum.lighttpd.net/topic/100431#new |
|||

