Lines Matching refs:persistent

295 	bool persistent = connection->info->flags & DBA_PERSISTENT;  in dba_close_connection()  local
297 if (!persistent) { in dba_close_connection()
305 zend_string_release_ex(connection->hash, persistent); in dba_close_connection()
506 static zend_always_inline zend_string *php_dba_zend_string_dup_safe(zend_string *s, bool persistent) in php_dba_zend_string_dup_safe() argument
508 if (ZSTR_IS_INTERNED(s) && !persistent) { in php_dba_zend_string_dup_safe()
511 zend_string *duplicated_str = zend_string_init(ZSTR_VAL(s), ZSTR_LEN(s), persistent); in php_dba_zend_string_dup_safe()
512 if (persistent) { in php_dba_zend_string_dup_safe()
520 static void php_dba_open(INTERNAL_FUNCTION_PARAMETERS, bool persistent) in php_dba_open() argument
528 int persistent_flag = persistent ? STREAM_OPEN_PERSISTENT : 0; in php_dba_open()
572 …"dba_%d_%s_%s_%s", persistent, ZSTR_VAL(path), ZSTR_VAL(mode), handler_str ? ZSTR_VAL(handler_str)… in php_dba_open()
575 if (persistent) { in php_dba_open()
783 connection->info = pecalloc(1, sizeof(dba_info), persistent); in php_dba_open()
784 connection->info->path = php_dba_zend_string_dup_safe(path, persistent); in php_dba_open()
789 …>flags = (hptr->flags & ~DBA_LOCK_ALL) | (lock_flag & DBA_LOCK_ALL) | (persistent ? DBA_PERSISTENT… in php_dba_open()
791 if (persistent) { in php_dba_open()
843 zend_string_release_ex(connection->info->path, persistent); in php_dba_open()
844 connection->info->path = php_dba_zend_string_dup_safe(opened_path, persistent); in php_dba_open()
901 …php_stream_free(connection->info->lock.fp, persistent ? PHP_STREAM_FREE_CLOSE_PERSISTENT : PHP_STR… in php_dba_open()
904 …php_stream_free(connection->info->fp, persistent ? PHP_STREAM_FREE_CLOSE_PERSISTENT : PHP_STREAM_F… in php_dba_open()
934 if (persistent) { in php_dba_open()
975 bool persistent = connection->info->flags & DBA_PERSISTENT; in PHP_FUNCTION() local
979 if (persistent) { in PHP_FUNCTION()