diff options
| author | Anatol Belski <ab@php.net> | 2014-04-24 11:05:52 +0200 |
|---|---|---|
| committer | Anatol Belski <ab@php.net> | 2014-04-24 11:05:52 +0200 |
| commit | cd2641973cbd665301739593a291a1fa78a05578 (patch) | |
| tree | dcd38a2c92bdee7cc8b1668e505e7581001278e9 /sapi/phpdbg/phpdbg_lexer.l | |
| parent | 9280e255347dc5afd235afa760920cc48eb37801 (diff) | |
| parent | 3e6a3874541bb63604636440ffd5f00e47107f52 (diff) | |
| download | php-git-cd2641973cbd665301739593a291a1fa78a05578.tar.gz | |
Merge remote-tracking branch 'phpdbg/master' into PHP-5.6
Diffstat (limited to 'sapi/phpdbg/phpdbg_lexer.l')
| -rw-r--r-- | sapi/phpdbg/phpdbg_lexer.l | 8 |
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; |
