On Thu, Jul 19, 2001 at 12:46:40PM -0000, [EMAIL PROTECTED] wrote:
> From: [EMAIL PROTECTED]
> 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;
> }
please try to create a self-contained (=complete) short
testcase for this.
quick question: did you see a "String is not zero-terminated"
message as well, and if yes what exatly did it say?
tc
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]