summaryrefslogtreecommitdiff
path: root/sapi/phpdbg/phpdbg.c
diff options
context:
space:
mode:
authorNikita Popov <nikic@php.net>2015-10-02 09:10:49 +0200
committerNikita Popov <nikic@php.net>2015-10-02 09:35:00 +0200
commit1287c48082adab66b07d8590390330278a4e0c9c (patch)
tree58c8956c4091e08cc35495cedae890c80eb8fdd3 /sapi/phpdbg/phpdbg.c
parent1a39b6e3c0c23a5f883a6caa0897f7086c1d4f03 (diff)
downloadphp-git-1287c48082adab66b07d8590390330278a4e0c9c.tar.gz
Fix/improve zpp usage
The ext/interbase changes are done blindly, fingers crossed. Some of these are bug fixes, some make zpp usage more idiomatic.
Diffstat (limited to 'sapi/phpdbg/phpdbg.c')
-rw-r--r--sapi/phpdbg/phpdbg.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sapi/phpdbg/phpdbg.c b/sapi/phpdbg/phpdbg.c
index c3f0cc6c54..cc3de4286f 100644
--- a/sapi/phpdbg/phpdbg.c
+++ b/sapi/phpdbg/phpdbg.c
@@ -323,9 +323,9 @@ static PHP_FUNCTION(phpdbg_break_next)
/* {{{ proto void phpdbg_break_file(string file, integer line) */
static PHP_FUNCTION(phpdbg_break_file)
{
- char *file = NULL;
- size_t flen = 0;
- long line;
+ char *file;
+ size_t flen;
+ zend_long line;
if (zend_parse_parameters(ZEND_NUM_ARGS(), "sl", &file, &flen, &line) == FAILURE) {
return;
@@ -378,9 +378,9 @@ static PHP_FUNCTION(phpdbg_clear)
/* {{{ proto void phpdbg_color(integer element, string color) */
static PHP_FUNCTION(phpdbg_color)
{
- long element = 0L;
- char *color = NULL;
- size_t color_len = 0;
+ zend_long element;
+ char *color;
+ size_t color_len;
if (zend_parse_parameters(ZEND_NUM_ARGS(), "ls", &element, &color, &color_len) == FAILURE) {
return;