Skip to content

Commit d154dc9

Browse files
committed
ext/standard: make php_escape_shell_arg() function private
From a quick SourceGraph search nobody uses this API outside of the corresponding PHP function
1 parent 46e55dd commit d154dc9

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

ext/standard/exec.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ PHPAPI zend_string *php_escape_shell_cmd(const zend_string *unescaped_cmd)
377377
/* }}} */
378378

379379
/* {{{ php_escape_shell_arg */
380-
PHPAPI zend_string *php_escape_shell_arg(const zend_string *unescaped_arg)
380+
static zend_string *php_escape_shell_arg(const zend_string *unescaped_arg)
381381
{
382382
size_t x, y = 0;
383383
zend_string *cmd;

ext/standard/exec.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ PHP_MINIT_FUNCTION(proc_open);
2121
PHP_MINIT_FUNCTION(exec);
2222

2323
PHPAPI zend_string *php_escape_shell_cmd(const zend_string *unescaped_cmd);
24-
PHPAPI zend_string *php_escape_shell_arg(const zend_string *unescaped_arg);
2524
PHPAPI int php_exec(int type, const char *cmd, zval *array, zval *return_value);
2625

2726
#endif /* EXEC_H */

0 commit comments

Comments
 (0)