summaryrefslogtreecommitdiff
path: root/ext/cpdf
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>1999-12-17 19:51:39 +0000
committerZeev Suraski <zeev@php.net>1999-12-17 19:51:39 +0000
commita3c65143323804b4780fb0bd90c03acc03eac583 (patch)
treee2b10d65e8b34a20651e368bad72183b1ae489f8 /ext/cpdf
parent02d3b39420839c9e09fd7c391f158e5c510bd600 (diff)
downloadphp-git-a3c65143323804b4780fb0bd90c03acc03eac583.tar.gz
More php3_ annihilation
Diffstat (limited to 'ext/cpdf')
-rw-r--r--ext/cpdf/cpdf.c148
1 files changed, 74 insertions, 74 deletions
diff --git a/ext/cpdf/cpdf.c b/ext/cpdf/cpdf.c
index c19530d9fc..4f27d17017 100644
--- a/ext/cpdf/cpdf.c
+++ b/ext/cpdf/cpdf.c
@@ -206,7 +206,7 @@ PHP_FUNCTION(cpdf_set_creator) {
convert_to_long(arg1);
convert_to_string(arg2);
id=arg1->value.lval;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if (!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
php3_error(E_WARNING,"Unable to find identifier %d (type=%d)",id, type);
RETURN_FALSE;
@@ -234,7 +234,7 @@ PHP_FUNCTION(cpdf_set_title) {
convert_to_long(arg1);
convert_to_string(arg2);
id=arg1->value.lval;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if (!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
php3_error(E_WARNING,"Unable to find identifier %d (type=%d)",id, type);
RETURN_FALSE;
@@ -262,7 +262,7 @@ PHP_FUNCTION(cpdf_set_subject) {
convert_to_long(arg1);
convert_to_string(arg2);
id=arg1->value.lval;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if (!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
php3_error(E_WARNING,"Unable to find identifier %d (type=%d)",id, type);
RETURN_FALSE;
@@ -290,7 +290,7 @@ PHP_FUNCTION(cpdf_set_keywords) {
convert_to_long(arg1);
convert_to_string(arg2);
id=arg1->value.lval;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if (!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
php3_error(E_WARNING,"Unable to find identifier %d (type=%d)",id, type);
RETURN_FALSE;
@@ -321,7 +321,7 @@ PHP_FUNCTION(cpdf_set_viewer_preferences) {
convert_to_long(argv[1]);
id=argv[0]->value.lval;
pagemode=argv[1]->value.lval;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
php3_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
@@ -383,7 +383,7 @@ PHP_FUNCTION(cpdf_open) {
}
cpdf_init(cpdf);
- id = php3_list_insert(cpdf, CPDF_GLOBAL(le_cpdf));
+ id = zend_list_insert(cpdf, CPDF_GLOBAL(le_cpdf));
RETURN_LONG(id);
}
/* }}} */
@@ -402,12 +402,12 @@ PHP_FUNCTION(cpdf_close) {
convert_to_long(arg1);
id=arg1->value.lval;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
php3_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
}
- php3_list_delete(id);
+ zend_list_delete(id);
RETURN_TRUE;
}
@@ -440,7 +440,7 @@ PHP_FUNCTION(cpdf_page_init) {
orientation=argv[2]->value.lval;
height = argv[3]->value.lval;
width = argv[4]->value.lval;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
php3_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
@@ -475,7 +475,7 @@ PHP_FUNCTION(cpdf_finalize_page) {
convert_to_long(arg2);
id=arg1->value.lval;
pagenr=arg2->value.lval;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
php3_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
@@ -503,7 +503,7 @@ PHP_FUNCTION(cpdf_set_current_page) {
convert_to_long(arg2);
id=arg1->value.lval;
pagenr=arg2->value.lval;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
php3_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
@@ -529,7 +529,7 @@ PHP_FUNCTION(cpdf_begin_text) {
convert_to_long(arg1);
id=arg1->value.lval;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
php3_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
@@ -555,7 +555,7 @@ PHP_FUNCTION(cpdf_end_text) {
convert_to_long(arg1);
id=arg1->value.lval;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
php3_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
@@ -582,7 +582,7 @@ PHP_FUNCTION(cpdf_show) {
convert_to_long(arg1);
convert_to_string(arg2);
id=arg1->value.lval;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
php3_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
@@ -613,7 +613,7 @@ PHP_FUNCTION(cpdf_show_xy) {
convert_to_double(argv[2]);
convert_to_double(argv[3]);
id=argv[0]->value.lval;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
php3_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
@@ -647,7 +647,7 @@ PHP_FUNCTION(cpdf_continue_text) {
convert_to_long(arg1);
convert_to_string(arg2);
id=arg1->value.lval;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
php3_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
@@ -674,7 +674,7 @@ PHP_FUNCTION(cpdf_text) {
convert_to_long(argv[0]);
convert_to_string(argv[1]);
id=argv[0]->value.lval;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
php3_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
@@ -766,7 +766,7 @@ PHP_FUNCTION(cpdf_set_font) {
convert_to_double(arg3);
convert_to_string(arg4);
id=arg1->value.lval;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
php3_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
@@ -797,7 +797,7 @@ PHP_FUNCTION(cpdf_set_leading) {
convert_to_long(arg1);
convert_to_double(arg2);
id=arg1->value.lval;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
php3_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
@@ -824,7 +824,7 @@ PHP_FUNCTION(cpdf_set_text_rendering) {
convert_to_long(arg1);
convert_to_long(arg2);
id=arg1->value.lval;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
php3_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
@@ -851,7 +851,7 @@ PHP_FUNCTION(cpdf_set_horiz_scaling) {
convert_to_long(arg1);
convert_to_double(arg2);
id=arg1->value.lval;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
php3_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
@@ -878,7 +878,7 @@ PHP_FUNCTION(cpdf_set_text_rise) {
convert_to_long(arg1);
convert_to_double(arg2);
id=arg1->value.lval;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
php3_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
@@ -909,7 +909,7 @@ PHP_FUNCTION(cpdf_set_text_matrix) {
convert_to_array(arg2);
id=arg1->value.lval;
matrix=arg2->value.ht;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
php3_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
@@ -961,7 +961,7 @@ PHP_FUNCTION(cpdf_set_text_pos) {
convert_to_double(argv[1]);
convert_to_double(argv[2]);
id=argv[0]->value.lval;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
php3_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
@@ -995,7 +995,7 @@ PHP_FUNCTION(cpdf_rotate_text) {
convert_to_long(arg1);
convert_to_double(arg2);
id=arg1->value.lval;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
php3_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
@@ -1022,7 +1022,7 @@ PHP_FUNCTION(cpdf_set_char_spacing) {
convert_to_long(arg1);
convert_to_double(arg2);
id=arg1->value.lval;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
php3_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
@@ -1049,7 +1049,7 @@ PHP_FUNCTION(cpdf_set_word_spacing) {
convert_to_long(arg1);
convert_to_double(arg2);
id=arg1->value.lval;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
php3_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
@@ -1077,7 +1077,7 @@ PHP_FUNCTION(cpdf_stringwidth) {
convert_to_long(arg1);
convert_to_string(arg2);
id=arg1->value.lval;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
php3_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
@@ -1103,7 +1103,7 @@ PHP_FUNCTION(cpdf_save) {
convert_to_long(arg1);
id=arg1->value.lval;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
php3_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
@@ -1129,7 +1129,7 @@ PHP_FUNCTION(cpdf_restore) {
convert_to_long(arg1);
id=arg1->value.lval;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
php3_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
@@ -1157,7 +1157,7 @@ PHP_FUNCTION(cpdf_translate) {
convert_to_double(arg2);
convert_to_double(arg3);
id=arg1->value.lval;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
php3_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
@@ -1185,7 +1185,7 @@ PHP_FUNCTION(cpdf_scale) {
convert_to_double(arg2);
convert_to_double(arg3);
id=arg1->value.lval;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
php3_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
@@ -1212,7 +1212,7 @@ PHP_FUNCTION(cpdf_rotate) {
convert_to_long(arg1);
convert_to_double(arg2);
id=arg1->value.lval;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
php3_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
@@ -1240,7 +1240,7 @@ PHP_FUNCTION(cpdf_setflat) {
convert_to_long(arg1);
convert_to_double(arg2);
id=arg1->value.lval;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
php3_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
@@ -1272,7 +1272,7 @@ PHP_FUNCTION(cpdf_setlinejoin) {
convert_to_long(arg1);
convert_to_long(arg2);
id=arg1->value.lval;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
php3_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
@@ -1304,7 +1304,7 @@ PHP_FUNCTION(cpdf_setlinecap) {
convert_to_long(arg1);
convert_to_long(arg2);
id=arg1->value.lval;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
php3_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
@@ -1336,7 +1336,7 @@ PHP_FUNCTION(cpdf_setmiterlimit) {
convert_to_long(arg1);
convert_to_double(arg2);
id=arg1->value.lval;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
php3_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
@@ -1368,7 +1368,7 @@ PHP_FUNCTION(cpdf_setlinewidth) {
convert_to_long(arg1);
convert_to_double(arg2);
id=arg1->value.lval;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
php3_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
@@ -1398,7 +1398,7 @@ PHP_FUNCTION(cpdf_setdash) {
convert_to_long(arg2);
convert_to_long(arg3);
id=arg1->value.lval;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
php3_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
@@ -1430,7 +1430,7 @@ PHP_FUNCTION(cpdf_moveto) {
convert_to_double(argv[1]);
convert_to_double(argv[2]);
id=argv[0]->value.lval;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
php3_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
@@ -1467,7 +1467,7 @@ PHP_FUNCTION(cpdf_rmoveto) {
convert_to_double(argv[1]);
convert_to_double(argv[2]);
id=argv[0]->value.lval;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
php3_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
@@ -1508,7 +1508,7 @@ PHP_FUNCTION(cpdf_curveto) {
convert_to_double(argv[5]);
convert_to_double(argv[6]);
id=argv[0]->value.lval;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
php3_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
@@ -1555,7 +1555,7 @@ PHP_FUNCTION(cpdf_lineto) {
convert_to_double(argv[1]);
convert_to_double(argv[2]);
id=argv[0]->value.lval;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
php3_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
@@ -1592,7 +1592,7 @@ PHP_FUNCTION(cpdf_rlineto) {
convert_to_double(argv[1]);
convert_to_double(argv[2]);
id=argv[0]->value.lval;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
php3_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
@@ -1630,7 +1630,7 @@ PHP_FUNCTION(cpdf_circle) {
convert_to_double(argv[2]);
convert_to_double(argv[3]);
id=argv[0]->value.lval;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
php3_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
@@ -1670,7 +1670,7 @@ PHP_FUNCTION(cpdf_arc) {
convert_to_double(argv[4]);
convert_to_double(argv[5]);
id=argv[0]->value.lval;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
php3_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
@@ -1709,7 +1709,7 @@ PHP_FUNCTION(cpdf_rect) {
convert_to_double(argv[3]);
convert_to_double(argv[4]);
id=argv[0]->value.lval;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
php3_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
@@ -1748,7 +1748,7 @@ PHP_FUNCTION(cpdf_newpath) {
convert_to_long(arg1);
id=arg1->value.lval;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
php3_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
@@ -1774,7 +1774,7 @@ PHP_FUNCTION(cpdf_closepath) {
convert_to_long(arg1);
id=arg1->value.lval;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
php3_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
@@ -1800,7 +1800,7 @@ PHP_FUNCTION(cpdf_closepath_stroke) {
convert_to_long(arg1);
id=arg1->value.lval;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
php3_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
@@ -1827,7 +1827,7 @@ PHP_FUNCTION(cpdf_stroke) {
convert_to_long(arg1);
id=arg1->value.lval;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
php3_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
@@ -1853,7 +1853,7 @@ PHP_FUNCTION(cpdf_fill) {
convert_to_long(arg1);
id=arg1->value.lval;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
php3_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
@@ -1879,7 +1879,7 @@ PHP_FUNCTION(cpdf_fill_stroke) {
convert_to_long(arg1);
id=arg1->value.lval;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
php3_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
@@ -1906,7 +1906,7 @@ PHP_FUNCTION(cpdf_closepath_fill_stroke) {
convert_to_long(arg1);
id=arg1->value.lval;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
php3_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
@@ -1934,7 +1934,7 @@ PHP_FUNCTION(cpdf_clip) {
convert_to_long(arg1);
id=arg1->value.lval;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
php3_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
@@ -1961,7 +1961,7 @@ PHP_FUNCTION(cpdf_setgray_fill) {
convert_to_long(arg1);
convert_to_double(arg2);
id=arg1->value.lval;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
php3_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
@@ -1988,7 +1988,7 @@ PHP_FUNCTION(cpdf_setgray_stroke) {
convert_to_long(arg1);
convert_to_double(arg2);
id=arg1->value.lval;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
php3_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
@@ -2015,7 +2015,7 @@ PHP_FUNCTION(cpdf_setgray) {
convert_to_long(arg1);
convert_to_double(arg2);
id=arg1->value.lval;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
php3_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
@@ -2044,7 +2044,7 @@ PHP_FUNCTION(cpdf_setrgbcolor_fill) {
convert_to_double(arg3);
convert_to_double(arg4);
id=arg1->value.lval;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
php3_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
@@ -2073,7 +2073,7 @@ PHP_FUNCTION(cpdf_setrgbcolor_stroke) {
convert_to_double(arg3);
convert_to_double(arg4);
id=arg1->value.lval;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
php3_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
@@ -2102,7 +2102,7 @@ PHP_FUNCTION(cpdf_setrgbcolor) {
convert_to_double(arg3);
convert_to_double(arg4);
id=arg1->value.lval;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
php3_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
@@ -2133,7 +2133,7 @@ PHP_FUNCTION(cpdf_set_page_animation) {
convert_to_long(arg5);
convert_to_long(arg6);
id=arg1->value.lval;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
php3_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
@@ -2160,7 +2160,7 @@ PHP_FUNCTION(cpdf_finalize) {
convert_to_long(arg1);
id=arg1->value.lval;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
php3_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
@@ -2188,14 +2188,14 @@ PHP_FUNCTION(cpdf_output_buffer) {
convert_to_long(arg1);
id=arg1->value.lval;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
php3_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
}
buffer = cpdf_getBufferForPDF(pdf, &lenght);
- php3_header();
+ php_header();
php_write(buffer, lenght);
RETURN_TRUE;
@@ -2217,7 +2217,7 @@ PHP_FUNCTION(cpdf_save_to_file) {
convert_to_long(arg1);
convert_to_string(arg2);
id=arg1->value.lval;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
php3_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
@@ -2264,7 +2264,7 @@ PHP_FUNCTION(cpdf_import_jpeg) {
yscale = (float) argv[8]->value.dval;
convert_to_long(argv[9]);
id=argv[0]->value.lval;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
php3_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
@@ -2329,14 +2329,14 @@ PHP_FUNCTION(cpdf_place_inline_image) {
convert_to_double(argv[6]);
convert_to_long(argv[7]);
id=argv[0]->value.lval;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
php3_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
}
gid=argv[1]->value.lval;
- im = php3_list_find(gid, &type);
+ im = zend_list_find(gid, &type);
if (!im || type != phpi_get_le_gd()) {
php3_error(E_WARNING, "cpdf: Unable to find image pointer");
RETURN_FALSE;
@@ -2411,7 +2411,7 @@ PHP_FUNCTION(cpdf_add_annotation) {
convert_to_string(argv[5]);
convert_to_string(argv[6]);
id=argv[0]->value.lval;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
php3_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
@@ -2470,7 +2470,7 @@ PHP_FUNCTION(cpdf_set_action_url) {
convert_to_double(argv[4]);
convert_to_string(argv[5]);
id=argv[0]->value.lval;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
php3_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
@@ -2527,14 +2527,14 @@ PHP_FUNCTION(cpdf_add_outline) {
convert_to_long(argv[4]);
convert_to_string(argv[5]);
id=argv[0]->value.lval;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
php3_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
}
oid=argv[1]->value.lval;
- lastoutline = php3_list_find(oid,&type);
+ lastoutline = zend_list_find(oid,&type);
if(!lastoutline || type!=CPDF_GLOBAL(le_outline)) {
lastoutline = NULL;
/* php3_error(E_WARNING,"Unable to find last outline entry %d",id);
@@ -2548,7 +2548,7 @@ PHP_FUNCTION(cpdf_add_outline) {
argv[5]->value.str.val,
1, 0.0, 0.0, 0.0, 0.0);
- id = php3_list_insert(lastoutline,CPDF_GLOBAL(le_outline));
+ id = zend_list_insert(lastoutline,CPDF_GLOBAL(le_outline));
RETURN_LONG(id);
}
/* }}} */