File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / tests / classes / constants_error_007.phpt
Revision 1.1: download - view: text, annotated - select for diffs - revision graph
Tue Feb 21 23:48:06 2012 UTC (12 years, 6 months ago) by misho
CVS tags: MAIN, HEAD
Initial revision

--TEST--
Basic class support - attempting to create a reference to a class constant
--FILE--
<?php
  class aclass
  {
      const myConst = "hello";
  }
  
  echo "\nAttempting to create a reference to a class constant - should be parse error.\n";
  $a = &aclass::myConst;
?>
--EXPECTF--

Parse error: %s in %s on line %d

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>