source: src/router/php7/Zend/tests/this_in_parse_str.phpt @ 31874

Last change on this file since 31874 was 31874, checked in by brainslayer, 6 weeks ago

update php

File size: 376 bytes
Line 
1--TEST--
2$this re-assign in parse_str()
3--FILE--
4<?php
5function foo() {
6        parse_str("this=42");
7        var_dump($this);
8}
9foo();
10?>
11--EXPECTF--
12Fatal error: Uncaught Error: Cannot re-assign $this in %sthis_in_parse_str.php:3
13Stack trace:
14#0 %sthis_in_parse_str.php(3): parse_str('this=42')
15#1 %sthis_in_parse_str.php(6): foo()
16#2 {main}
17  thrown in %sthis_in_parse_str.php on line 3
Note: See TracBrowser for help on using the repository browser.