version 1.1.1.2, 2012/05/29 12:34:42
|
version 1.1.1.3, 2013/07/22 01:32:00
|
Line 2
|
Line 2
|
+----------------------------------------------------------------------+ |
+----------------------------------------------------------------------+ |
| PHP Version 5 | |
| PHP Version 5 | |
+----------------------------------------------------------------------+ |
+----------------------------------------------------------------------+ |
| Copyright (c) 1997-2012 The PHP Group | | | Copyright (c) 1997-2013 The PHP Group | |
+----------------------------------------------------------------------+ |
+----------------------------------------------------------------------+ |
| This source file is subject to version 3.01 of the PHP license, | |
| This source file is subject to version 3.01 of the PHP license, | |
| that is bundled with this package in the file LICENSE, and is | |
| that is bundled with this package in the file LICENSE, and is | |
Line 198 PHP_RSHUTDOWN_FUNCTION(readline)
|
Line 198 PHP_RSHUTDOWN_FUNCTION(readline)
|
|
|
PHP_MINFO_FUNCTION(readline) |
PHP_MINFO_FUNCTION(readline) |
{ |
{ |
return PHP_MINFO(cli_readline)(ZEND_MODULE_INFO_FUNC_ARGS_PASSTHRU); | PHP_MINFO(cli_readline)(ZEND_MODULE_INFO_FUNC_ARGS_PASSTHRU); |
} |
} |
|
|
/* }}} */ |
/* }}} */ |
Line 259 PHP_FUNCTION(readline_info)
|
Line 259 PHP_FUNCTION(readline_info)
|
#endif |
#endif |
add_assoc_string(return_value,"library_version",(char *)SAFE_STRING(rl_library_version),1); |
add_assoc_string(return_value,"library_version",(char *)SAFE_STRING(rl_library_version),1); |
add_assoc_string(return_value,"readline_name",(char *)SAFE_STRING(rl_readline_name),1); |
add_assoc_string(return_value,"readline_name",(char *)SAFE_STRING(rl_readline_name),1); |
|
add_assoc_long(return_value,"attempted_completion_over",rl_attempted_completion_over); |
} else { |
} else { |
if (!strcasecmp(what,"line_buffer")) { |
if (!strcasecmp(what,"line_buffer")) { |
oldstr = rl_line_buffer; |
oldstr = rl_line_buffer; |
Line 313 PHP_FUNCTION(readline_info)
|
Line 314 PHP_FUNCTION(readline_info)
|
rl_readline_name = strdup(Z_STRVAL_PP(value));; |
rl_readline_name = strdup(Z_STRVAL_PP(value));; |
} |
} |
RETVAL_STRING(SAFE_STRING(oldstr),1); |
RETVAL_STRING(SAFE_STRING(oldstr),1); |
} | } else if (!strcasecmp(what, "attempted_completion_over")) { |
| oldval = rl_attempted_completion_over; |
| if (value) { |
| convert_to_long_ex(value); |
| rl_attempted_completion_over = Z_LVAL_PP(value); |
| } |
| RETVAL_LONG(oldval); |
| } |
} |
} |
} |
} |
|
|