I am unable to override a function in a child class at my local Ubuntu test LAMP server, but the very same code is resulting in the desired override when uploaded to a webserver.
Original class:
class HandsetDetection {
function HandsetDetection() {
//code I wish to replace
}
}
My class:
class HandsetDetection_RespondHD extends HandsetDetection {
function HandsetDetection() {
//code I wish to use
}
}
Constructors aren't involved.
The version of PHP in use on my local machine is PHP 5.3.3-1ubuntu9.5 with Suhosin-Patch (cli) (built: May 3 2011 00:48:48)
The version of PHP on the webserver where the override is successful is 5.2.17
Can you think why this may be?