cvs: pecl /ps ps.c
| From: | Uwe Steinmann | Date: | Tue, 28 Feb 2006 15:58:02 +0000 |
| Subject: | cvs: pecl /ps ps.c | ||
| Groups: | php.pecl.cvs | ||
| Request: | Send a blank email to pecl-cvs+get-5296@lists.php.net to get a copy of this message | ||
steinm Tue Feb 28 15:58:02 2006 UTC
Modified files:
/pecl/ps ps.c
Log:
- Expect Z_LVAL_P instead of Z_DVAL_P in Ps_get_value()
- fixed some return values
http://cvs.php.net/viewcvs.cgi/pecl/ps/ps.c?r1=1.26&r2=1.27&diff_format=u
Index: pecl/ps/ps.c
diff -u pecl/ps/ps.c:1.26 pecl/ps/ps.c:1.27
--- pecl/ps/ps.c:1.26 Tue Dec 6 15:20:33 2005
+++ pecl/ps/ps.c Tue Feb 28 15:58:02 2006
@@ -263,7 +263,7 @@
php_info_print_table_start();
php_info_print_table_row(2, "PS Support", "enabled" );
php_info_print_table_row(2, "PSlib Version", tmp );
- php_info_print_table_row(2, "Revision", "$Revision: 1.26 $" );
+ php_info_print_table_row(2, "Revision", "$Revision: 1.27 $" );
php_info_print_table_end();
}
@@ -463,7 +463,7 @@
PSDOC_FROM_ZVAL(ps, &zps);
if(zmod) {
- value = (double) PS_get_value(ps, name, (float) Z_DVAL_P(zmod));
+ value = (double) PS_get_value(ps, name, (float) Z_LVAL_P(zmod));
} else {
value = (double) PS_get_value(ps, name, 0.0);
}
@@ -2043,7 +2043,7 @@
int patid;
if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rddddl", &zps,
&width, &height, &xstep, &ystep, &painttype)) {
- return FALSE;
+ return;
}
PSDOC_FROM_ZVAL(ps, &zps);
@@ -2086,7 +2086,7 @@
int tempid;
if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rdd", &zps,
&width, &height)) {
- return FALSE;
+ return;
}
PSDOC_FROM_ZVAL(ps, &zps);