You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I incorrectly defined onConstruct as a private method, and I got an exception :
Fatal error: Uncaught RuntimeException: Call to undefined method MyController::onconstruct() in test.php:12
Stack trace:
#0 test.php(12): Phalcon\Mvc\Controller->__construct() #1 {main}
thrown in test.php on line 12
If we define the Controller in php code, we will get an exception:
PHP Fatal error: Call to private method MyController::onConstruct() from context 'Controller' in test.php on line 7
zephir_call_class_method_aparams() should handle this situation, keeping the error message consistent with php
The text was updated successfully, but these errors were encountered:
https://github.com/phalcon/zephir/blob/df9c16e50788dc9631e7d291fc6f3c5c7f107380/kernels/ZendEngine3/fcall.c#L542
In php7,
ce->name
iszend_string*
, We should wrap it with theZSTR_VAL
macro.This is not the point
in "cphalcon/phalcon/mvc/controller.zep"
in php code
I incorrectly defined onConstruct as a private method, and I got an exception :
This is a confusing error message.
If we define the Controller in php code, we will get an exception:
PHP Fatal error: Call to private method MyController::onConstruct() from context 'Controller' in test.php on line 7
zephir_call_class_method_aparams()
should handle this situation, keeping the error message consistent with phpThe text was updated successfully, but these errors were encountered: