cphalcon icon indicating copy to clipboard operation
cphalcon copied to clipboard

[BUG]Phalcon\Text::random(Phalcon\Text::RANDOM_ALLNUM, 32);

Open nexik opened this issue 12 years ago • 3 comments

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

nexik avatar Jan 30 '14 20:01 nexik

Just sended task to admin to recompile phalcon to 1.2.6 I'll update issue after recompilation

nexik avatar Jan 30 '14 21:01 nexik

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

stecman avatar Jan 30 '14 21:01 stecman

After recompiling problem no longer exists

nexik avatar Jan 31 '14 20:01 nexik