We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Problem when enabled the php aop extension

Phalcon 1.3.2 with https://pecl.php.net/package/aop.

@phalcon

error output:

PHP Fatal error: Maximum function nesting level of '100' reached, aborting! in /root/config.php on line 3

PHP Stack trace:

PHP 1. {main}() /root/cli.php:0

PHP 2. Phalcon\Config\Adapter\Php->__construct() /root/cli.php:3

PHP 3. Phalcon\Config\Adapter\Php->__construct() /root/cli.php:3

PHP 4. Phalcon\Config\Adapter\Php->__construct() /root/cli.php:3

PHP 5. Phalcon\Config\Adapter\Php->__construct() /root/cli.php:3

sample code in cli.php

<?php
define('APP_PATH', __DIR__);
$config = new Phalcon\Config\Adapter\Php(APP_PATH.'/config.php');
echo 'END';

and the config.php

<?php
return array();