php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #14619 Number doesn't fit the data type
Submitted: 2001-12-20 09:45 UTC Modified: 2002-11-12 10:36 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: Lars-Owe dot Ivarsson at its dot uu dot se Assigned:
Status: Closed Package: Compile Warning
PHP Version: 4.1.0 OS: AIX (probably not OS specific)
Private report: No CVE-ID: None
 [2001-12-20 09:45 UTC] Lars-Owe dot Ivarsson at its dot uu dot se
"zend_alloc.c", line 635.22: 1506-419 (E) Converting 2576696087 to type "long int" does not preserve its value.
"zend_alloc.c", line 643.22: 1506-419 (E) Converting 4219631580 to type "long int" does not preserve its value.

Using 32 bit long these values won't fit.  Changing the declaration on line 36 of Zend/zend_alloc.h from 'long magic' to 'unsigned long magic,' or lowering the constant codes might be worth considering.

Yours,
        lars-owe

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-11-08 10:01 UTC] iliaa@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php4-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-latest.zip


 [2002-11-12 10:36 UTC] Lars-Owe dot Ivarsson at its dot uu dot se
The 200211101739 snapshot release seems to have fixed this problem.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 10:01:28 2024 UTC