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 Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
46 - 31 = ?
Subscribe to this entry?

 
 [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

Add a Patch

Pull Requests

Add a Pull Request

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 May 24 08:01:33 2024 UTC