Revision: 3066
Author: olavmrk
Date: Thu Apr 12 01:09:26 2012
Log: Session: Fix missing quotes in assert-statements.
This ensures that the assert-statements gives move informative output
when they fail.
(This patch also changes the file to use utf-8 encoding.)
Thanks to Ryan Panning for providing this patch.
http://code.google.com/p/simplesamlphp/source/detail?r=3066
Modified:
/trunk/lib/SimpleSAML/Session.php
=======================================
--- /trunk/lib/SimpleSAML/Session.php Sun Jan 29 23:35:49 2012
+++ /trunk/lib/SimpleSAML/Session.php Thu Apr 12 01:09:26 2012
@@ -835,8 +835,8 @@
* and the default is 4 hours.
*/
public function setData($type, $id, $data, $timeout = NULL) {
- assert(is_string($type));
- assert(is_string($id));
+ assert('is_string($type)');
+ assert('is_string($id)');
assert('is_int($timeout) || is_null($timeout) || $timeout ===
self::DATA_TIMEOUT_LOGOUT');
/* Clean out old data. */
--
You received this message because you are subscribed to the Google Groups
"simpleSAMLphp commits" group.
To post to this group, send email to simplesamlphp-commits@googlegroups.com.
To unsubscribe from this group, send email to
simplesamlphp-commits+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/simplesamlphp-commits?hl=en.