1--TEST-- 2Test preg_match() function : variation 3--FILE-- 4<?php 5/* Function is implemented in ext/pcre/php_pcre.c */ 6 7//test passing in the same variable where 1 is by value, the other is a different 8//type and by reference so should be updated to the new type. 9$string = "-1"; 10preg_match('/[\-\+]?[0-9\.]*/', $string, $string); 11var_dump($string); 12?> 13--EXPECT-- 14array(1) { 15 [0]=> 16 string(2) "-1" 17} 18