Re: Large file support for PHP

From: Date: Tue, 16 Oct 2007 22:16:15 +0000
Subject: Re: Large file support for PHP
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-32818@lists.php.net to get a copy of this message
Yes, the patch does that; it turns on LFS in the headers, which promotes the off_t and size_t types that are used by streams to the 64-bit versions. This is the one liner in configure.in. The other larger part of the patch is to make PHP functions capable of returning and accepting numbers that are too big to fit into a long.
I think it's better to do it in .h file and not CFLAGS (or both?) so that if somebody includes PHP headers they would always get the same result. This would prevent one from building incompatible module. Is it guaranteed that once you have this define you would always get the same result on all builds (regardless of libc difference, etc.)? -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com

« previous php.internals (#32818) next »