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

phalcon 2.0.0 bug?

<?php

$di->set('registry', function(){
  return new Phalcon\Registry();
 }, true);

 $this->registry->user = [];

 $this->registry->user['asd'] = 'asd';

 var_dump($this->registry->user['asd']);die;

nothing returned



8.1k

All works...

$di = new Phalcon\DI\FactoryDefault();

$di->set('registry', function(){
  return new Phalcon\Registry();
 }, true);

 $di->registry->user['asd'] = 'asd';

 var_dump($di->registry->user['asd']);
 echo Phalcon\Version::get(), PHP_EOL;

output

string(3) "asd"
2.0.0 BETA 3