Issues

ZF-1973: Unexpected results with Zend_Cache_Backend_File when using user-defined error handler

Issue Type:

Bug

Created:

2007-09-20T07:48:59.000+0000

Last Updated:

2008-03-21T16:25:42.000+0000

Status:

Resolved

Fix version(s):

1.5.0 (17/Mar/08)

Reporter:

Romain Lalaut (roro)

Assignee:

Fabien MARTY (fab)

Tags:

Zend_Cache

Related issues:

Attachments:

Description

Line 232 : $fp = @fopen($file, "wb");
And then : if ($fp) { ...

This behaviour is very annoying when using set_error_handler();

PHP Manual : "It is important to remember that the standard PHP error handler is completely bypassed. error_reporting() settings will have no effect and your error handler will be called regardless - however you are still able to read the current value of error_reporting and act appropriately. Of particular note is that this value will be 0 if the statement that caused the error was prepended by the @ error-control operator."