]> granicus.if.org Git - php/commit
Avoid unused fstat() call
authorNikita Popov <nikita.ppv@gmail.com>
Wed, 17 Jul 2019 09:01:57 +0000 (11:01 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Wed, 17 Jul 2019 09:22:31 +0000 (11:22 +0200)
commit5a90dc77b8f244f603082aea022fadc0ce2c009c
treea5682b1836a838aa9592cc831142b13042b752ec
parent6fbab09ef042df66153e4feaae8e07091d3d173e
Avoid unused fstat() call

If we're including a file via PHP streams, we're not going to trust
the reported file size anyway and populate in a loop -- so don't
bother determining the file size in the first place. Only do this
for non-tty HANDLE_FP now, which is the only case where this
information was used.
Zend/zend_stream.c
Zend/zend_stream.h
ext/phar/phar.c
main/main.c