"Call to undefined function session_status()" message on controller URL after using "phalcon scaffold users"

I used devtools to create scaffolds for the user table: phalcon scaffold user. When I browse to the User controller's URL, I get the following error:

Call to undefined function session_status()

0 [internal function]: Phalcon\Session\Adapter->status()

1 /Users/me/phalcon/app/config/services.php(95): Phalcon\Session\Adapter->start()

2 [internal function]: {closure}()

3 [internal function]: Phalcon\Di\Service->resolve(NULL, Object(Phalcon\Di\FactoryDefault))

4 [internal function]: Phalcon\Di->get('session', NULL)

5 [internal function]: Phalcon\Di->getShared('session')

6 [internal function]: Phalcon\Session\Bag->initialize()

7 [internal function]: Phalcon\Session\Bag->set('parameters', NULL)



31.3k

Hi,

show us the controller code that generate that error.

Me too, My php version is 5.3,but session_status in php5.4 or above