#23557 [Opn->Csd]: want something like C's limits.h

From: Date: Mon, 02 May 2005 08:43:15 +0000
Subject: #23557 [Opn->Csd]: want something like C's limits.h
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-78500@lists.php.net to get a copy of this message
ID: 23557 Updated by: andrey@php.net Reported By: joel at alpsgiken dot gr dot jp -Status: Open +Status: Closed Bug Type: Feature/Change Request Operating System: freeBSD (and others) PHP Version: 5CVS-2003-05-08 (dev) New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [2003-05-08 23:30:23] 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. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=23557&edit=1

« previous php.bugs (#78500) next »