summaryrefslogtreecommitdiff
path: root/sapi/phpdbg/phpdbg_lexer.l
diff options
context:
space:
mode:
Diffstat (limited to 'sapi/phpdbg/phpdbg_lexer.l')
-rw-r--r--sapi/phpdbg/phpdbg_lexer.l8
1 files changed, 4 insertions, 4 deletions
diff --git a/sapi/phpdbg/phpdbg_lexer.l b/sapi/phpdbg/phpdbg_lexer.l
index ad5edd9f8f..b3536feab8 100644
--- a/sapi/phpdbg/phpdbg_lexer.l
+++ b/sapi/phpdbg/phpdbg_lexer.l
@@ -77,7 +77,7 @@ INPUT [^\n]+
<INITIAL,NORMAL>{
{ID}[:]{1}[//]{2} {
phpdbg_init_param(yylval, STR_PARAM);
- yylval->str = strndup(yytext, yyleng);
+ yylval->str = zend_strndup(yytext, yyleng);
yylval->len = yyleng;
return T_PROTO;
}
@@ -107,13 +107,13 @@ INPUT [^\n]+
}
{OPCODE} {
phpdbg_init_param(yylval, OP_PARAM);
- yylval->str = strndup(yytext, yyleng);
+ yylval->str = zend_strndup(yytext, yyleng);
yylval->len = yyleng;
return T_OPCODE;
}
{ID} {
phpdbg_init_param(yylval, STR_PARAM);
- yylval->str = strndup(yytext, yyleng);
+ yylval->str = zend_strndup(yytext, yyleng);
yylval->len = yyleng;
return T_ID;
}
@@ -121,7 +121,7 @@ INPUT [^\n]+
<RAW>{INPUT} {
phpdbg_init_param(yylval, STR_PARAM);
- yylval->str = strndup(yytext, yyleng);
+ yylval->str = zend_strndup(yytext, yyleng);
yylval->len = yyleng;
BEGIN(INITIAL);
return T_INPUT;