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
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: 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-2025 The PHP Group
All rights reserved.
Last updated: Mon May 12 02:01:27 2025 UTC