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

getProperties Problem

under php 7.011 ubuntu 14

can't not get result or formProperties

<?php

namespace Rocks; use Phalcon\Annotations\Adapter\Memory as Annotations;

class Test { /*

  • @Type(hidden)
  • @var integer */ public $id;

    /**

  • @Type(number)
  • @var integer */ public $code;

    /**

  • @Type(text)
  • @var string */ public $name;

    /**

  • @Type(select)
  • @Option("android":"Android")
  • @Option("iphone":"IPhone")
  • @var string */ public $platform;

    /**

  • @Type(textarea)
  • @var text */ public $description;

    /**

  • @Type(text)
  • @var string */ public $url;

    public function show() { $reader = new Annotations(); $formProperties = $reader->getProperties(get_class($this)); echo var_dump($formProperties); return; } }

$test=new Test(); $test->show();

yes,I get problem

Be confict with opacache

disable opacache.