zend-diactoros icon indicating copy to clipboard operation
zend-diactoros copied to clipboard

PhpInputStream's getSize function is Wrong!

Open zhushengwen opened this issue 5 years ago • 4 comments

reference: https://www.php.net/manual/en/wrappers.php.php php://input is not support fstat

Supports stat() php://memory and php://temp only.
  • [ ] I was not able to find an open or closed issue matching what I'm seeing.
  • [ ] This is not a question. (Questions should be asked on chat (Signup here) or our forums.)

Provide a narrative description of what you are trying to accomplish.

Code to reproduce the issue

Expected results

Actual results

zhushengwen avatar Nov 29 '19 01:11 zhushengwen

@zhushengwen

fstat and stat are two different PHP functions.

Can you provide failing test case, please?

michalbundyra avatar Nov 29 '19 08:11 michalbundyra

image

zhushengwen avatar Nov 29 '19 10:11 zhushengwen

@zhushengwen Please create a pull request with an unit test which illustrates the problem. It's very hard to reproduce the problem per screenshot. 😉

Thanks in advance!

froschdesign avatar Nov 29 '19 11:11 froschdesign

This repository has been closed and moved to laminas/laminas-diactoros; a new issue has been opened at https://github.com/laminas/laminas-diactoros/issues/2.

weierophinney avatar Dec 31 '19 22:12 weierophinney