[BUG]Phalcon\Text::random(Phalcon\Text::RANDOM_ALLNUM, 32);
On debian server this script terminates PHP (Phalcon version 1.2.4)
<?php
ini_set('display_errors', 1);
error_reporting(E_ALL);
(new Phalcon\Debug())->listen();
var_dump(method_exists('Phalcon\Text', 'random'));
echo Phalcon\Text::random(Phalcon\Text::RANDOM_ALNUM, 32);
echo 'CHECK';
When I comment echo Phalcon\Text line. Everything works. var_dump returns true value.
How can I debug what is wrong?
when run script in CLI i got this:
bool(true)
Code is currently on stagging server before deploy to production. On dev elopment server everything works fine
Just sended task to admin to recompile phalcon to 1.2.6 I'll update issue after recompilation
I couldn't replicate this issue on fresh Debian 7 install with the same PHP version and PHP extensions as @nexik (PHP 5.4.4-14+deb7u7). The only module his setup had that mine didn't was newrelic, but I couldn't install it to test.
Additional extensions over the default were:
apc
curl
gd
mcrypt
memcached
newrelic
After recompiling problem no longer exists