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 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: -… -…

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.


patch for my local mirror

Assigning to person who broke this first place

Fixed in trunk and 1.11 release branch. The original code was based off of a beta or RC of Zend Server -- and the API was later changed. Additionally, it was modified such that it was no longer compatible with Zend Platform.

I've updated the code to "sniff" for Zend Server, and to operate differently based on whether Zend Server is detected or Zend Platform is used.

The fix will be in 1.11.1.