blob: d37d781bc12377d1c33161ce98ce69f84128b421 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
--TEST--
Bug #75355 (preg_quote() does not quote # control character)
--FILE--
<?php
var_dump(preg_quote('#'));
var_dump(preg_match('~^(' . preg_quote('hello#world', '~') . ')\z~x', 'hello#world', $m));
var_dump($m[1]);
?>
--EXPECT--
string(2) "\#"
int(1)
string(11) "hello#world"
|