Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

PhpInputStream's getSize function is Wrong! #380

Open
2 tasks
zhushengwen opened this issue Nov 29, 2019 · 4 comments
Open
2 tasks

PhpInputStream's getSize function is Wrong! #380

zhushengwen opened this issue Nov 29, 2019 · 4 comments

Comments

@zhushengwen
Copy link

zhushengwen commented Nov 29, 2019

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

@michalbundyra
Copy link
Member

@zhushengwen

fstat and stat are two different PHP functions.

Can you provide failing test case, please?

@zhushengwen
Copy link
Author

image

@froschdesign
Copy link
Member

@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!

@weierophinney
Copy link
Member

This repository has been closed and moved to laminas/laminas-diactoros; a new issue has been opened at laminas/laminas-diactoros#2.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants