Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
getRealSize should expect also literals, not only integers #14307
This block throw an error, because getRealSize is failing if the php.ini will have shorthands (e.g. 1G).
I don't think it's true, Having a quick look at the function definition, I think it accepts the shorthands.
Yeah, so it seems I'm a bit dumb about this new return type declaration thingy, so I misunderstood some stuff. That
I'm not sure if this is specific on Windows platform, on my machine or PHP in general, but stuff looks like this. I did a bit of fidding on
Now, this gets really interesting:
If I'm doing this, the return value is
Can anyone explain why this is happen? I mean the confusion is double: