Code: Select all
<?php
class test{
public function test(){
echo "starting infite loop<br />";
for(;;);
echo "this missage never shows<br />";
}
}
set_time_limit(3);
$var = new test();
echo "finish<br />";
?>starting infinite loop
finish
(Error of timeout)
but what i get is:
starting infite loop
(Error of timeout)
the question is: is there anyway to get the class test working while the main works too?
thank you very much,
olivarra1