mirror of
https://github.com/php/php-src.git
synced 2026-04-16 20:41:18 +02:00
16 lines
284 B
PHP
16 lines
284 B
PHP
--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"
|