-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] \Request\File::getRealType() #1442
Comments
Fix #1442 implemented \Phalcon\Request\File::getRealType
Implemented in 1.3.0 |
I just downloaded & installed 1.3.0 this morning and it's not working. This is the code I'm running: $File = $this->request->getUploadedFiles()[0];
$Finfo = new Finfo();
$finfo_mime = $Finfo->file($File->getTempName(),FILEINFO_MIME_TYPE);
var_dump($finfo_mime);
var_dump($File->getRealType()); And this is the output:
|
Can you test this: phpunit unit-tests/RequestTest.php |
Seems fine - this is the output:
|
Can you in public function testIssues1442() |
I just re-downloaded the cphalcon-1.3.0.zip and the RequestTest.php file now has that function. Running it gives me this output:
|
To clarify, did you build Phalcon from ext/? |
No, I built it from build/, as that's what the documentation says. Re-building it from ext/ makes the test run successfully. |
Please build development versions from ext/; build/ is for released versions. For the development versions build/ and ext/ are often not synchronized (doing so would cause merge conflicts when there is more than one developer working on bug fixes / new features). |
Thanks - I'll remember to do that in the future. |
This is a bug with the documentation that I believe is auto generated from the C-source (which is why I'm not posting this bug in the Docs repository).
Phalcon\Http\Request\File::getRealType() isn't implemented, but nowhere in the documentation does it say that. I had to look through C source code to find that comment.
The text was updated successfully, but these errors were encountered: