I have a following php class.
<?php
class t extends c{
function __construct() {
parent::__construct();
}
}
class c extends d{
function __construct() {
parent::__construct();
}
}
class d {
function __construct() {
echo "worked";
}
}
new t();
?>
The above class is working fine in my local machine where php version is (PHP Version 5.5.9-1ubuntu4.2)
but its not working in cloud server where php version is (PHP Version 5.4.26 and linux hosting) I have another server where php version is (PHP Version 5.3.28 amazone cloud server) Here the above code is also not working.
Any idea why its not working in above two php version(5.4.26 and 5.3.28)?