[PHP-DEV] Bug #10667 Updated: xmltree function cause memory leak

2001-12-01 Thread mfischer

ID: 10667
Updated by: mfischer
Reported By: [EMAIL PROTECTED]
Old Status: Assigned
Status: Closed
Bug Type: DOM XML related
Operating System: Linux 2.2.16
PHP Version: 4.0.5
Assigned To: mfischer
New Comment:

Should be fixed in CVS. Closing.

Previous Comments:


[2001-11-30 20:46:27] [EMAIL PROTECTED]

Update: CDATA should already work with current CVS; some minor fixes are coming.

Assigned to me.



[2001-11-22 03:31:02] [EMAIL PROTECTED]

Can you try with latest RC and see if it works

http://www.php.net/~zeev/php-4.1.0RC3.tar.gz

Feedback.





[2001-05-04 11:29:00] [EMAIL PROTECTED]

My code:

---
?php
$fd = fopen(file.xml,r) or die (Unable to open file!);
$myXML = fread($fd,filesize(file.xml));
fclose($fd);

$docTree = xmltree($myXML);

echo $docTree-version;
?
--

The file.xml  is:
--
?xml version=1.0?
ListaSoftware
Software
SoftwareName![CDATA[Nero Burning Rom(e) INTERNATIONAL 
PATCHES]]/SoftwareName
Produttore
NomeProduttore![CDATA[Ahead]]/NomeProduttore
UrlProduttore![CDATA[www.ahead.de]]/UrlProduttore
/Produttore
Descrizione![CDATA[Permette di visualizzare i comandi di Nero 
Burning Rom(e) in altre lingue ]]/Descrizione
Versione![CDATA[5.0.3.8]]/Versione
Licenza
TipoLicenza![CDATA[Shareware]]/TipoLicenza

