svn: /pecl/newt/trunk/ newt.c

From: Date: Wed, 04 Nov 2009 16:29:56 +0000
Subject: svn: /pecl/newt/trunk/ newt.c
Groups: php.pecl.cvs 
Request: Send a blank email to pecl-cvs+get-13228@lists.php.net to get a copy of this message
michael Wed, 04 Nov 2009 16:29:56 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=290208 Log: fixed #16824 Bug: http://pecl.php.net/bugs/16824 (unknown) Changed paths: U pecl/newt/trunk/newt.c Modified: pecl/newt/trunk/newt.c =================================================================== --- pecl/newt/trunk/newt.c 2009-11-04 16:10:25 UTC (rev 290207) +++ pecl/newt/trunk/newt.c 2009-11-04 16:29:56 UTC (rev 290208) @@ -604,7 +604,6 @@ zval *args[4]; zval retval; php_newt_cb *cb = NULL; - char ch_str[1]; TSRMLS_FETCH(); @@ -618,9 +617,12 @@ args[1] = cb->data; /* Third parameter is single character */ - ch_str[0] = ch; MAKE_STD_ZVAL (args[2]); - ZVAL_STRING (args[2], ch_str, 1); + if (ch >= 0 && ch <= 255) { + ZVAL_STRING (args[2], (char*)&ch, 1); + } else { + ZVAL_LONG (args[2], ch); + } /* Fourth parameter is integer */ MAKE_STD_ZVAL (args[3]);

« previous php.pecl.cvs (#13228) next »