]> granicus.if.org Git - php/commitdiff
Fix still broken session test. Only return true/false.
authorSara Golemon <pollita@php.net>
Mon, 7 Jul 2014 21:30:28 +0000 (14:30 -0700)
committerSara Golemon <pollita@php.net>
Mon, 7 Jul 2014 21:30:28 +0000 (14:30 -0700)
ext/session/tests/session_set_save_handler_class_017.phpt

index 756dc55d030418e78a0600a71b3513605e5696ea..6f42d7809adec51455ee9179a233ebae3d681022 100644 (file)
@@ -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) {