LinkDescrLicenza![CDATA[http://www.vitaminic.it/help/software/licenze/dist4.shtml]]/LinkDescrLicenza

/Licenza
Aggiornamento![CDATA[2001-02-09]]/Aggiornamento
SistemiOperativi
SistemaOperativo![CDATA[Windows 
95/98/NT]]/SistemaOperativo
/SistemiOperativi
GenereSoftware![CDATA[Masterizzazione]]/GenereSoftware
Lingua![CDATA[Italiano]]/Lingua
Download
DimensioneFile![CDATA[397]]/DimensioneFile

UrlDownload![CDATA[http://www.vitaminic.it/cgi-php/get_file.php3?modo=100swid=file=Nero
 Burning Rom(e) INTERNATIONAL PATCHES]]/UrlDownlo/Download
Voto5/Voto
/Software
Software
SoftwareName![CDATA[WinAMP Mac Version]]/SoftwareName
Produttore
NomeProduttore![CDATA[Nullsoft]]/NomeProduttore
UrlProduttore![CDATA[www.winamp.com]]/UrlProduttore
/Produttore
Descrizione![CDATA[La versione per Mac del celebre riproduttore per 
file MP3.]]/Descrizione
Versione![CDATA[0.71 Alpha]]/Versione
Licenza
TipoLicenza![CDATA[Freeware]]/TipoLicenza

LinkDescrLicenza![CDATA[http://www.vitaminic.it/help/software/licenze/dist2.shtml]]/LinkDescrLicenza

/Licenza
Aggiornamento![CDATA[2001-03-30]]/Aggiornamento
SistemiOperativi
SistemaOperativo![CDATA[Macintosh]]/SistemaOperativo
/SistemiOperativi
GenereSoftware![CDATA[Riproduttori]]/GenereSoftware
Lingua![CDATA[Italiano]]/Lingua
Download
DimensioneFile![CDATA[177]]/DimensioneFile

UrlDownload![CDATA[http://www.vitaminic.it/cgi-php/get_file.php3?modo=100swid=file=WinAMP
 Mac Version]]/UrlDownload
/Download
Voto5/Voto
/Software
/ListaSoftware
-


When I start apache I have:

20562 ?S  0:00  3   739  8700 4448  1.7 /bin/httpd -d / -f /conf
20563 ?S  0:00  3   739  8700 4448  1.7 /bin/httpd -d / -f /conf
20564 ?S  0:00  3   739  8700 4448  1.7 /bin/httpd -d / -f /conf
20565 ?S  0:00  3   739  8700 4448  1.7 /bin/httpd -d / -f /conf
20566 ?S  0:00  3   739  8700 4448  1.7 /bin/httpd -d / -f /conf
20567 ?S  0:00  3   739  8700 4448  1.7 /bin/httpd -d / -f /conf
20568 ?S  0:00  3   739  8700 4448  1.7 /bin/httpd -d / -f /conf
20569 ?S  0:00  3   739  8700 4448  1.7 /bin/httpd -d / -f /conf
20570 ?S  0:00  3   739  8700 4448  1.7 /bin/httpd -d / -f /conf
20571 ?S  0:00  

[PHP-DEV] Bug #10667 Updated: xmltree function cause memory leak

2001-11-30 Thread mfischer

ID: 10667
Updated by: mfischer
Reported By: [EMAIL PROTECTED]
Old Status: Feedback
Status: Assigned
Bug Type: DOM XML related
Operating System: Linux 2.2.16
PHP Version: 4.0.5
Old Assigned To: 
Assigned To: mfischer
New Comment:

Update: CDATA should already work with current CVS; some minor fixes are coming.

Assigned to me.

Previous Comments:


[2001-11-22 03:31:02] [EMAIL PROTECTED]

Can you try with latest RC and see if it works

http://www.php.net/~zeev/php-4.1.0RC3.tar.gz

Feedback.





[2001-05-04 11:29:00] [EMAIL PROTECTED]

My code:

---
?php
$fd = fopen(file.xml,r) or die (Unable to open file!);
$myXML = fread($fd,filesize(file.xml));
fclose($fd);

$docTree = xmltree($myXML);

echo $docTree-version;
?
--

The file.xml  is:
--
?xml version=1.0?
ListaSoftware
Software
SoftwareName![CDATA[Nero Burning Rom(e) INTERNATIONAL 
PATCHES]]/SoftwareName
Produttore
NomeProduttore![CDATA[Ahead]]/NomeProduttore
UrlProduttore![CDATA[www.ahead.de]]/UrlProduttore
/Produttore
Descrizione![CDATA[Permette di visualizzare i comandi di Nero 
Burning Rom(e) in altre lingue ]]/Descrizione
Versione![CDATA[5.0.3.8]]/Versione
Licenza
TipoLicenza![CDATA[Shareware]]/TipoLicenza

LinkDescrLicenza![CDATA[http://www.vitaminic.it/help/software/licenze/dist4.shtml]]/LinkDescrLicenza

/Licenza
Aggiornamento![CDATA[2001-02-09]]/Aggiornamento
SistemiOperativi
SistemaOperativo![CDATA[Windows 
95/98/NT]]/SistemaOperativo
/SistemiOperativi
GenereSoftware![CDATA[Masterizzazione]]/GenereSoftware
Lingua![CDATA[Italiano]]/Lingua
Download
DimensioneFile![CDATA[397]]/DimensioneFile

UrlDownload![CDATA[http://www.vitaminic.it/cgi-php/get_file.php3?modo=100swid=file=Nero
 Burning Rom(e) INTERNATIONAL PATCHES]]/UrlDownlo/Download
Voto5/Voto
/Software
Software
SoftwareName![CDATA[WinAMP Mac Version]]/SoftwareName
Produttore
NomeProduttore![CDATA[Nullsoft]]/NomeProduttore
UrlProduttore![CDATA[www.winamp.com]]/UrlProduttore
/Produttore
Descrizione![CDATA[La versione per Mac del celebre riproduttore per 
file MP3.]]/Descrizione
Versione![CDATA[0.71 Alpha]]/Versione
Licenza
TipoLicenza![CDATA[Freeware]]/TipoLicenza

LinkDescrLicenza![CDATA[http://www.vitaminic.it/help/software/licenze/dist2.shtml]]/LinkDescrLicenza

/Licenza
Aggiornamento![CDATA[2001-03-30]]/Aggiornamento
SistemiOperativi
SistemaOperativo![CDATA[Macintosh]]/SistemaOperativo
/SistemiOperativi
GenereSoftware![CDATA[Riproduttori]]/GenereSoftware
Lingua![CDATA[Italiano]]/Lingua
Download
DimensioneFile![CDATA[177]]/DimensioneFile

UrlDownload![CDATA[http://www.vitaminic.it/cgi-php/get_file.php3?modo=100swid=file=WinAMP
 Mac Version]]/UrlDownload
/Download
Voto5/Voto
/Software
/ListaSoftware
-


When I start apache I have:

20562 ?S  0:00  3   739  8700 4448  1.7 /bin/httpd -d / -f /conf
20563 ?S  0:00  3   739  8700 4448  1.7 /bin/httpd -d / -f /conf
20564 ?S  0:00  3   739  8700 4448  1.7 /bin/httpd -d / -f /conf
20565 ?S  0:00  3   739  8700 4448  1.7 /bin/httpd -d / -f /conf
20566 ?S  0:00  3   739  8700 4448  1.7 /bin/httpd -d / -f /conf
20567 ?S  0:00  3   739  8700 4448  1.7 /bin/httpd -d / -f /conf
20568 ?S  0:00  3   739  8700 4448  1.7 /bin/httpd -d / -f /conf
20569 ?S  0:00  3   739  8700 4448  1.7 /bin/httpd -d / -f /conf
20570 ?S  0:00  3   739  8700 4448  1.7 /bin/httpd -d / -f /conf
20571 ?S  0:00  3   739  8700 4448  1.7 /bin/httpd -d / -f /conf
20572 ?S  0:00  3   739  8700 4448  1.7 /bin/httpd -d / -f 

[PHP-DEV] Bug #10667 Updated: xmltree function cause memory leak

2001-11-22 Thread mfischer

ID: 10667
Updated by: mfischer
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Feedback
Bug Type: DOM XML related
Operating System: Linux 2.2.16
PHP Version: 4.0.5
New Comment:

Can you try with latest RC and see if it works

http://www.php.net/~zeev/php-4.1.0RC3.tar.gz

Feedback.



Previous Comments:


[2001-05-04 11:29:00] [EMAIL PROTECTED]

My code:

---
?php
$fd = fopen(file.xml,r) or die (Unable to open file!);
$myXML = fread($fd,filesize(file.xml));
fclose($fd);

$docTree = xmltree($myXML);

echo $docTree-version;
?
--

The file.xml  is:
--
?xml version=1.0?
ListaSoftware
Software
SoftwareName![CDATA[Nero Burning Rom(e) INTERNATIONAL 
PATCHES]]/SoftwareName
Produttore
NomeProduttore![CDATA[Ahead]]/NomeProduttore
UrlProduttore![CDATA[www.ahead.de]]/UrlProduttore
/Produttore
Descrizione![CDATA[Permette di visualizzare i comandi di Nero 
Burning Rom(e) in altre lingue ]]/Descrizione
Versione![CDATA[5.0.3.8]]/Versione
Licenza
TipoLicenza![CDATA[Shareware]]/TipoLicenza

LinkDescrLicenza![CDATA[http://www.vitaminic.it/help/software/licenze/dist4.shtml]]/LinkDescrLicenza

/Licenza
Aggiornamento![CDATA[2001-02-09]]/Aggiornamento
SistemiOperativi
SistemaOperativo![CDATA[Windows 
95/98/NT]]/SistemaOperativo
/SistemiOperativi
GenereSoftware![CDATA[Masterizzazione]]/GenereSoftware
Lingua![CDATA[Italiano]]/Lingua
Download
DimensioneFile![CDATA[397]]/DimensioneFile

UrlDownload![CDATA[http://www.vitaminic.it/cgi-php/get_file.php3?modo=100swid=file=Nero
 Burning Rom(e) INTERNATIONAL PATCHES]]/UrlDownlo/Download
Voto5/Voto
/Software
Software
SoftwareName![CDATA[WinAMP Mac Version]]/SoftwareName
Produttore
NomeProduttore![CDATA[Nullsoft]]/NomeProduttore
UrlProduttore![CDATA[www.winamp.com]]/UrlProduttore
/Produttore
Descrizione![CDATA[La versione per Mac del celebre riproduttore per 
file MP3.]]/Descrizione
Versione![CDATA[0.71 Alpha]]/Versione
Licenza
TipoLicenza![CDATA[Freeware]]/TipoLicenza

LinkDescrLicenza![CDATA[http://www.vitaminic.it/help/software/licenze/dist2.shtml]]/LinkDescrLicenza

/Licenza
Aggiornamento![CDATA[2001-03-30]]/Aggiornamento
SistemiOperativi
SistemaOperativo![CDATA[Macintosh]]/SistemaOperativo
/SistemiOperativi
GenereSoftware![CDATA[Riproduttori]]/GenereSoftware
Lingua![CDATA[Italiano]]/Lingua
Download
DimensioneFile![CDATA[177]]/DimensioneFile

UrlDownload![CDATA[http://www.vitaminic.it/cgi-php/get_file.php3?modo=100swid=file=WinAMP
 Mac Version]]/UrlDownload
/Download
Voto5/Voto
/Software
/ListaSoftware
-


When I start apache I have:

20562 ?S  0:00  3   739  8700 4448  1.7 /bin/httpd -d / -f /conf
20563 ?S  0:00  3   739  8700 4448  1.7 /bin/httpd -d / -f /conf
20564 ?S  0:00  3   739  8700 4448  1.7 /bin/httpd -d / -f /conf
20565 ?S  0:00  3   739  8700 4448  1.7 /bin/httpd -d / -f /conf
20566 ?S  0:00  3   739  8700 4448  1.7 /bin/httpd -d / -f /conf
20567 ?S  0:00  3   739  8700 4448  1.7 /bin/httpd -d / -f /conf
20568 ?S  0:00  3   739  8700 4448  1.7 /bin/httpd -d / -f /conf
20569 ?S  0:00  3   739  8700 4448  1.7 /bin/httpd -d / -f /conf
20570 ?S  0:00  3   739  8700 4448  1.7 /bin/httpd -d / -f /conf
20571 ?S  0:00  3   739  8700 4448  1.7 /bin/httpd -d / -f /conf
20572 ?S  0:00  3   739  8700 4448  1.7 /bin/httpd -d / -f /conf
20573 ?S  0:00  3   739  8700 4448  1.7 /bin/httpd -d / -f /conf
20574 ?S  0:00  3   739  8700 4448  1.7 /bin/httpd -d / -f /conf
20575 ?S  0:00  3   739  8700 4448  1.7 /bin/httpd -d / -f /conf
20576 ?