-
-
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
Phalcon\Http\Response getStatusCode() returns full string instead of int code #12895
Comments
Thanks @sergeyklay It amazes me how this is different between PHP versions, and not Phalcon versions. |
|
Well now I'm not sure whenever the issue was PHP 5 or my Database default values. More precisely, if database had column defined as int Nevertheless, this is definitely a bug - now confirmed exact same behavior on both PHP 5.6.30 and PHP 7.0.x. As we can see in zephir sources, surely this method will return full string, which is not desirable. |
…d to return status code only as int instead of full string (see phalcon#12895)
…nly instead of full string (see phalcon#12895)
Fixed in the |
Expected and Actual Behavior
Expected:
int(422) or string(3) "422"
Actual result is:
string(24) "422 Unprocessable Entity"
Details
Exactly same code works w/o this issue on PHP 5.6.30 and same Phalcon version / setup.
The text was updated successfully, but these errors were encountered: