View Issue Details

IDProjectCategoryView StatusLast Update
414Exception_DefaultHandlerAllpublic2 Jan 2014 10:49
Reportermrosenquist Assigned Totimj  
PriorityhighSeveritycrashReproducibilityalways
Status closedResolutionfixed 
Product Version0.8.2 
Target Version1.0.0Fixed in Version1.0.0 
Summary414: Installed pear path for the throttle file is incorrect
DescriptionWhere the throttle file is created:
[pear_local]$ pwd
/home/mrosenquist/clients/demo-cpd/pear_local
[pear_local]$ tree data/
data
├── data/Exception_DefaultHandler
│   └── data/Exception_DefaultHandler/throttle

Path in DefaultHandler.php before pear install:
    /**
     * The file to use to store metadata about throttling of error report
     * e-mails
     *
     * @var string
     */
    protected static $throttle_file = '@DATA-DIR@/throttle';

After install:
    protected static $throttle_file = '/home/mrosenquist/clients/demo-cpd/pear_local/data/throttle';
TagsNo tags attached.
Attached Files
Exception_DefaultHandle.bug414.patch (407 bytes)   
Index: DefaultHandler.php
===================================================================
--- DefaultHandler.php	(revision 2252)
+++ DefaultHandler.php	(working copy)
@@ -107,7 +107,7 @@
 	 *
 	 * @var string
 	 */
-	protected static $throttle_file = '@DATA-DIR@/throttle';
+	protected static $throttle_file = '@DATA-DIR@/Exception_DefaultHandler/throttle';
 	
 	protected static $output_type = null;
 

Activities

iarmeanu

17 Jul 2012 09:48

reporter   ~458

The error that is generated is:

filemtime() [<a href='function.filemtime'>function.filemtime</a>]: stat failed for ...../pear_local/data/throttle

timj

17 Jul 2012 11:59

administrator   ~459

I agree. Don't know where this went wrong as it definitely worked at some point. Workaround is to "touch" the file called pear_local/data/throttle.
However, I suspect you have some strange PHP option enabled for this to cause a crash, as the filemtime() call is preceded by "@", so it shouldn't trigger a visible error.

timj

17 Jul 2012 12:00

administrator   ~460

Fixed in SVN r2254

Issue History

Date Modified Username Field Change
17 Jul 2012 09:18 mrosenquist New Issue
17 Jul 2012 09:19 mrosenquist File Added: Exception_DefaultHandle.bug414.patch
17 Jul 2012 09:48 iarmeanu Note Added: 458
17 Jul 2012 11:59 timj Note Added: 459
17 Jul 2012 11:59 timj Assigned To => timj
17 Jul 2012 11:59 timj Priority urgent => high
17 Jul 2012 11:59 timj Status new => confirmed
17 Jul 2012 11:59 timj Target Version => 0.8.3a
17 Jul 2012 12:00 timj Note Added: 460
17 Jul 2012 12:00 timj Status confirmed => resolved
17 Jul 2012 12:00 timj Fixed in Version => 0.8.3a
17 Jul 2012 12:00 timj Resolution open => fixed
2 Jan 2014 10:49 timj Fixed in Version 0.8.3a => 1.0.0
2 Jan 2014 10:49 timj Target Version 0.8.3a => 1.0.0
2 Jan 2014 10:49 timj Status resolved => closed