Skip to content

Commit 4c7cf99

Browse files
committed
Remove php_error_docref2()
1 parent 5648200 commit 4c7cf99

File tree

2 files changed

+0
-19
lines changed

2 files changed

+0
-19
lines changed

main/main.c

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1175,23 +1175,6 @@ PHPAPI ZEND_COLD void php_error_docref0(const char *docref, int type, const char
11751175
}
11761176
/* }}} */
11771177

1178-
/* {{{ php_error_docref2 */
1179-
/* See: CODING_STANDARDS.md for details. */
1180-
PHPAPI ZEND_COLD void php_error_docref2(const char *docref, const char *param1, const char *param2, int type, const char *format, ...)
1181-
{
1182-
char *params;
1183-
va_list args;
1184-
1185-
spprintf(&params, 0, "%s,%s", param1, param2);
1186-
va_start(args, format);
1187-
php_verror(docref, params ? params : "...", type, format, args);
1188-
va_end(args);
1189-
if (params) {
1190-
efree(params);
1191-
}
1192-
}
1193-
/* }}} */
1194-
11951178
#ifdef PHP_WIN32
11961179
PHPAPI ZEND_COLD void php_win32_docref2_from_error(DWORD error, const char *param1, const char *param2) {
11971180
char *buf = php_win32_error_to_msg(error);

main/php.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,8 +343,6 @@ PHPAPI ZEND_COLD void php_verror(const char *docref, const char *params, int typ
343343
/* PHPAPI void php_error(int type, const char *format, ...); */
344344
PHPAPI ZEND_COLD void php_error_docref0(const char *docref, int type, const char *format, ...)
345345
PHP_ATTRIBUTE_FORMAT(printf, 3, 4);
346-
PHPAPI ZEND_COLD void php_error_docref2(const char *docref, const char *param1, const char *param2, int type, const char *format, ...)
347-
PHP_ATTRIBUTE_FORMAT(printf, 5, 6);
348346
#ifdef PHP_WIN32
349347
PHPAPI ZEND_COLD void php_win32_docref2_from_error(DWORD error, const char *param1, const char *param2);
350348
#endif

0 commit comments

Comments
 (0)