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()
507 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
509 if (ZSTR_IS_INTERNED(s) && !persistent) { in php_dba_zend_string_dup_safe()
512 zend_string *duplicated_str = zend_string_init(ZSTR_VAL(s), ZSTR_LEN(s), persistent); in php_dba_zend_string_dup_safe()
513 if (persistent) { in php_dba_zend_string_dup_safe()
521 static void php_dba_open(INTERNAL_FUNCTION_PARAMETERS, bool persistent) in php_dba_open() argument
529 int persistent_flag = persistent ? STREAM_OPEN_PERSISTENT : 0; in php_dba_open()
574 …"dba_%d_%s_%s_%s", persistent, ZSTR_VAL(path), ZSTR_VAL(mode), handler_str ? ZSTR_VAL(handler_str)… in php_dba_open()
577 if (persistent) { in php_dba_open()
591 connection->hash = zend_string_init(resource_key, resource_key_len, persistent); in php_dba_open()
592 if (persistent) { in php_dba_open()
787 connection->info = pecalloc(1, sizeof(dba_info), persistent); in php_dba_open()
788 connection->info->path = php_dba_zend_string_dup_safe(path, persistent); in php_dba_open()
793 …>flags = (hptr->flags & ~DBA_LOCK_ALL) | (lock_flag & DBA_LOCK_ALL) | (persistent ? DBA_PERSISTENT… in php_dba_open()
795 connection->hash = zend_string_init(resource_key, resource_key_len, persistent); in php_dba_open()
796 if (persistent) { in php_dba_open()
849 zend_string_release_ex(connection->info->path, persistent); in php_dba_open()
850 connection->info->path = php_dba_zend_string_dup_safe(opened_path, persistent); in php_dba_open()
907 …php_stream_free(connection->info->lock.fp, persistent ? PHP_STREAM_FREE_CLOSE_PERSISTENT : PHP_STR… in php_dba_open()
910 …php_stream_free(connection->info->fp, persistent ? PHP_STREAM_FREE_CLOSE_PERSISTENT : PHP_STREAM_F… in php_dba_open()
940 if (persistent) { in php_dba_open()
981 bool persistent = connection->info->flags & DBA_PERSISTENT; in PHP_FUNCTION() local
985 if (persistent) { in PHP_FUNCTION()