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
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: 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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 08 23:01:32 2025 UTC