ZF-10308: BC Break in Zend_Log_Writer_ZendMonitor
After holiday I upgraded to Zend Framework 1.10.7 and made my first bug and found out that Zend_Log_Writer_ZendMonitor was failing using Zend Server 5.0.2.
After doing some research i found this bug http://framework.zend.com/issues/browse/ZF-10081 that is been fixed for 1.10.7. User who filled out that bug was using Zend Platform (product that has come discontinued).
Zend_Log_Writer_ZendMonitor is ment to use with Zend Server Monitor, says Reference Guide so I did some digging and found that api for monitor has changed from Platform to Server: - http://files.zend.com/help/Zend-Platform/… - http://files.zend.com/help/Zend-Server/…
from: void monitor_custom_event(string $class, string $text[, integer $severe, mixed $user_data]) to: void zend_monitor_custom_event (string $class, string $text, mixed $user_data)
Some how monitor_custom_event-function is still available for Zend Server, but singnature is same as it is for zend_monitor_custom_event.
Both Platform and Server can be supported (I think, but didn't test) doing sniff if zend_monitor_custom_event (I think this isn't available in Zend Platform) is present then using it and if not using monitor_custom_event.
Or __constructor should fail if Zend Platform is used.