mirror of
https://github.com/php/php-src.git
synced 2024-11-25 02:44:58 +08:00
allow target anchor only for docref parameter
This commit is contained in:
parent
2eaa0f6ea1
commit
968721bc55
@ -396,6 +396,10 @@ PHPAPI void php_verror(const char *docref, const char *params, int type, const c
|
||||
|
||||
vspprintf(&buffer, 0, format, args);
|
||||
if (buffer) {
|
||||
if (docref && docref[0] == '#') {
|
||||
docref_target = strchr(docref, '#');
|
||||
docref = NULL;
|
||||
}
|
||||
if (!docref) {
|
||||
function = get_active_function_name(TSRMLS_C);
|
||||
if (function) {
|
||||
|
Loading…
Reference in New Issue
Block a user