-
-
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] Double inclusion of module file #812
Comments
Confirmed, the bug is caused by if (phalcon_array_isset_string(module, SS("path"))) {
PHALCON_OBS_VAR(path);
phalcon_array_fetch_string(&path, module, SL("path"), PH_NOISY_CC);
if (phalcon_file_exists(path TSRMLS_CC) == SUCCESS) {
if (phalcon_require(path TSRMLS_CC) == FAILURE) {
return;
}
} else {
PHALCON_INIT_NVAR(exception_msg);
PHALCON_CONCAT_SVS(exception_msg, "Module definition path '", path, "' doesn't exist");
PHALCON_THROW_EXCEPTION_ZVAL(phalcon_mvc_application_exception_ce, exception_msg);
return;
}
} A quick workaround: if (!class_exists('Module')) :
class Module { /* your code here */ }
endif; |
thanks! |
it's incredible, but the bug remains :( |
Can you please compile from the ext/ directory? cd cphalcon/ext
sudo ./install |
Unable to reproduce with 412289e |
yes, sorry, from the ext/ directory all works fine |
This bug is still present in 1.2.5 When forwarding a CLI call and defining the (same) module:
The module bootstrap is included a second time:
|
simple multimodule app:
call handle:
its ok.
then make a second call:
oops, an error:
phalcon 1.2
The text was updated successfully, but these errors were encountered: