Strange reflection

Issue #29 resolved
Remi created an issue

I'm used to save a "REFLECTION" file for each version (output of "php --re ev")

After update from 1.0.0 to 1.0.1 (or 1.0.2), I notice a strange change See: https://github.com/remicollet/remirepo/commit/2dd68ee385956aa2ddbbd33c05f2b8805e7a3a34

For lot of properties, we have public $"data" with additional quote.

I will try to dig to understand where this comes from, even if I don't see any significant change in ev code (perhaps some in PHP)

Comments (5)

  1. Remi reporter

    More, this looks like it only affects "ev"

    Using

    <?php
    $r = new ReflectionClass('mysqli');
    var_dump($r->getProperties());
    

    With MySQLi / PHP 5.6 or 7.0

      &object(ReflectionProperty)#20 (2) {
        ["name"]=>
        string(13) "warning_count"
        ["class"]=>
        string(6) "mysqli"
      }
    

    With EvWatcher / PHP 5.6

      &object(ReflectionProperty)#5 (2) {
        ["name"]=>
        string(8) "priority"
        ["class"]=>
        string(9) "EvWatcher"
      }
    

    With EvWatcher / PHP 7.0, additional quotes also appear here :(

      object(ReflectionProperty)#5 (2) {
        ["name"]=>
        string(10) ""priority""
        ["class"]=>
        string(9) "EvWatcher"
      }
    
  2. Log in to comment