warnings in pear_exception
| From: | Lukas Smith | Date: | Sun, 07 Nov 2004 23:42:35 +0000 |
| Subject: | warnings in pear_exception | ||
| Groups: | php.pear.core | ||
| Request: | Send a blank email to pear-core+get-1258@lists.php.net to get a copy of this message | ||
Hi,
doing my pear workshop examples I stumbled across a few warnings which I simply silcenced for my talk but that may need some more attention:
RCS file: /repository/pear-core/PEAR/Exception.php,v
retrieving revision 1.17
diff -u -r1.17 Exception.php
--- Exception.php 19 Oct 2004 04:13:33 -0000 1.17
+++ Exception.php 7 Nov 2004 23:41:28 -0000
@@ -226,8 +226,8 @@
$trace = $this->getTraceSafe();
$causes[] = array('class' => get_class($this),
'message' => $this->message,
- 'file' => $trace[0]['file'],
- 'line' => $trace[0]['line']);
+ 'file' => @$trace[0]['file'],
+ 'line' => @$trace[0]['line']);
if ($this->cause instanceof PEAR_Exception) {
$this->cause->getCauseMessage($causes);
}
***** CVS exited normally with code 1 *****
regards,
Lukas