php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #60408
Patch const_dereference_002.phpt revision 2011-11-30 09:46 UTC by laruence@php.net
Patch const_dereference_003.phpt revision 2011-11-30 09:46 UTC by laruence@php.net
Patch const_dereference_001.phpt revision 2011-11-30 09:46 UTC by laruence@php.net
Patch req60408.patch revision 2011-11-30 09:45 UTC by laruence@php.net

Patch const_dereference_002.phpt for Scripting Engine problem Bug #60408

Patch version 2011-11-30 09:46 UTC

Return to Bug #60408 | Download this patch
Patch Revisions:

Developer: laruence@php.net

--TEST--
Const string dereference
--FILE--
<?php
error_reporting(E_ALL);

var_dump("foobar"[3]);
var_dump("foobar"[2][0]);
var_dump("foobar"["foo"]["bar"]);

--EXPECT--
string(1) "b"
string(1) "o"
string(1) "f"
 
PHP Copyright © 2001-2014 The PHP Group
All rights reserved.
Last updated: Fri Apr 18 20:01:57 2014 UTC