php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #23557 want something like C's limits.h
Submitted: 2003-05-08 23:30 UTC Modified: 2005-05-02 10:43 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: joel at alpsgiken dot gr dot jp Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 5CVS-2003-05-08 (dev) OS: freeBSD (and others)
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: joel at alpsgiken dot gr dot jp
New email:
PHP Version: OS:

 

 [2003-05-08 23:30 UTC] joel at alpsgiken dot gr dot jp
This is just a simple request for a header or a class that allows access to operational parameters like the bit width and max/min values of integral types, etc.

If there's something a rusty C programmer with a few months of php under his belt could do to help on it, let me know.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-05-02 10:43 UTC] andrey@php.net
already introduced in 4.3.12, PHP 5.0.5+ :
PHP_INT_MAX (LONG_MAX from limits.h)
PHP_INT_SIZE (4 on 32 bit, 8 on 64 bit (sizeof(long)))
constants 

The reason for using "long" as type is that internally the integers (in PHP sense) are stored by PHP as long-s.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Oct 04 11:01:28 2024 UTC