Bug #12251: Error with zend_hash.c after writing a file
| From: | bjorn dot dunk at caramail dot com | Date: | Thu, 19 Jul 2001 12:46:40 +0000 |
| Subject: | Bug #12251: Error with zend_hash.c after writing a file | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-60287@lists.php.net to get a copy of this message | ||
From: bjorn.dunk@caramail.com
Operating system:
PHP version: 4.0CVS-2001-07-19
PHP Bug Type: Scripting Engine problem
Bug description: Error with zend_hash.c after writing a file
Fatal error: ht=001262d4 is already destroyed in zend_hash.c:852 in Unknown
on line 0
Fatal error: ht=00123ebc is already destroyed in zend_hash.c:519 in Unknown
on line 0
Fatal error: ht=00123ebc is already destroyed in zend_hash.c:519 in Unknown
on line 0
Fatal error: ht=00123ebc is already destroyed in zend_hash.c:519 in Unknown
on line 0
This error appears after writing in a TXT file. But I don't think that the
script I've written can be the source of this bug.
function finsert($Nom_script,$tableau,$texte,$i){
static $fp, $k;
$tableau[$i] .= $texte."\n";
$fp = @fopen ($Nom_script, "w");
if (!$fp) return FALSE;
for ($k=0;$k<count($tableau);$k ++ ) fwrite ($fp,$tableau[$k]);
fclose ($fp);
return TRUE;
}
A french developper Xavier
--
Edit bug report at: http://bugs.php.net/?id=12251&edit=1