-
-
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
[NFR]: Make mbstring required #14723
Comments
I'm wondering if the ppa:ondrej/php repo is still holding the 3.4 release. In that case we should change the docs. Can you try installing using package cloud? https://docs.phalcon.io/4.0/en/installation#deb-based-distributions-debian-ubuntu-etc |
I have some updates. [some]
mode = 2 ;1-PDO, 2-native extension, 0-disabled Then a test file <?php
$config = new \Phalcon\Config\Adapter\Ini('config.ini');
var_dump($config); By running This is not the only case. I chase for more. |
Btw,
|
@alexbusu can you drop the output of |
But some things have changed, and the good news is that I have no segfault, even with that example that I reported. What I noticed is that when the segfault did not happen I got the error of calling the missing If this extension is required, can you require it explicitly as you do for the psr extension? It would help avoiding such messy reports. |
It will depend on what part of the framework you will be using if @sergeyklay Any thought on adding |
Of course, that segfault should be treated someway. Either throw an Exception when mbstring is not installed/enabled, or just emit warnings and continue with |
I'm OK with adding /cc @niden |
If I understand this correctly it is caused by the Adding It will also help us by removing different unnecessary |
Can we still do this in 4.0 branch or is adding a dependency something for 4.1? There could be situations where people are running without |
Let's do it in 4.1 |
Describe the bug
A
php -r 'echo \Phalcon\Version::get();'
returns without errors.Trying to run the application, fails instead. Core is dumped by segmentation fault.
To Reproduce
I'm not sure what component causes the core dump, but I'll try to figure out.
Here is the coredump
Steps to reproduce the behavior:
Create
config.ini
file with the following content:Then a test file
t.php
By running
php t.php
the segfault happens. This is because of that comment after the value.Details
Additional context
I'm trying to migrate from Phalcon 3 to v4 and the service container defines some services based on php version (
const IS_PHALCON_4 = PHP_VERSION_ID >= 70400;
). Although the unused imports (like Cache Backends of Phalcon 3) are not checked/autoloaded, it might be an issue in case of Phalcon4?Brb with more info as I get it.
The text was updated successfully, but these errors were encountered: