[php-transmission-class] r12 committed - Turns out that Exception linking was added in PHP version 5.3.0... and...

0 views
Skip to first unread message

php-transmi...@googlecode.com

unread,
Jul 9, 2010, 10:30:06 PM7/9/10
to php-transmi...@googlegroups.com
Revision: 12
Author: brycied00d
Date: Fri Jul 9 19:29:06 2010
Log: Turns out that Exception linking was added in PHP version 5.3.0... and
I thought I was running 5.1.0. Jolan, this should take care of things.

Fixes issue 3.
http://code.google.com/p/php-transmission-class/source/detail?r=12

Modified:
/trunk/class/TransmissionRPC.class.php

=======================================
--- /trunk/class/TransmissionRPC.class.php Mon Jul 5 20:53:47 2010
+++ /trunk/class/TransmissionRPC.class.php Fri Jul 9 19:29:06 2010
@@ -571,7 +571,11 @@
*/
public function __construct( $message = null, $code = 0, Exception
$previous = null )
{
- parent::__construct( $message, $code, $previous );
+ // PHP version 5.3.0 and above support Exception linking
+ if ( version_compare( PHP_VERSION, '5.3.0', '>=' ) )
+ parent::__construct( $message, $code, $previous );
+ else
+ parent::__construct( $message, $code );
}
}

Reply all
Reply to author
Forward
0 new messages