I didn't dive yet too deep into the patch, but shouldn't it be fixed on
stream level and not function level? I.e. there are a lot of functions
using streams (including files) - would they support bigger files too?
I also think that while using size_t is good, changing binary structures
might be rather dangerous, unless we can ensure all PHPs built on the
certain platform would use the same setting.
Having run into this issue recently, here's a patch (hopefully attached,
mail.app and list filters willing) against PHP 5.3 to address it.
This patch will promote to double the file sizes that overflow LONG_MAX,
which works transparently for my script.
Note that this only touches the obvious functions in the core; there may
be other extensions that need to behave similarly.
The defines that I jam into CFLAGS are known to work in our other
projects on Linux, Solaris, FreeBSD and OSX. The other (weirder)
platforms might need some other adjustments to work correctly.
--Wez.
--
Stanislav Malyshev, Zend Software Architect
[EMAIL PROTECTED] http://www.zend.com/
(408)253-8829 MSN: [EMAIL PROTECTED]
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php