Commits

Anonymous committed 43df013

Fix PythonSAPIModule.read_cookies().

Comments (0)

Files changed (2)

         return read_data_len
 
     def read_cookies(self, tsrm_ls):
-        cookies = self.tls[tsrm_ls].cookies
+        return addressof(c_char_p(self.tls[tsrm_ls].cookies))
 
     def __init__(self):
         self.tls = {}

php/structures.py

     ('send_headers', CFUNCTYPE(c_int, POINTER(SAPIHeadersStruct), c_void_p)),
     ('send_header', CFUNCTYPE(None, POINTER(SAPIHeaderStruct), c_void_p, c_void_p)),
     ('read_post', CFUNCTYPE(c_int, POINTER(c_char), c_uint, c_void_p)),
-    ('read_cookies', CFUNCTYPE(c_char_p, c_void_p)),
+    ('read_cookies', CFUNCTYPE(c_void_p, c_void_p)),
     ('register_server_variables', CFUNCTYPE(None, POINTER(ZValStruct), c_void_p)),
     ('log_message', CFUNCTYPE(None, c_char_p, c_void_p)),
     ('get_request_time', CFUNCTYPE(c_uint, c_void_p)),