php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login

Patch php_error_docref-strip-leading-dashes for Scripting Engine problem Bug #60732

Patch version 2012-01-12 17:22 UTC

Return to Bug #60732 | Download this patch
Patch Revisions:

Developer: vrana@php.net

Index: main.c
===================================================================
--- main.c	(revision 322148)
+++ main.c	(working copy)
@@ -775,6 +775,9 @@
 	/* no docref given but function is known (the default) */
 	if (!docref && is_function) {
 		int doclen;
+		while (*function == '_') {
+			function++;
+		}
 		if (space[0] == '\0') {
 			doclen = spprintf(&docref_buf, 0, "function.%s", function);
 		} else {
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 11:01:29 2024 UTC