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

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

update php

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