diff options
author | Thies C. Arntzen <thies@php.net> | 2000-01-15 13:39:19 +0000 |
---|---|---|
committer | Thies C. Arntzen <thies@php.net> | 2000-01-15 13:39:19 +0000 |
commit | bf4d20aaa892bc5246a6bf84c41a34bf0a7b2e78 (patch) | |
tree | 3ad8e9224a2262f9017d2ce7c4fc1844616d1694 /ext/sybase_ct/php_sybase_ct.c | |
parent | b42603eee68d8e0f2546052016b0009a3490ac9e (diff) | |
download | php-git-bf4d20aaa892bc5246a6bf84c41a34bf0a7b2e78.tar.gz |
just add a remark. zend_hash_apply can & will cause problems here unless
Diffstat (limited to 'ext/sybase_ct/php_sybase_ct.c')
-rw-r--r-- | ext/sybase_ct/php_sybase_ct.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/sybase_ct/php_sybase_ct.c b/ext/sybase_ct/php_sybase_ct.c index c9d0cbaf01..fdba2fb5ae 100644 --- a/ext/sybase_ct/php_sybase_ct.c +++ b/ext/sybase_ct/php_sybase_ct.c @@ -127,6 +127,12 @@ static void _close_sybase_link(sybase_link *sybase_ptr) CS_INT con_status; sybase_ptr->valid = 0; + + /* + this can cause crashes in the current model. + if the resource gets destroyed via destroy_resource_list() resource_list + will *not* be in a consistent state. thies@digicol.de + */ zend_hash_apply(resource_list,(int (*)(void *))_clean_invalid_results); /* Non-persistent connections will always be connected or we wouldn't |