php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #12251 Error with zend_hash.c after writing a file
Submitted: 2001-07-19 08:46 UTC Modified: 2002-01-02 13:58 UTC
From: bjorn dot dunk at caramail dot com Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.0CVS-2001-07-19 OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: bjorn dot dunk at caramail dot com
New email:
PHP Version: OS:

 

 [2001-07-19 08:46 UTC] bjorn dot dunk at caramail dot com
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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-12-12 07:05 UTC] yohgaki@php.net
Could you try with 4.1.0? If there is problem, try it on snapshot.
Please provide short & complete script next time.

 [2002-01-02 13:58 UTC] lobbin@php.net
No feedback. Closing.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Sep 22 06:01:28 2024 UTC