com php-src: Fix still broken session test. Only return true/false.: ext/session/tests/session_set_save_handler_class_0 17.phpt
| From: | Sara Golemon | Date: | Mon, 07 Jul 2014 21:30:28 +0000 |
| Subject: | com php-src: Fix still broken session test. Only return true/false.: ext/session/tests/session_set_save_handler_class_0 17.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-79309@lists.php.net to get a copy of this message | ||
Commit: 6e9bc95f6726f4d397d6f78e778f512b92b1b54b
Author: Sara Golemon <pollita@php.net> Mon, 7 Jul 2014 14:30:28 -0700
Parents: 1a43eac259eb851341afc4fbaece700f986a8b06
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=6e9bc95f6726f4d397d6f78e778f512b92b1b54b
Log:
Fix still broken session test. Only return true/false.
Changed paths:
M ext/session/tests/session_set_save_handler_class_017.phpt
Diff:
diff --git a/ext/session/tests/session_set_save_handler_class_017.phpt
b/ext/session/tests/session_set_save_handler_class_017.phpt
index 756dc55..6f42d78 100644
--- a/ext/session/tests/session_set_save_handler_class_017.phpt
+++ b/ext/session/tests/session_set_save_handler_class_017.phpt
@@ -38,7 +38,7 @@ class MySession2 extends SessionHandler {
}
public function write($id, $data) {
- return file_put_contents($this->path . $id, $data);
+ return (bool)file_put_contents($this->path . $id, $data);
}
public function destroy($id) {