php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #2520 memory leak in zend (math functions)
Submitted: 1999-10-14 04:35 UTC Modified: 1999-10-15 02:36 UTC
From: Danny dot Heijl at cevi dot be Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.0 Latest CVS (14/10/1999) OS: Linux RH 5.2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: Danny dot Heijl at cevi dot be
New email:
PHP Version: OS:

 

 [1999-10-14 04:35 UTC] Danny dot Heijl at cevi dot be
The following script :

  <?php echo abs("-1");?>

leaks 3 bytes and produces no output:

  Content-Type: text/html

  zend-scanner.l(1163) :  Freeing 0x082307E0 (3 bytes)


This script :

  <?echo abs("-1.5");?>

leaks 5 bytes and produces no output:

  Content-Type: text/html

  zend-scanner.l(1163) :  Freeing 0x082307E0 (5 bytes)


while this one :

  <?php echo abs(-1.5); ?> 

does not leak and produces output :

  Content-Type: text/html

  1.5


Danny.
--- 

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-10-15 02:36 UTC] andi at cvs dot php dot net
Fixed in CVS.
Thanks for the report.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 08:01:28 2024 UTC