mod_php4.c
php.h
php3_compat.h
- php3_sprintf.c
+ php_sprintf.c
php_ini.c
rfc1867.c
safe_mode.c
php.h
php3_realpath.c
php3_realpath.h
- php3_sprintf.c
+ php_sprintf.c
php_globals.h
php_ini.c
php_ini.h
main.c
mod_php3.c
php.h
- php3_sprintf.c
+ php_sprintf.c
php_regex.h
request_info.c
snprintf.c: * Get Apache to work. POST doesn't work yet.
* php3_realpath.c
php3_realpath.h
- php3_sprintf.c
+ php_sprintf.c
php3_threads.c
php3_threads.h
php3extra.dsw
* php3_realpath.c
php3_realpath.h
- php3_sprintf.c
+ php_sprintf.c
php3_threads.c
php3_threads.h
php3extra.dsw
phptemp_LTLIBRARIES = libphp4.la
libphp4_la_SOURCES = \
- main.c internal_functions.c snprintf.c php3_sprintf.c \
+ main.c internal_functions.c snprintf.c php_sprintf.c \
configuration-parser.y configuration-scanner.l request_info.c \
safe_mode.c fopen-wrappers.c php3_realpath.c alloca.c \
php_ini.c SAPI.c rfc1867.c dlist.c php_content_types.c strlcpy.c \
else
sc=aspell_new((*master)->value.str.val,"");
- ind = php3_list_insert(sc, le_aspell);
+ ind = zend_list_insert(sc, le_aspell);
RETURN_LONG(ind);
}
/* }}} */
}
convert_to_long_ex(scin);
convert_to_string_ex(word);
- sc = (aspell *)php3_list_find((*scin)->value.lval, &type);
+ sc = (aspell *)zend_list_find((*scin)->value.lval, &type);
if(!sc)
{
php_error(E_WARNING, "%d is not an ASPELL result index",(*scin)->value.lval);
}
convert_to_long_ex(scin);
convert_to_string_ex(word);
- sc= (aspell *) php3_list_find((*scin)->value.lval, &type);
+ sc= (aspell *) zend_list_find((*scin)->value.lval, &type);
if(!sc)
{
php_error(E_WARNING, "%d is not an ASPELL result index",(*scin)->value.lval);
}
convert_to_long_ex(scin);
convert_to_string_ex(word);
- sc = (aspell *)php3_list_find((*scin)->value.lval, &type);
+ sc = (aspell *)zend_list_find((*scin)->value.lval, &type);
if(!sc)
{
php_error(E_WARNING, "%d is not an ASPELL result index",(*scin)->value.lval);
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;
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;
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;
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;
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;
}
cpdf_init(cpdf);
- id = php3_list_insert(cpdf, CPDF_GLOBAL(le_cpdf));
+ id = zend_list_insert(cpdf, CPDF_GLOBAL(le_cpdf));
RETURN_LONG(id);
}
/* }}} */
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;
}
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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);
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);
}
/* }}} */
/* didn't find it as a database filename, try as a number */
convert_to_long(id);
- info = php3_list_find(id->value.lval, &info_type);
+ info = zend_list_find(id->value.lval, &info_type);
if (info_type != DBM_GLOBAL(le_db))
return NULL;
return info;
info = _php3_dbmopen(filename->value.str.val, mode->value.str.val);
if (info) {
- ret = php3_list_insert(info, DBM_GLOBAL(le_db));
+ ret = zend_list_insert(info, DBM_GLOBAL(le_db));
RETURN_LONG(ret);
} else {
RETURN_FALSE;
}
convert_to_long(id);
- if (php3_list_delete(id->value.lval) == SUCCESS) {
+ if (zend_list_delete(id->value.lval) == SUCCESS) {
RETURN_TRUE;
} else {
RETURN_FALSE;
convert_to_string_ex(key)
#define DBA_IF_NOT_CORRECT_TYPE(link_id) \
- info = php3_list_find(link_id, &type); \
+ info = zend_list_find(link_id, &type); \
if(!info || (type != GLOBAL(le_db) && type != GLOBAL(le_pdb)))
#define DBA_ID_GET \
if(zend_hash_find(&ht_keys, key, keylen, (void **) &info) == SUCCESS) {
FREENOW;
- RETURN_LONG(php3_list_insert(info, GLOBAL(le_pdb)));
+ RETURN_LONG(zend_list_insert(info, GLOBAL(le_pdb)));
}
}
info->argc = 0;
info->argv = NULL;
- listid = php3_list_insert(info, persistent?GLOBAL(le_pdb):GLOBAL(le_db));
+ listid = zend_list_insert(info, persistent?GLOBAL(le_pdb):GLOBAL(le_db));
if(persistent) {
zend_hash_update(&ht_keys, key, keylen, info, sizeof(*info), NULL);
}
{
DBA_ID_GET1;
- php3_list_delete((*id)->value.lval);
+ zend_list_delete((*id)->value.lval);
}
/* }}} */
RETURN_FALSE;
}
- handle = php3_list_insert(dbh, DBase_GLOBAL(le_dbhead));
+ handle = zend_list_insert(dbh, DBase_GLOBAL(le_dbhead));
RETURN_LONG(handle);
}
/* }}} */
WRONG_PARAM_COUNT;
}
convert_to_long(dbh_id);
- dbh = php3_list_find(dbh_id->value.lval, &dbh_type);
+ dbh = zend_list_find(dbh_id->value.lval, &dbh_type);
if (!dbh || dbh_type != DBase_GLOBAL(le_dbhead)) {
php_error(E_WARNING, "Unable to find database for identifier %d", dbh_id->value.lval);
RETURN_FALSE;
}
- php3_list_delete(dbh_id->value.lval);
+ zend_list_delete(dbh_id->value.lval);
RETURN_TRUE;
}
/* }}} */
WRONG_PARAM_COUNT;
}
convert_to_long(dbh_id);
- dbh = php3_list_find(dbh_id->value.lval, &dbh_type);
+ dbh = zend_list_find(dbh_id->value.lval, &dbh_type);
if (!dbh || dbh_type != DBase_GLOBAL(le_dbhead)) {
php_error(E_WARNING, "Unable to find database for identifier %d", dbh_id->value.lval);
RETURN_FALSE;
WRONG_PARAM_COUNT;
}
convert_to_long(dbh_id);
- dbh = php3_list_find(dbh_id->value.lval, &dbh_type);
+ dbh = zend_list_find(dbh_id->value.lval, &dbh_type);
if (!dbh || dbh_type != DBase_GLOBAL(le_dbhead)) {
php_error(E_WARNING, "Unable to find database for identifier %d", dbh_id->value.lval);
RETURN_FALSE;
WRONG_PARAM_COUNT;
}
convert_to_long(dbh_id);
- dbh = php3_list_find(dbh_id->value.lval, &dbh_type);
+ dbh = zend_list_find(dbh_id->value.lval, &dbh_type);
if (!dbh || dbh_type != DBase_GLOBAL(le_dbhead)) {
php_error(E_WARNING, "Unable to find database for identifier %d", dbh_id->value.lval);
RETURN_FALSE;
RETURN_FALSE;
}
- dbh = php3_list_find(dbh_id->value.lval, &dbh_type);
+ dbh = zend_list_find(dbh_id->value.lval, &dbh_type);
if (!dbh || dbh_type != DBase_GLOBAL(le_dbhead)) {
php_error(E_WARNING, "Unable to find database for identifier %d", dbh_id->value.lval);
RETURN_FALSE;
RETURN_FALSE;
}
- dbh = php3_list_find(dbh_id->value.lval, &dbh_type);
+ dbh = zend_list_find(dbh_id->value.lval, &dbh_type);
if (!dbh || dbh_type != DBase_GLOBAL(le_dbhead)) {
php_error(E_WARNING, "Unable to find database for identifier %d", dbh_id->value.lval);
RETURN_FALSE;
convert_to_long(dbh_id);
convert_to_long(record);
- dbh = php3_list_find(dbh_id->value.lval, &dbh_type);
+ dbh = zend_list_find(dbh_id->value.lval, &dbh_type);
if (!dbh || dbh_type != DBase_GLOBAL(le_dbhead)) {
php_error(E_WARNING, "Unable to find database for identifier %d", dbh_id->value.lval);
RETURN_FALSE;
convert_to_long(dbh_id);
convert_to_long(record);
- dbh = php3_list_find(dbh_id->value.lval, &dbh_type);
+ dbh = zend_list_find(dbh_id->value.lval, &dbh_type);
if (!dbh || dbh_type != DBase_GLOBAL(le_dbhead)) {
php_error(E_WARNING, "Unable to find database for identifier %d", dbh_id->value.lval);
RETURN_FALSE;
convert_to_long(dbh_id);
convert_to_long(record);
- dbh = php3_list_find(dbh_id->value.lval, &dbh_type);
+ dbh = zend_list_find(dbh_id->value.lval, &dbh_type);
if (!dbh || dbh_type != DBase_GLOBAL(le_dbhead)) {
php_error(E_WARNING, "Unable to find database for identifier %d", dbh_id->value.lval);
RETURN_FALSE;
dbh->db_rlen = rlen;
put_dbf_info(dbh);
- handle = php3_list_insert(dbh, DBase_GLOBAL(le_dbhead));
+ handle = zend_list_insert(dbh, DBase_GLOBAL(le_dbhead));
RETURN_LONG(handle);
}
/* }}} */
if(!fdf)
RETURN_FALSE;
- id = php3_list_insert(fdf,FDF_GLOBAL(le_fdf));
+ id = zend_list_insert(fdf,FDF_GLOBAL(le_fdf));
RETURN_LONG(id);
} /* }}} */
convert_to_long_ex(arg1);
id=(*arg1)->value.lval;
- fdf = php3_list_find(id,&type);
+ fdf = zend_list_find(id,&type);
if(!fdf || type!=FDF_GLOBAL(le_fdf)) {
php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
}
/* FDFClose(fdf); */
- php3_list_delete(id);
+ zend_list_delete(id);
RETURN_TRUE;
} /* }}} */
if(!fdf)
RETURN_FALSE;
- id = php3_list_insert(fdf,FDF_GLOBAL(le_fdf));
+ id = zend_list_insert(fdf,FDF_GLOBAL(le_fdf));
RETURN_LONG(id);
}
/* }}} */
convert_to_long_ex(arg1);
convert_to_string_ex(arg2);
id=(*arg1)->value.lval;
- fdf = php3_list_find(id,&type);
+ fdf = zend_list_find(id,&type);
if(!fdf || type!=FDF_GLOBAL(le_fdf)) {
php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
convert_to_string_ex(arg3);
convert_to_long_ex(arg4);
id=(*arg1)->value.lval;
- fdf = php3_list_find(id,&type);
+ fdf = zend_list_find(id,&type);
if(!fdf || type!=FDF_GLOBAL(le_fdf)) {
php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
fieldname = NULL;
}
id=(*argv[0])->value.lval;
- fdf = php3_list_find(id,&type);
+ fdf = zend_list_find(id,&type);
if(!fdf || type!=FDF_GLOBAL(le_fdf)) {
php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
convert_to_string_ex(arg4);
convert_to_long_ex(arg5);
id=(*arg1)->value.lval;
- fdf = php3_list_find(id,&type);
+ fdf = zend_list_find(id,&type);
if(!fdf || type!=FDF_GLOBAL(le_fdf)) {
php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
convert_to_long_ex(arg1);
convert_to_string_ex(arg2);
id=(*arg1)->value.lval;
- fdf = php3_list_find(id,&type);
+ fdf = zend_list_find(id,&type);
if(!fdf || type!=FDF_GLOBAL(le_fdf)) {
php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
convert_to_long_ex(arg1);
id=(*arg1)->value.lval;
- fdf = php3_list_find(id,&type);
+ fdf = zend_list_find(id,&type);
if(!fdf || type!=FDF_GLOBAL(le_fdf)) {
php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
convert_to_long_ex(arg1);
convert_to_string_ex(arg2);
id=(*arg1)->value.lval;
- fdf = php3_list_find(id,&type);
+ fdf = zend_list_find(id,&type);
if(!fdf || type!=FDF_GLOBAL(le_fdf)) {
php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
convert_to_long_ex(arg1);
id=(*arg1)->value.lval;
- fdf = php3_list_find(id,&type);
+ fdf = zend_list_find(id,&type);
if(!fdf || type!=FDF_GLOBAL(le_fdf)) {
php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
convert_to_long_ex(arg1);
convert_to_string_ex(arg2);
id=(*arg1)->value.lval;
- fdf = php3_list_find(id,&type);
+ fdf = zend_list_find(id,&type);
if(!fdf || type!=FDF_GLOBAL(le_fdf)) {
php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
convert_to_string_ex(arg4);
convert_to_long_ex(arg5);
id=(*arg1)->value.lval;
- fdf = php3_list_find(id,&type);
+ fdf = zend_list_find(id,&type);
if(!fdf || type!=FDF_GLOBAL(le_fdf)) {
php3_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
int id, type; \
convert_to_long(pval); \
id = (pval)->value.lval; \
- (ftp) = php3_list_find(id, &type); \
+ (ftp) = zend_list_find(id, &type); \
if (!(ftp) || type != le_ftpbuf) { \
php_error(E_WARNING, "Unable to find ftpbuf %d", id); \
RETURN_FALSE; \
if (ftp == NULL)
RETURN_FALSE;
- RETURN_LONG(php3_list_insert(ftp, le_ftpbuf));
+ RETURN_LONG(zend_list_insert(ftp, le_ftpbuf));
}
/* }}} */
}
id = arg1->value.lval;
- if (php3_list_find(id, &type) && type == le_ftpbuf)
- php3_list_delete(id);
+ if (zend_list_find(id, &type) && type == le_ftpbuf)
+ zend_list_delete(id);
RETURN_TRUE;
}
* that overlap with the old fonts (with indices 1-5). The first
* list index given out is always 1.
*/
- ind = 5 + php3_list_insert(font, GD_GLOBAL(le_gd_font));
+ ind = 5 + zend_list_insert(font, GD_GLOBAL(le_gd_font));
RETURN_LONG(ind);
}
convert_to_long(y_size);
im = gdImageCreate(x_size->value.lval, y_size->value.lval);
- ind = php3_list_insert(im, GD_GLOBAL(le_gd));
+ ind = zend_list_insert(im, GD_GLOBAL(le_gd));
RETURN_LONG(ind);
}
im = gdImageCreateFromPng (fp);
fflush(fp);
fclose(fp);
- ind = php3_list_insert(im, GD_GLOBAL(le_gd));
+ ind = zend_list_insert(im, GD_GLOBAL(le_gd));
RETURN_LONG(ind);
}
/* }}} */
RETURN_FALSE;
}
}
- im = php3_list_find(imgind->value.lval, &ind_type);
+ im = zend_list_find(imgind->value.lval, &ind_type);
if (!im || ind_type != GD_GLOBAL(le_gd)) {
php3_error(E_WARNING, "ImagePng: unable to find image pointer");
RETURN_FALSE;
php3_error(E_WARNING, "Unable to open temporary file");
RETURN_FALSE;
}
- output = php3_header();
+ output = php_header();
if (output) {
gdImagePng (im, tmp);
fseek(tmp, 0, SEEK_SET);
fflush(fp);
fclose(fp);
- ind = php3_list_insert(im, GD_GLOBAL(le_gd));
+ ind = zend_list_insert(im, GD_GLOBAL(le_gd));
RETURN_LONG(ind);
}
}
}
- im = php3_list_find(imgind->value.lval, &ind_type);
+ im = zend_list_find(imgind->value.lval, &ind_type);
if (!im || ind_type != GD_GLOBAL(le_gd)) {
php_error(E_WARNING, "ImageGif: unable to find image pointer");
RETURN_FALSE;
RETURN_FALSE;
}
- output = php3_header();
+ output = php_header();
if (output) {
gdImageGif (im, tmp);
convert_to_long(imgind);
- php3_list_delete(imgind->value.lval);
+ zend_list_delete(imgind->value.lval);
RETURN_TRUE;
}
g = green->value.lval;
b = blue->value.lval;
- im = php3_list_find(ind, &ind_type);
+ im = zend_list_find(ind, &ind_type);
if (!im || ind_type != GD_GLOBAL(le_gd)) {
php_error(E_WARNING, "ImageColorAllocate: Unable to find image pointer");
RETURN_FALSE;
ind = imgind->value.lval;
- im = php3_list_find(ind, &ind_type);
+ im = zend_list_find(ind, &ind_type);
if (!im || ind_type != GD_GLOBAL(le_gd)) {
php_error(E_WARNING, "ImageColorAt: Unable to find image pointer");
RETURN_FALSE;
g = green->value.lval;
b = blue->value.lval;
- im = php3_list_find(ind, &ind_type);
+ im = zend_list_find(ind, &ind_type);
if (!im || ind_type != GD_GLOBAL(le_gd)) {
php_error(E_WARNING, "ImageColorClosest: Unable to find image pointer");
RETURN_FALSE;
ind = imgind->value.lval;
col = index->value.lval;
- im = php3_list_find(ind, &ind_type);
+ im = zend_list_find(ind, &ind_type);
if (!im || ind_type != GD_GLOBAL(le_gd)) {
php_error(E_WARNING, "ImageColorDeallocate: Unable to find image pointer");
RETURN_FALSE;
g = green->value.lval;
b = blue->value.lval;
- im = php3_list_find(ind, &ind_type);
+ im = zend_list_find(ind, &ind_type);
if (!im || ind_type != GD_GLOBAL(le_gd)) {
php_error(E_WARNING, "ImageColorResolve: Unable to find image pointer");
RETURN_FALSE;
g = green->value.lval;
b = blue->value.lval;
- im = php3_list_find(ind, &ind_type);
+ im = zend_list_find(ind, &ind_type);
if (!im || ind_type != GD_GLOBAL(le_gd)) {
php_error(E_WARNING, "ImageColorExact: Unable to find image pointer");
RETURN_FALSE;
g = green->value.lval;
b = blue->value.lval;
- im = php3_list_find(ind, &ind_type);
+ im = zend_list_find(ind, &ind_type);
if (!im || ind_type != GD_GLOBAL(le_gd)) {
php_error(E_WARNING, "ImageColorSet: Unable to find image pointer");
RETURN_FALSE;
ind = imgind->value.lval;
col = index->value.lval;
- im = php3_list_find(ind, &ind_type);
+ im = zend_list_find(ind, &ind_type);
if (!im || ind_type != GD_GLOBAL(le_gd)) {
php_error(E_WARNING, "ImageColorsForIndex: Unable to find image pointer");
RETURN_FALSE;
y = yarg->value.lval;
x = xarg->value.lval;
- im = php3_list_find(imarg->value.lval, &ind_type);
+ im = zend_list_find(imarg->value.lval, &ind_type);
if (!im || ind_type != GD_GLOBAL(le_gd)) {
php_error(E_WARNING, "Unable to find image pointer");
RETURN_FALSE;
y2 = Y2->value.lval;
col = COL->value.lval;
- im = php3_list_find(IM->value.lval, &ind_type);
+ im = zend_list_find(IM->value.lval, &ind_type);
if (!im || ind_type != GD_GLOBAL(le_gd)) {
php_error(E_WARNING, "Unable to find image pointer");
RETURN_FALSE;
y2 = Y2->value.lval;
col = COL->value.lval;
- im = php3_list_find(IM->value.lval, &ind_type);
+ im = zend_list_find(IM->value.lval, &ind_type);
if (!im || ind_type != GD_GLOBAL(le_gd)) {
php_error(E_WARNING, "Unable to find image pointer");
RETURN_FALSE;
y2 = Y2->value.lval;
col = COL->value.lval;
- im = php3_list_find(IM->value.lval, &ind_type);
+ im = zend_list_find(IM->value.lval, &ind_type);
if (!im || ind_type != GD_GLOBAL(le_gd)) {
php_error(E_WARNING, "Unable to find image pointer");
RETURN_FALSE;
y2 = Y2->value.lval;
col = COL->value.lval;
- im = php3_list_find(IM->value.lval, &ind_type);
+ im = zend_list_find(IM->value.lval, &ind_type);
if (!im || ind_type != GD_GLOBAL(le_gd)) {
php_error(E_WARNING, "Unable to find image pointer");
RETURN_FALSE;
st %= 360;
}
- im = php3_list_find(IM->value.lval, &ind_type);
+ im = zend_list_find(IM->value.lval, &ind_type);
if (!im || ind_type != GD_GLOBAL(le_gd)) {
php_error(E_WARNING, "Unable to find image pointer");
RETURN_FALSE;
y = Y->value.lval;
x = X->value.lval;
- im = php3_list_find(IM->value.lval, &ind_type);
+ im = zend_list_find(IM->value.lval, &ind_type);
if (!im || ind_type != GD_GLOBAL(le_gd)) {
php_error(E_WARNING, "Unable to find image pointer");
RETURN_FALSE;
y = Y->value.lval;
x = X->value.lval;
- im = php3_list_find(IM->value.lval, &ind_type);
+ im = zend_list_find(IM->value.lval, &ind_type);
if (!im || ind_type != GD_GLOBAL(le_gd)) {
php_error(E_WARNING, "Unable to find image pointer");
RETURN_FALSE;
}
convert_to_long(IM);
- im = php3_list_find(IM->value.lval, &ind_type);
+ im = zend_list_find(IM->value.lval, &ind_type);
if (!im || ind_type != GD_GLOBAL(le_gd)) {
php_error(E_WARNING, "Unable to find image pointer");
RETURN_FALSE;
}
convert_to_long(IM);
- im = php3_list_find(IM->value.lval, &ind_type);
+ im = zend_list_find(IM->value.lval, &ind_type);
if (!im || ind_type != GD_GLOBAL(le_gd)) {
php_error(E_WARNING, "Unable to find image pointer");
RETURN_FALSE;
}
convert_to_long(IM);
- im = php3_list_find(IM->value.lval, &ind_type);
+ im = zend_list_find(IM->value.lval, &ind_type);
if (!im || ind_type != GD_GLOBAL(le_gd)) {
php_error(E_WARNING, "Unable to find image pointer");
RETURN_FALSE;
npoints = NPOINTS->value.lval;
col = COL->value.lval;
- im = php3_list_find(IM->value.lval, &ind_type);
+ im = zend_list_find(IM->value.lval, &ind_type);
if (!im || ind_type != GD_GLOBAL(le_gd)) {
php_error(E_WARNING, "Unable to find image pointer");
RETURN_FALSE;
font = gdFontGiant;
break;
default:
- font = php3_list_find(size - 5, &ind_type);
+ font = zend_list_find(size - 5, &ind_type);
if (!font || ind_type != GD_GLOBAL(le_gd_font)) {
if (size < 1) {
font = gdFontTiny;
x = X->value.lval;
size = SIZE->value.lval;
- im = php3_list_find(IM->value.lval, &ind_type);
+ im = zend_list_find(IM->value.lval, &ind_type);
if (!im || ind_type != GD_GLOBAL(le_gd)) {
php_error(E_WARNING, "Unable to find image pointer");
if (string) {
dstX = DX->value.lval;
dstY = DY->value.lval;
- im_src = php3_list_find(SIM->value.lval, &ind_type);
+ im_src = zend_list_find(SIM->value.lval, &ind_type);
if (!im_src || ind_type != GD_GLOBAL(le_gd)) {
php_error(E_WARNING, "Unable to find image pointer");
RETURN_FALSE;
}
- im_dst = php3_list_find(DIM->value.lval, &ind_type);
+ im_dst = zend_list_find(DIM->value.lval, &ind_type);
if (!im_dst || ind_type != GD_GLOBAL(le_gd)) {
php_error(E_WARNING, "Unable to find image pointer");
RETURN_FALSE;
dstH = DH->value.lval;
dstW = DW->value.lval;
- im_src = php3_list_find(SIM->value.lval, &ind_type);
+ im_src = zend_list_find(SIM->value.lval, &ind_type);
if (!im_src || ind_type != GD_GLOBAL(le_gd)) {
php_error(E_WARNING, "Unable to find image pointer");
RETURN_FALSE;
}
- im_dst = php3_list_find(DIM->value.lval, &ind_type);
+ im_dst = zend_list_find(DIM->value.lval, &ind_type);
if (!im_dst || ind_type != GD_GLOBAL(le_gd)) {
php_error(E_WARNING, "Unable to find image pointer");
RETURN_FALSE;
WRONG_PARAM_COUNT;
}
- im = php3_list_find(IM->value.lval, &ind_type);
+ im = zend_list_find(IM->value.lval, &ind_type);
if (!im || ind_type != GD_GLOBAL(le_gd)) {
php_error(E_WARNING, "Unable to find image pointer");
RETURN_FALSE;
WRONG_PARAM_COUNT;
}
- im = php3_list_find(IM->value.lval, &ind_type);
+ im = zend_list_find(IM->value.lval, &ind_type);
if (!im || ind_type != GD_GLOBAL(le_gd)) {
php_error(E_WARNING, "Unable to find image pointer");
RETURN_FALSE;
col = COL->value.lval;
y = Y->value.lval;
x = X->value.lval;
- im = php3_list_find(IM->value.lval, &ind_type);
+ im = zend_list_find(IM->value.lval, &ind_type);
if (!im || ind_type != GD_GLOBAL(le_gd)) {
php_error(E_WARNING, "Unable to find image pointer");
RETURN_FALSE;
T1_LoadFont(f_ind->font_id);
f_ind->extend = 1;
- l_ind = php3_list_insert(f_ind, GD_GLOBAL(le_ps_font));
+ l_ind = zend_list_insert(f_ind, GD_GLOBAL(le_ps_font));
RETURN_LONG(l_ind);
}
/* }}} */
convert_to_long(fnt);
- of_ind = php3_list_find(fnt->value.lval, &type);
+ of_ind = zend_list_find(fnt->value.lval, &type);
if (type != GD_GLOBAL(le_ps_font)) {
php3_error(E_WARNING, "%d is not a Type 1 font index", fnt->value.lval);
}
nf_ind->extend = 1;
- l_ind = php3_list_insert(nf_ind, GD_GLOBAL(le_ps_font));
+ l_ind = zend_list_insert(nf_ind, GD_GLOBAL(le_ps_font));
RETURN_LONG(l_ind);
}
*/
convert_to_long(fnt);
- php3_list_find(fnt->value.lval, &type);
+ zend_list_find(fnt->value.lval, &type);
if (type != GD_GLOBAL(le_ps_font)) {
php3_error(E_WARNING, "%d is not a Type 1 font index", fnt->value.lval);
RETURN_FALSE;
}
- php3_list_delete(fnt->value.lval);
+ zend_list_delete(fnt->value.lval);
RETURN_TRUE;
}
/* }}} */
convert_to_long(fnt);
convert_to_string(enc);
- f_ind = php3_list_find(fnt->value.lval, &type);
+ f_ind = zend_list_find(fnt->value.lval, &type);
if (type != GD_GLOBAL(le_ps_font)) {
php3_error(E_WARNING, "%d is not a Type 1 font index", fnt->value.lval);
php3_error(E_WARNING, "Couldn't reencode font");
RETURN_FALSE;
}
- php3_list_insert(enc_vector, GD_GLOBAL(le_ps_enc));
+ zend_list_insert(enc_vector, GD_GLOBAL(le_ps_enc));
RETURN_TRUE;
}
/* }}} */
convert_to_long(fnt);
convert_to_double(ext);
- f_ind = php3_list_find(fnt->value.lval, &type);
+ f_ind = zend_list_find(fnt->value.lval, &type);
if (type != GD_GLOBAL(le_ps_font)) {
php3_error(E_WARNING, "%d is not a Type 1 font index", fnt->value.lval);
convert_to_long(fnt);
convert_to_double(slt);
- f_ind = php3_list_find(fnt->value.lval, &type);
+ f_ind = zend_list_find(fnt->value.lval, &type);
if (type != GD_GLOBAL(le_ps_font)) {
php3_error(E_WARNING, "%d is not a Type 1 font index", fnt->value.lval);
WRONG_PARAM_COUNT;
}
- bg_img = php3_list_find(img->value.lval, &type);
+ bg_img = zend_list_find(img->value.lval, &type);
if (!bg_img || type != GD_GLOBAL(le_gd)) {
php3_error(E_WARNING, "Unable to find image pointer");
RETURN_FALSE;
}
- f_ind = php3_list_find(fnt->value.lval, &type);
+ f_ind = zend_list_find(fnt->value.lval, &type);
if (!f_ind || type != GD_GLOBAL(le_ps_font)) {
php3_error(E_WARNING, "%d is not a Type 1 font index", fnt->value.lval);
WRONG_PARAM_COUNT;
}
- f_ind = php3_list_find(fnt->value.lval, &type);
+ f_ind = zend_list_find(fnt->value.lval, &type);
if (type != GD_GLOBAL(le_ps_font)) {
php3_error(E_WARNING, "%d is not a Type 1 font index", fnt->value.lval);
ptr = le->ptr;
}
- return_value->value.lval = php3_list_insert(ptr,HwSG(le_psocketp));
+ return_value->value.lval = zend_list_insert(ptr,HwSG(le_psocketp));
return_value->type = IS_LONG;
} else {
RETURN_FALSE;
}
link = (int) index_ptr->ptr;
- ptr = (hw_connection *) php3_list_find(link,&type); /* check if the link is still there */
+ ptr = (hw_connection *) zend_list_find(link,&type); /* check if the link is still there */
if(!ptr || (type!=HwSG(le_socketp) && type!=HwSG(le_psocketp))) {
return_value->value.lval = HwSG(default_link) = link;
return_value->type = IS_LONG;
ptr->hostname = strdup(host);
ptr->username = strdup("anonymous");
- return_value->value.lval = php3_list_insert(ptr,HwSG(le_socketp));
+ return_value->value.lval = zend_list_insert(ptr,HwSG(le_socketp));
return_value->type = IS_LONG;
new_index_ptr.ptr = (void *) return_value->value.lval;
}
convert_to_long_ex(arg1);
id=(*arg1)->value.lval;
- ptr = php3_list_find(id,&type);
+ ptr = zend_list_find(id,&type);
if(!ptr || (type!=HwSG(le_socketp) && type!=HwSG(le_psocketp))) {
php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
}
- php3_list_delete(id);
+ zend_list_delete(id);
RETURN_TRUE;
}
/* }}} */
}
convert_to_long_ex(arg1);
id=(*arg1)->value.lval;
- ptr = php3_list_find(id,&type);
+ ptr = zend_list_find(id,&type);
if(!ptr || (type!=HwSG(le_socketp) && type!=HwSG(le_psocketp))) {
php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
}
convert_to_long_ex(arg1);
id=(*arg1)->value.lval;
- ptr = php3_list_find(id,&type);
+ ptr = zend_list_find(id,&type);
if(!ptr || (type!=HwSG(le_socketp) && type!=HwSG(le_psocketp))) {
php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
}
convert_to_long_ex(arg1);
id=(*arg1)->value.lval;
- ptr = php3_list_find(id,&type);
+ ptr = zend_list_find(id,&type);
if(!ptr || (type!=HwSG(le_socketp) && type!=HwSG(le_psocketp))) {
php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
}
convert_to_long_ex(arg1);
link=(*arg1)->value.lval;
- ptr = php3_list_find(link,&type);
+ ptr = zend_list_find(link,&type);
if(!ptr || (type!=HwSG(le_socketp) && type!=HwSG(le_psocketp))) {
php_error(E_WARNING,"Unable to find file identifier %d",link);
return NULL;
link=(*arg1)->value.lval;
id=(*arg2)->value.lval;
msgid=(*arg3)->value.lval;
- ptr = php3_list_find(link,&type);
+ ptr = zend_list_find(link,&type);
if(!ptr || (type!=HwSG(le_socketp) && type!=HwSG(le_psocketp))) {
php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
}
link=(*argv[0])->value.lval;
- ptr = php3_list_find(link,&type);
+ ptr = zend_list_find(link,&type);
if(!ptr || (type!=HwSG(le_socketp) && type!=HwSG(le_psocketp))) {
php_error(E_WARNING,"Unable to find file identifier %d", link);
RETURN_FALSE;
link=arg1->value.lval;
objrec=arg2->value.str.val;
parms=arg3->value.str.val;
- ptr = php3_list_find(link,&type);
+ ptr = zend_list_find(link,&type);
if(!ptr || (type!=HwSG(le_socketp) && type!=HwSG(le_psocketp))) {
php_error(E_WARNING,"Unable to find file identifier %d",link);
RETURN_FALSE;
convert_to_long(arg2);
link=arg1->value.lval;
id=arg2->value.lval;
- ptr = php3_list_find(link,&type);
+ ptr = zend_list_find(link,&type);
if(!ptr || (type!=HwSG(le_socketp) && type!=HwSG(le_psocketp))) {
php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
convert_to_long(arg2);
link=arg1->value.lval;
id=arg2->value.lval;
- ptr = php3_list_find(link,&type);
+ ptr = zend_list_find(link,&type);
if(!ptr || (type!=HwSG(le_socketp) && type!=HwSG(le_psocketp))) {
php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
convert_to_long(arg2);
link=arg1->value.lval;
id=arg2->value.lval;
- ptr = php3_list_find(link,&type);
+ ptr = zend_list_find(link,&type);
if(!ptr || (type!=HwSG(le_socketp) && type!=HwSG(le_psocketp))) {
php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
link=arg1->value.lval;
id=arg2->value.lval;
newobjarr=arg3->value.ht;
- ptr = php3_list_find(link,&type);
+ ptr = zend_list_find(link,&type);
if(!ptr || (type!=HwSG(le_socketp) && type!=HwSG(le_psocketp))) {
php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
id=argv[1]->value.lval;
remobjarr=argv[2]->value.ht;
addobjarr=argv[3]->value.ht;
- ptr = php3_list_find(link,&type);
+ ptr = zend_list_find(link,&type);
if(!ptr || (type!=HwSG(le_socketp) && type!=HwSG(le_psocketp))) {
php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
from = 0;
break;
}
- ptr = php3_list_find(link,&type);
+ ptr = zend_list_find(link,&type);
if(!ptr || (type!=HwSG(le_socketp) && type!=HwSG(le_psocketp))) {
php_error(E_WARNING,"Unable to find file identifier %d",link);
RETURN_FALSE;
}
link=argv[0]->value.lval;
id=argv[1]->value.lval;
- ptr = php3_list_find(link,&type);
+ ptr = zend_list_find(link,&type);
if(!ptr || (type!=HwSG(le_socketp) && type!=HwSG(le_psocketp))) {
php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
doc->attributes = attributes;
doc->bodytag = bodytag;
doc->size = count;
- return_value->value.lval = php3_list_insert(doc,HwSG(le_document));
+ return_value->value.lval = zend_list_insert(doc,HwSG(le_document));
return_value->type = IS_LONG;
}
}
convert_to_long(arg1);
convert_to_long(arg2);
link=arg1->value.lval;
- ptr = php3_list_find(link,&type);
+ ptr = zend_list_find(link,&type);
if(!ptr || (type!=HwSG(le_socketp) && type!=HwSG(le_psocketp))) {
php_error(E_WARNING,"Unable to find socket identifier %d",link);
}
doc=arg2->value.lval;
- docptr = php3_list_find(doc,&type);
+ docptr = zend_list_find(doc,&type);
if(!docptr || (type!=HwSG(le_document))) {
php_error(E_WARNING,"Unable to find document identifier %d", doc);
convert_to_long(arg2);
link=arg1->value.lval;
id=arg2->value.lval;
- ptr = php3_list_find(link,&type);
+ ptr = zend_list_find(link,&type);
if(!ptr || (type!=HwSG(le_socketp) && type!=HwSG(le_psocketp))) {
php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
doc->attributes = attributes;
doc->bodytag = NULL;
doc->size = count;
- return_value->value.lval = php3_list_insert(doc,HwSG(le_document));
+ return_value->value.lval = zend_list_insert(doc,HwSG(le_document));
return_value->type = IS_LONG;
}
}
convert_to_long(arg2);
link=arg1->value.lval;
id=arg2->value.lval;
- ptr = php3_list_find(link,&type);
+ ptr = zend_list_find(link,&type);
if(!ptr || (type!=HwSG(le_socketp) && type!=HwSG(le_psocketp))) {
php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
doc->attributes = attributes;
doc->bodytag = NULL;
doc->size = count;
- return_value->value.lval = php3_list_insert(doc,HwSG(le_document));
+ return_value->value.lval = zend_list_insert(doc,HwSG(le_document));
return_value->type = IS_LONG;
}
}
convert_to_string(arg2);
link=arg1->value.lval;
objrec=arg2->value.str.val;
- ptr = php3_list_find(link,&type);
+ ptr = zend_list_find(link,&type);
if(!ptr || (type!=HwSG(le_socketp) && type!=HwSG(le_psocketp))) {
php_error(E_WARNING,"Unable to find file identifier %d", link);
RETURN_FALSE;
doc->attributes = strdup(objrec);
doc->bodytag = NULL;
doc->size = strlen(doc->data);
- return_value->value.lval = php3_list_insert(doc,HwSG(le_document));
+ return_value->value.lval = zend_list_insert(doc,HwSG(le_document));
return_value->type = IS_LONG;
} else {
if (array_init(return_value) == FAILURE) {
convert_to_long(arg2);
link = arg1->value.lval;
rootid = arg2->value.lval;
- ptr = php3_list_find(link,&type);
+ ptr = zend_list_find(link,&type);
if(!ptr || (type!=HwSG(le_socketp) && type!=HwSG(le_psocketp))) {
php_error(E_WARNING,"Unable to find file identifier %d",link);
RETURN_FALSE;
}
*/ link=argv[0]->value.lval;
id=argv[1]->value.lval;
- ptr = php3_list_find(link,&type);
+ ptr = zend_list_find(link,&type);
if(!ptr || (type!=HwSG(le_socketp) && type!=HwSG(le_psocketp))) {
php_error(E_WARNING,"Unable to find file identifier %d", link);
RETURN_FALSE;
doc->bodytag = bodytag;
doc->size = count;
/* fprintf(stderr, "size = %d\n", count); */
- return_value->value.lval = php3_list_insert(doc,HwSG(le_document));
+ return_value->value.lval = zend_list_insert(doc,HwSG(le_document));
return_value->type = IS_LONG;
}
}
convert_to_long(arg2);
link=arg1->value.lval;
id=arg2->value.lval;
- ptr = php3_list_find(link,&type);
+ ptr = zend_list_find(link,&type);
if(!ptr || (type!=HwSG(le_socketp) && type!=HwSG(le_psocketp))) {
php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
doc->attributes = attributes;
doc->bodytag = NULL;
doc->size = count;
- return_value->value.lval = php3_list_insert(doc,HwSG(le_document));
+ return_value->value.lval = zend_list_insert(doc,HwSG(le_document));
return_value->type = IS_LONG;
}
}
convert_to_long(arg3);
link=arg1->value.lval;
id=arg2->value.lval;
- ptr = php3_list_find(link,&type);
+ ptr = zend_list_find(link,&type);
if(!ptr || (type!=HwSG(le_socketp) && type!=HwSG(le_psocketp))) {
php_error(E_WARNING,"Unable to find connection identifier %d",link);
RETURN_FALSE;
}
doc=arg3->value.lval;
- docptr = php3_list_find(doc,&type);
+ docptr = zend_list_find(doc,&type);
if(!docptr || (type!=HwSG(le_document))) {
php_error(E_WARNING,"Unable to find document identifier %d",doc);
RETURN_FALSE;
doc->attributes = strdup(arg1->value.str.val);
doc->bodytag = NULL;
doc->size = arg3->value.lval;
- return_value->value.lval = php3_list_insert(doc,HwSG(le_document));
+ return_value->value.lval = zend_list_insert(doc,HwSG(le_document));
return_value->type = IS_LONG;
}
/* }}} */
}
convert_to_long(arg1);
id=arg1->value.lval;
- ptr = php3_list_find(id,&type);
+ ptr = zend_list_find(id,&type);
if(!ptr || (type!=HwSG(le_document))) {
php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
}
- php3_list_delete(id);
+ zend_list_delete(id);
RETURN_TRUE;
}
/* }}} */
}
convert_to_long(arg1);
id=arg1->value.lval;
- ptr = php3_list_find(id,&type);
+ ptr = zend_list_find(id,&type);
if(!ptr || (type!=HwSG(le_document))) {
php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
}
- if(php3_header())
+ if(php_header())
php_write(ptr->data, ptr->size);
RETURN_TRUE;
convert_to_long(argv[0]);
id=argv[0]->value.lval;
- ptr = php3_list_find(id,&type);
+ ptr = zend_list_find(id,&type);
if(!ptr || (type!=HwSG(le_document))) {
php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
convert_to_long(argv[0]);
id=argv[0]->value.lval;
- ptr = php3_list_find(id,&type);
+ ptr = zend_list_find(id,&type);
if(!ptr || (type!=HwSG(le_document))) {
php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
convert_to_long(argv[0]);
convert_to_string(argv[1]);
id=argv[0]->value.lval;
- ptr = php3_list_find(id,&type);
+ ptr = zend_list_find(id,&type);
if(!ptr || (type!=HwSG(le_document))) {
php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
}
convert_to_long(arg1);
id=arg1->value.lval;
- ptr = php3_list_find(id,&type);
+ ptr = zend_list_find(id,&type);
if(!ptr || (type!=HwSG(le_document))) {
php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
}
convert_to_long(arg1);
id=arg1->value.lval;
- ptr = php3_list_find(id,&type);
+ ptr = zend_list_find(id,&type);
if(!ptr || (type!=HwSG(le_document))) {
php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
convert_to_long(arg2);
link=arg1->value.lval;
id=arg2->value.lval;
- ptr = php3_list_find(link,&type);
+ ptr = zend_list_find(link,&type);
if(!ptr || (type!=HwSG(le_socketp) && type!=HwSG(le_psocketp))) {
php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
convert_to_long(arg2);
link=arg1->value.lval;
id=arg2->value.lval;
- ptr = php3_list_find(link,&type);
+ ptr = zend_list_find(link,&type);
if(!ptr || (type!=HwSG(le_socketp) && type!=HwSG(le_psocketp))) {
php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
convert_to_long_ex(arg2);
link=(*arg1)->value.lval;
id=(*arg2)->value.lval;
- ptr = php3_list_find(link,&type);
+ ptr = zend_list_find(link,&type);
if(!ptr || (type!=HwSG(le_socketp) && type!=HwSG(le_psocketp))) {
php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
convert_to_long_ex(arg2);
link=(*arg1)->value.lval;
id=(*arg2)->value.lval;
- ptr = php3_list_find(link,&type);
+ ptr = zend_list_find(link,&type);
if(!ptr || (type!=HwSG(le_socketp) && type!=HwSG(le_psocketp))) {
php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
convert_to_long_ex(arg2);
link=(*arg1)->value.lval;
id=(*arg2)->value.lval;
- ptr = php3_list_find(link,&type);
+ ptr = zend_list_find(link,&type);
if(!ptr || (type!=HwSG(le_socketp) && type!=HwSG(le_psocketp))) {
php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
convert_to_long_ex(arg2);
link=(*arg1)->value.lval;
id=(*arg2)->value.lval;
- ptr = php3_list_find(link,&type);
+ ptr = zend_list_find(link,&type);
if(!ptr || (type!=HwSG(le_socketp) && type!=HwSG(le_psocketp))) {
php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
convert_to_long_ex(arg2);
link=(*arg1)->value.lval;
id=(*arg2)->value.lval;
- ptr = php3_list_find(link,&type);
+ ptr = zend_list_find(link,&type);
if(!ptr || (type!=HwSG(le_socketp) && type!=HwSG(le_psocketp))) {
php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
convert_to_long_ex(arg2);
link=(*arg1)->value.lval;
id=(*arg2)->value.lval;
- ptr = php3_list_find(link,&type);
+ ptr = zend_list_find(link,&type);
if(!ptr || (type!=HwSG(le_socketp) && type!=HwSG(le_psocketp))) {
php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
query=(*arg2)->value.str.val;
maxhits=(*arg3)->value.lval;
if (maxhits < 0) maxhits=0x7FFFFFFF;
- ptr = php3_list_find(link,&type);
+ ptr = zend_list_find(link,&type);
if(!ptr || (type!=HwSG(le_socketp) && type!=HwSG(le_psocketp))) {
php_error(E_WARNING,"Unable to find file identifier %d",link);
RETURN_FALSE;
query=(*arg2)->value.str.val;
maxhits=(*arg3)->value.lval;
if (maxhits < 0) maxhits=0x7FFFFFFF;
- ptr = php3_list_find(link,&type);
+ ptr = zend_list_find(link,&type);
if(!ptr || (type!=HwSG(le_socketp) && type!=HwSG(le_psocketp))) {
php_error(E_WARNING,"Unable to find file identifier %d",link);
RETURN_FALSE;
query=(*arg3)->value.str.val;
maxhits=(*arg4)->value.lval;
if (maxhits < 0) maxhits=0x7FFFFFFF;
- ptr = php3_list_find(link,&type);
+ ptr = zend_list_find(link,&type);
if(!ptr || (type!=HwSG(le_socketp) && type!=HwSG(le_psocketp))) {
php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
query=(*arg3)->value.str.val;
maxhits=(*arg4)->value.lval;
if (maxhits < 0) maxhits=0x7FFFFFFF;
- ptr = php3_list_find(link,&type);
+ ptr = zend_list_find(link,&type);
if(!ptr || (type!=HwSG(le_socketp) && type!=HwSG(le_psocketp))) {
php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
convert_to_long_ex(arg2);
link=(*arg1)->value.lval;
id=(*arg2)->value.lval;
- ptr = php3_list_find(link,&type);
+ ptr = zend_list_find(link,&type);
if(!ptr || (type!=HwSG(le_socketp) && type!=HwSG(le_psocketp))) {
php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
convert_to_long_ex(arg2);
link=(*arg1)->value.lval;
id=(*arg2)->value.lval;
- ptr = php3_list_find(link,&type);
+ ptr = zend_list_find(link,&type);
if(!ptr || (type!=HwSG(le_socketp) && type!=HwSG(le_psocketp))) {
php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
convert_to_long_ex(arg2);
link=(*arg1)->value.lval;
id=(*arg2)->value.lval;
- ptr = php3_list_find(link,&type);
+ ptr = zend_list_find(link,&type);
if(!ptr || (type!=HwSG(le_socketp) && type!=HwSG(le_psocketp))) {
php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
convert_to_long_ex(arg2);
link=(*arg1)->value.lval;
id=(*arg2)->value.lval;
- ptr = (hw_connection *) php3_list_find(link,&type);
+ ptr = (hw_connection *) zend_list_find(link,&type);
if(!ptr || (type!=HwSG(le_socketp) && type!=HwSG(le_psocketp))) {
php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
}
convert_to_long_ex(arg1);
link = (*arg1)->value.lval;
- ptr = php3_list_find(link,&type);
+ ptr = zend_list_find(link,&type);
if(!ptr || (type!=HwSG(le_socketp) && type!=HwSG(le_psocketp))) {
php_error(E_WARNING,"Unable to find file identifier %d",link);
RETURN_FALSE;
link = (*arg1)->value.lval;
name=(*arg2)->value.str.val;
passwd=(*arg3)->value.str.val;
- ptr = php3_list_find(link,&type);
+ ptr = zend_list_find(link,&type);
if(!ptr || (type!=HwSG(le_socketp) && type!=HwSG(le_psocketp))) {
php_error(E_WARNING,"Unable to find file identifier %d",link);
RETURN_FALSE;
convert_to_long_ex(arg4);
link = (*arg1)->value.lval;
retcoll=(*arg4)->value.lval;
- ptr = php3_list_find(link,&type);
+ ptr = zend_list_find(link,&type);
if(!ptr || (type!=HwSG(le_socketp) && type!=HwSG(le_psocketp))) {
php_error(E_WARNING,"Unable to find file identifier %d",link);
RETURN_FALSE;
convert_to_array_ex(arg3);
link = (*arg1)->value.lval;
id=(*arg2)->value.lval;
- ptr = php3_list_find(link,&type);
+ ptr = zend_list_find(link,&type);
if(!ptr || (type!=HwSG(le_socketp) && type!=HwSG(le_psocketp))) {
php_error(E_WARNING,"Unable to find file identifier %d",link);
RETURN_FALSE;
}
link = (*argv[0])->value.lval;
id = (*argv[1])->value.lval;
- ptr = php3_list_find(link,&type);
+ ptr = zend_list_find(link,&type);
if(!ptr || (type!=HwSG(le_socketp) && type!=HwSG(le_psocketp))) {
php_error(E_WARNING,"Unable to find file identifier %d",link);
RETURN_FALSE;
convert_to_long_ex(arg2);
link=(*arg1)->value.lval;
id=(*arg2)->value.lval;
- ptr = php3_list_find(link,&type);
+ ptr = zend_list_find(link,&type);
if(!ptr || (type!=HwSG(le_socketp) && type!=HwSG(le_psocketp))) {
php_error(E_WARNING,"Unable to find file identifier %d",link);
RETURN_FALSE;
link=(*arg1)->value.lval;
servid=(*arg2)->value.lval;
id=(*arg3)->value.lval;
- ptr = php3_list_find(link,&type);
+ ptr = zend_list_find(link,&type);
if(!ptr || (type!=HwSG(le_socketp) && type!=HwSG(le_psocketp))) {
php3_error(E_WARNING,"Unable to find file identifier %d",link);
RETURN_FALSE;
rootid=(*arg2)->value.lval;
sourceid=(*arg3)->value.lval;
destid=(*arg4)->value.lval;
- ptr = php3_list_find(link,&type);
+ ptr = zend_list_find(link,&type);
if(!ptr || (type!=HwSG(le_socketp) && type!=HwSG(le_psocketp))) {
php_error(E_WARNING,"Unable to find file identifier %d",link);
RETURN_FALSE;
}
convert_to_long_ex(arg1);
link=(*arg1)->value.lval;
- ptr = php3_list_find(link,&type);
+ ptr = zend_list_find(link,&type);
if(!ptr || (type!=HwSG(le_socketp) && type!=HwSG(le_psocketp))) {
php_error(E_WARNING,"Unable to find file identifier %d",link);
RETURN_FALSE;
icap_le_struct = emalloc(sizeof(pils));
icap_le_struct->icap_stream = icap_stream;
icap_le_struct->flags = 0;
- ind = php3_list_insert(icap_le_struct, le_icap);
+ ind = zend_list_insert(icap_le_struct, le_icap);
RETURN_LONG(ind);
}
}
convert_to_long(streamind);
ind = streamind->value.lval;
- icap_le_struct = (pils *)php3_list_find(ind, &ind_type);
+ icap_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!icap_le_struct ) {
php3_error(E_WARNING, "Unable to find stream pointer");
RETURN_FALSE;
flags = options->value.lval;
icap_le_struct->flags = flags;
}
- php3_list_delete(ind);
+ zend_list_delete(ind);
RETURN_TRUE;
}
/* }}} */
convert_to_long(streamind);
ind = streamind->value.lval;
- icap_le_struct = (pils *)php3_list_find(ind, &ind_type);
+ icap_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!icap_le_struct ) {
php3_error(E_WARNING, "Unable to find stream pointer");
RETURN_FALSE;
ind = streamind->value.lval;
- icap_le_struct = (pils *)php3_list_find(ind, &ind_type);
+ icap_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!icap_le_struct ) {
php3_error(E_WARNING, "Unable to find stream pointer");
convert_to_long(streamind);
convert_to_long(eventid);
ind = streamind->value.lval;
- icap_le_struct = (pils *)php3_list_find(ind, &ind_type);
+ icap_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!icap_le_struct ) {
php3_error(E_WARNING, "Unable to find stream pointer");
RETURN_FALSE;
if(myargc == 3) convert_to_array(enddate);
ind = streamind->value.lval;
- icap_le_struct = (pils *)php3_list_find(ind, &ind_type);
+ icap_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!icap_le_struct ) {
php3_error(E_WARNING, "Unable to find stream pointer");
convert_to_string(calendar);
ind = streamind->value.lval;
- icap_le_struct = (pils *)php3_list_find(ind, &ind_type);
+ icap_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!icap_le_struct ) {
php3_error(E_WARNING, "Unable to find stream pointer");
RETURN_FALSE;
convert_to_string(dest_calendar);
ind = streamind->value.lval;
- icap_le_struct = (pils *)php3_list_find(ind, &ind_type);
+ icap_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!icap_le_struct ) {
php3_error(E_WARNING, "Unable to find stream pointer");
RETURN_FALSE;
convert_to_array(time);
ind = streamind->value.lval;
- icap_le_struct = (pils *)php3_list_find(ind, &ind_type);
+ icap_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!icap_le_struct ) {
php3_error(E_WARNING, "Unable to find stream pointer");
RETURN_FALSE;
convert_to_string(calendar);
ind = streamind->value.lval;
- icap_le_struct = (pils *)php3_list_find(ind, &ind_type);
+ icap_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!icap_le_struct ) {
php3_error(E_WARNING, "Unable to find stream pointer");
RETURN_FALSE;
convert_to_long(uid);
ind = streamind->value.lval;
- icap_le_struct = (pils *)php3_list_find(ind, &ind_type);
+ icap_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!icap_le_struct ) {
php3_error(E_WARNING, "Unable to find stream pointer");
RETURN_FALSE;
ind = streamind->value.lval;
- icap_le_struct = (pils *)php3_list_find(ind, &ind_type);
+ icap_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!icap_le_struct ) {
php3_error(E_WARNING, "Unable to find stream pointer");
ind = streamind->value.lval;
- icap_le_struct = (pils *)php3_list_find(ind, &ind_type);
+ icap_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!icap_le_struct ) {
php3_error(E_WARNING, "Unable to find stream pointer");
imap_le_struct = emalloc(sizeof(pils));
imap_le_struct->imap_stream = imap_stream;
imap_le_struct->flags = cl_flags;
- ind = php3_list_insert(imap_le_struct, le_imap);
+ ind = zend_list_insert(imap_le_struct, le_imap);
RETURN_LONG(ind);
}
convert_to_long(streamind);
ind = streamind->value.lval;
- imap_le_struct = (pils *)php3_list_find(ind, &ind_type);
+ imap_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!imap_le_struct || ind_type != le_imap) {
php_error(E_WARNING, "Unable to find stream pointer");
RETURN_FALSE;
if (myargc == 4) convert_to_string(flags);
ind = streamind->value.lval;
- imap_le_struct = (pils *)php3_list_find( ind, &ind_type );
+ imap_le_struct = (pils *)zend_list_find( ind, &ind_type );
if ( !imap_le_struct || ind_type != le_imap ) {
php_error(E_WARNING, "Unable to find stream pointer");
ind = streamind->value.lval;
- imap_le_struct = (pils *)php3_list_find(ind, &ind_type);
+ imap_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!imap_le_struct || ind_type != le_imap) {
php_error(E_WARNING, "Unable to find stream pointer");
convert_to_long( streamind );
ind = streamind->value.lval;
- imap_le_struct = (pils *)php3_list_find( ind, &ind_type );
+ imap_le_struct = (pils *)zend_list_find( ind, &ind_type );
if ( !imap_le_struct || ind_type != le_imap ) {
php_error( E_WARNING, "Unable to find stream pointer" );
RETURN_FALSE;
}
convert_to_long(streamind);
ind = streamind->value.lval;
- imap_le_struct = (pils *)php3_list_find(ind, &ind_type);
+ imap_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!imap_le_struct || ind_type != le_imap) {
php_error(E_WARNING, "Unable to find stream pointer");
RETURN_FALSE;
ind = streamind->value.lval;
- imap_le_struct = (pils *)php3_list_find(ind, &ind_type);
+ imap_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!imap_le_struct || ind_type != le_imap) {
php_error(E_WARNING, "Unable to find stream pointer");
}
convert_to_long(streamind);
ind = streamind->value.lval;
- imap_le_struct = (pils *)php3_list_find(ind, &ind_type);
+ imap_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!imap_le_struct || ind_type != le_imap) {
php_error(E_WARNING, "Unable to find stream pointer");
RETURN_FALSE;
}
imap_le_struct->flags = flags;
}
- php3_list_delete(ind);
+ zend_list_delete(ind);
RETURN_TRUE;
}
/* }}} */
ind = streamind->value.lval;
- imap_le_struct = (pils *)php3_list_find(ind, &ind_type);
+ imap_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!imap_le_struct || ind_type != le_imap) {
php_error(E_WARNING, "Unable to find stream pointer");
if(myargc == 3) convert_to_long(flags);
ind = streamind->value.lval;
- imap_le_struct = (pils *)php3_list_find(ind, &ind_type);
+ imap_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!imap_le_struct || ind_type != le_imap) {
php_error(E_WARNING, "Unable to find stream pointer");
RETURN_FALSE;
if (myargcount == 3) convert_to_long(flags);
ind = streamind->value.lval;
- imap_le_struct = (pils *)php3_list_find(ind, &ind_type);
+ imap_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!imap_le_struct || ind_type != le_imap) {
php_error(E_WARNING, "Unable to find stream pointer");
RETURN_FALSE;
if(myargcount == 4) convert_to_long(options);
ind = streamind->value.lval;
- imap_le_struct = (pils *)php3_list_find(ind, &ind_type);
+ imap_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!imap_le_struct || ind_type != le_imap) {
php_error(E_WARNING, "Unable to find stream pointer");
RETURN_FALSE;
ind = streamind->value.lval;
- imap_le_struct = (pils *)php3_list_find(ind, &ind_type);
+ imap_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!imap_le_struct || ind_type != le_imap) {
php_error(E_WARNING, "Unable to find stream pointer");
RETURN_FALSE;
ind = streamind->value.lval;
- imap_le_struct = (pils *)php3_list_find(ind, &ind_type);
+ imap_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!imap_le_struct || ind_type != le_imap) {
php_error(E_WARNING, "Unable to find stream pointer");
RETURN_FALSE;
ind = streamind->value.lval;
- imap_le_struct = (pils *)php3_list_find(ind, &ind_type);
+ imap_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!imap_le_struct || ind_type != le_imap) {
php_error(E_WARNING, "Unable to find stream pointer");
RETURN_FALSE;
ind = streamind->value.lval;
- imap_le_struct = (pils *)php3_list_find(ind, &ind_type);
+ imap_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!imap_le_struct || ind_type != le_imap) {
php_error(E_WARNING, "Unable to find stream pointer");
RETURN_FALSE;
ind = streamind->value.lval;
- imap_le_struct = (pils *)php3_list_find(ind, &ind_type);
+ imap_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!imap_le_struct || ind_type != le_imap) {
php_error(E_WARNING, "Unable to find stream pointer");
RETURN_FALSE;
ind = streamind->value.lval;
- imap_le_struct = (pils *)php3_list_find(ind, &ind_type);
+ imap_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!imap_le_struct || ind_type != le_imap) {
php_error(E_WARNING, "Unable to find stream pointer");
RETURN_FALSE;
ind = streamind->value.lval;
- imap_le_struct = (pils *)php3_list_find(ind, &ind_type);
+ imap_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!imap_le_struct || ind_type != le_imap) {
php_error(E_WARNING, "Unable to find stream pointer");
RETURN_FALSE;
ind = streamind->value.lval;
- imap_le_struct = (pils *)php3_list_find(ind, &ind_type);
+ imap_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!imap_le_struct || ind_type != le_imap) {
php_error(E_WARNING, "Unable to find stream pointer");
RETURN_FALSE;
ind = streamind->value.lval;
- imap_le_struct = (pils *)php3_list_find(ind, &ind_type);
+ imap_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!imap_le_struct || ind_type != le_imap) {
php_error(E_WARNING, "Unable to find stream pointer");
RETURN_FALSE;
if(myargc == 5) convert_to_string(defaulthost);
ind = streamind->value.lval;
- imap_le_struct = (pils *)php3_list_find(ind, &ind_type);
+ imap_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!imap_le_struct || ind_type != le_imap) {
php_error(E_WARNING, "Unable to find stream pointer");
RETURN_FALSE;
ind = streamind->value.lval;
- imap_le_struct = (pils *)php3_list_find(ind, &ind_type);
+ imap_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!imap_le_struct || ind_type != le_imap) {
php_error(E_WARNING, "Unable to find stream pointer");
RETURN_FALSE;
ind = streamind->value.lval;
- imap_le_struct = (pils *)php3_list_find(ind, &ind_type);
+ imap_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!imap_le_struct || ind_type != le_imap) {
php_error(E_WARNING, "Unable to find stream pointer");
RETURN_FALSE;
convert_to_string(folder);
ind = streamind->value.lval;
- imap_le_struct = (pils *)php3_list_find(ind, &ind_type);
+ imap_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!imap_le_struct || ind_type != le_imap) {
php_error(E_WARNING, "Unable to find stream pointer");
RETURN_FALSE;
ind = streamind->value.lval;
- imap_le_struct = (pils *)php3_list_find( ind, &ind_type );
+ imap_le_struct = (pils *)zend_list_find( ind, &ind_type );
if ( !imap_le_struct || ind_type != le_imap ) {
php_error( E_WARNING, "Unable to find stream pointer" );
if(myargc == 4) convert_to_long(flags);
ind = streamind->value.lval;
- imap_le_struct = (pils *)php3_list_find( ind, &ind_type );
+ imap_le_struct = (pils *)zend_list_find( ind, &ind_type );
if ( !imap_le_struct || ind_type != le_imap ) {
php_error( E_WARNING, "Unable to find stream pointer" );
ind = streamind->value.lval;
- imap_le_struct = (pils *)php3_list_find(ind, &ind_type);
+ imap_le_struct = (pils *)zend_list_find(ind, &ind_type);
if(!imap_le_struct || ind_type != le_imap) {
php_error(E_WARNING, "Unable to find stream pointer");
if(myargc==4) convert_to_long(flags);
ind = streamind->value.lval;
- imap_le_struct = (pils *)php3_list_find(ind, &ind_type);
+ imap_le_struct = (pils *)zend_list_find(ind, &ind_type);
if(!imap_le_struct || ind_type != le_imap) {
php_error(E_WARNING, "Unable to find stream pointer");
RETURN_FALSE;
convert_to_string(flag);
if(myargc==4) convert_to_long(flags);
ind = streamind->value.lval;
- imap_le_struct = (pils *)php3_list_find(ind, &ind_type);
+ imap_le_struct = (pils *)zend_list_find(ind, &ind_type);
if(!imap_le_struct || ind_type != le_imap) {
php_error(E_WARNING, "Unable to find stream pointer");
RETURN_FALSE;
if(myargc==4) convert_to_long(flags);
ind = streamind->value.lval;
- imap_le_struct = (pils *)php3_list_find(ind, &ind_type);
+ imap_le_struct = (pils *)zend_list_find(ind, &ind_type);
if(!imap_le_struct || ind_type != le_imap) {
php_error(E_WARNING, "Unable to find stream pointer");
RETURN_FALSE;
if(myargc == 3) convert_to_long(flags);
ind = streamind->value.lval;
- imap_le_struct = (pils *)php3_list_find(ind, &ind_type);
+ imap_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!imap_le_struct || ind_type != le_imap) {
php_error(E_WARNING, "Unable to find stream pointer");
RETURN_FALSE;
ind = streamind->value.lval;
- imap_le_struct = (pils *)php3_list_find(ind, &ind_type);
+ imap_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!imap_le_struct || ind_type != le_imap) {
php_error(E_WARNING, "Unable to find stream pointer");
ind = streamind->value.lval;
- imap_le_struct = (pils *)php3_list_find(ind, &ind_type);
+ imap_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!imap_le_struct || ind_type != le_imap) {
php_error(E_WARNING, "Unable to find stream pointer");
convert_to_long(flags);
ind = streamind->value.lval;
- imap_le_struct = (pils *)php3_list_find(ind, &ind_type);
+ imap_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!imap_le_struct || ind_type != le_imap) {
php_error(E_WARNING, "Unable to find stream pointer");
convert_to_string(section);
ind = streamind->value.lval;
- imap_le_struct = (pils *)php3_list_find(ind, &ind_type);
+ imap_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!imap_le_struct || ind_type != le_imap) {
php_error(E_WARNING, "Unable to find stream pointer");
convert_to_string(sequence);
ind = streamind->value.lval;
- imap_le_struct = (pils *)php3_list_find(ind, &ind_type);
+ imap_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!imap_le_struct || ind_type != le_imap) {
php_error(E_WARNING, "Unable to find stream pointer");
}
ind = streamind->value.lval;
- imap_le_struct = (pils *)php3_list_find(ind, &ind_type);
+ imap_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!imap_le_struct || !IS_STREAM(ind_type)) {
php3_error(E_WARNING, "Unable to find stream pointer");
RETURN_FALSE;
db_handle = (isc_db_handle) le->ptr;
}
- return_value->value.lval = php3_list_insert(db_handle, IBASE_GLOBAL(php3_ibase_module).le_plink);
+ return_value->value.lval = zend_list_insert(db_handle, IBASE_GLOBAL(php3_ibase_module).le_plink);
return_value->type = IS_LONG;
} else {
list_entry *index_ptr, new_index_ptr;
RETURN_FALSE;
}
link = (int) index_ptr->ptr;
- ptr = php3_list_find(link,&type); /* check if the link is still there */
+ ptr = zend_list_find(link,&type); /* check if the link is still there */
if (ptr && (type==IBASE_GLOBAL(php3_ibase_module).le_link || type==IBASE_GLOBAL(php3_ibase_module).le_plink)) {
return_value->value.lval = IBASE_GLOBAL(php3_ibase_module).default_link = link;
return_value->type = IS_LONG;
}
/* add it to the list */
- return_value->value.lval = php3_list_insert(db_handle, IBASE_GLOBAL(php3_ibase_module).le_link);
+ return_value->value.lval = zend_list_insert(db_handle, IBASE_GLOBAL(php3_ibase_module).le_link);
return_value->type = IS_LONG;
/* add it to the hash */
break;
}
- db_handle = (isc_db_handle) php3_list_find(id, &type);
+ db_handle = (isc_db_handle) zend_list_find(id, &type);
if (type!=IBASE_GLOBAL(php3_ibase_module).le_link && type!=IBASE_GLOBAL(php3_ibase_module).le_plink) {
php_error(E_WARNING, "%d is not an InterBase link index",id);
RETURN_FALSE;
}
- php3_list_delete(ibase_link->value.lval);
+ zend_list_delete(ibase_link->value.lval);
RETURN_TRUE;
}
/* }}} */
break;
}
- db_handle = (isc_db_handle) php3_list_find(id, &type);
+ db_handle = (isc_db_handle) zend_list_find(id, &type);
if (type!=IBASE_GLOBAL(php3_ibase_module).le_link && type!=IBASE_GLOBAL(php3_ibase_module).le_plink) {
php_error(E_WARNING, "%d is not an InterBase link index", id);
RETURN_FALSE;
ibase_result->sqlda = osqlda;
ibase_result->trans = tr_handle;
ibase_result->commitok = 1;
- return_value->value.lval = php3_list_insert(ibase_result, php3_ibase_module.le_result);
+ return_value->value.lval = zend_list_insert(ibase_result, php3_ibase_module.le_result);
return_value->type = IS_LONG;
} else {
if (status[0] == 1 && status[1]) {
}
convert_to_long(result);
- ibase_result = (ibase_result_handle *) php3_list_find(result->value.lval, &type);
+ ibase_result = (ibase_result_handle *) zend_list_find(result->value.lval, &type);
if (type!=IBASE_GLOBAL(php3_ibase_module).le_result) {
php_error(E_WARNING,"%d is not an InterBase result index", result->value.lval);
RETURN_FALSE;
}
- ibase_result = (ibase_result_handle *) php3_list_find(result->value.lval,&type);
+ ibase_result = (ibase_result_handle *) zend_list_find(result->value.lval,&type);
if (type!=IBASE_GLOBAL(php3_ibase_module).le_result) {
php_error(E_WARNING,"%d is not an InterBase result index",result->value.lval);
RETURN_FALSE;
}
- php3_list_delete(result->value.lval);
+ zend_list_delete(result->value.lval);
RETURN_TRUE;
}
/* }}} */
break;
}
- db_handle = (isc_db_handle) php3_list_find(id, &type);
+ db_handle = (isc_db_handle) zend_list_find(id, &type);
if (type!=IBASE_GLOBAL(php3_ibase_module).le_link && type!=IBASE_GLOBAL(php3_ibase_module).le_plink) {
php_error(E_WARNING, "%d is not an InterBase link index", id);
RETURN_FALSE;
ibase_query->sqlda = isqlda;
ibase_query->trans = tr_handle;
ibase_query->alloced = 0;
- return_value->value.lval = php3_list_insert(ibase_query, php3_ibase_module.le_query);
+ return_value->value.lval = zend_list_insert(ibase_query, php3_ibase_module.le_query);
return_value->type = IS_LONG;
}
/* }}} */
RETURN_FALSE;
}
- ibase_query = (ibase_query_handle *) php3_list_find(query->value.lval,&type);
+ ibase_query = (ibase_query_handle *) zend_list_find(query->value.lval,&type);
if (type!=IBASE_GLOBAL(php3_ibase_module).le_query) {
php_error(E_WARNING,"%d is not an InterBase query index",query->value.lval);
RETURN_FALSE;
}
- ibase_query = (ibase_query_handle *) php3_list_find(query->value.lval,&type);
+ ibase_query = (ibase_query_handle *) zend_list_find(query->value.lval,&type);
if (type!=IBASE_GLOBAL(php3_ibase_module).le_query) {
php_error(E_WARNING,"%d is not an InterBase query index", query->value.lval);
ibase_result = (ibase_result_handle *) emalloc(sizeof(ibase_result_handle));
ibase_result->result = ibase_query->query;
ibase_result->sqlda = osqlda;
- return_value->value.lval = php3_list_insert(ibase_result, IBASE_GLOBAL(php3_ibase_module).le_result);
+ return_value->value.lval = zend_list_insert(ibase_result, IBASE_GLOBAL(php3_ibase_module).le_result);
return_value->type = IS_LONG;
}
/* }}} */
RETURN_FALSE;
}
- ibase_query = (ibase_query_handle *) php3_list_find(query->value.lval, &type);
+ ibase_query = (ibase_query_handle *) zend_list_find(query->value.lval, &type);
if (type!=IBASE_GLOBAL(php3_ibase_module).le_query) {
php_error(E_WARNING,"%d is not an InterBase query index", query->value.lval);
RETURN_FALSE;
}
- php3_list_delete(query->value.lval);
+ zend_list_delete(query->value.lval);
RETURN_TRUE;
}
/* }}} */
case IS_OBJECT:
zend_hash_index_find(argv[i]->value.obj.properties, 0, (void*)&handle);
- arg = php3_list_find((*handle)->value.lval, &type);
+ arg = zend_list_find((*handle)->value.lval, &type);
break;
case IS_BOOL:
jmethodID invoke = (*jenv)->GetStaticMethodID(jenv, php_reflect, "Invoke",
"(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;J)V");
zend_hash_index_find(object->value.obj.properties, 0, (void**) &handle);
- obj = php3_list_find((*handle)->value.lval, &type);
+ obj = zend_list_find((*handle)->value.lval, &type);
method = (*jenv)->NewStringUTF(jenv, function_name->element.value.str.val);
(pval*)(long)result = return_value;
/* get the object */
zend_hash_index_find(property_reference->object->value.obj.properties,
0, (void **) &pobject);
- obj = php3_list_find((*pobject)->value.lval,&type);
+ obj = zend_list_find((*pobject)->value.lval,&type);
(pval*)(long)result = &presult;
var_uninit(&presult);
handle = (pval *) emalloc(sizeof(pval));
handle->type = IS_LONG;
handle->value.lval =
- php3_list_insert((*jenv)->NewGlobalRef(jenv,value), le_jobject);
+ zend_list_insert((*jenv)->NewGlobalRef(jenv,value), le_jobject);
pval_copy_constructor(handle);
INIT_PZVAL(handle);
zend_hash_index_update(presult->value.obj.properties, 0,
if ( ldap == NULL ) {
RETURN_FALSE;
} else {
- RETURN_LONG(php3_list_insert((void*)ldap,LDAP_GLOBAL(le_link)));
+ RETURN_LONG(zend_list_insert((void*)ldap,LDAP_GLOBAL(le_link)));
}
}
LDAP_TLS_VARS;
convert_to_long_ex(link);
- ldap = (LDAP *) php3_list_find((*link)->value.lval, &type);
+ ldap = (LDAP *) zend_list_find((*link)->value.lval, &type);
if (!ldap || !(type == LDAP_GLOBAL(le_link))) {
php_error(E_WARNING, "%d is not a LDAP link index",(*link)->value.lval);
LDAP_TLS_VARS;
convert_to_long_ex(result);
- ldap_result = (LDAPMessage *)php3_list_find((*result)->value.lval, &type);
+ ldap_result = (LDAPMessage *)zend_list_find((*result)->value.lval, &type);
if (!ldap_result || type != LDAP_GLOBAL(le_result)) {
php_error(E_WARNING, "%d is not a LDAP result index",(*result)->value.lval);
LDAP_TLS_VARS;
convert_to_long_ex(result);
- ldap_result_entry = (LDAPMessage *)php3_list_find((*result)->value.lval, &type);
+ ldap_result_entry = (LDAPMessage *)zend_list_find((*result)->value.lval, &type);
if (!ldap_result_entry || type != LDAP_GLOBAL(le_result_entry)) {
php_error(E_WARNING, "%d is not a LDAP result entry index", (*result)->value.lval);
LDAP_TLS_VARS;
convert_to_long_ex(berp);
- ber = (BerElement *) php3_list_find((*berp)->value.lval, &type);
+ ber = (BerElement *) zend_list_find((*berp)->value.lval, &type);
if ( type != LDAP_GLOBAL(le_ber_entry)) {
php_error(E_WARNING, "%d is not a BerElement index",(*berp)->value.lval);
WRONG_PARAM_COUNT;
}
- php3_list_delete((*berp)->value.lval);
+ zend_list_delete((*berp)->value.lval);
RETURN_TRUE;
}
#endif
ldap = _get_ldap_link(link, list);
if (ldap == NULL) RETURN_FALSE;
- php3_list_delete((*link)->value.lval);
+ zend_list_delete((*link)->value.lval);
RETURN_TRUE;
}
/* }}} */
#endif
RETVAL_FALSE;
} else {
- RETVAL_LONG(php3_list_insert(ldap_result, LDAP_GLOBAL(le_result)));
+ RETVAL_LONG(zend_list_insert(ldap_result, LDAP_GLOBAL(le_result)));
}
if (ldap_attrs != NULL) {
if (ldap_result == NULL) {
RETVAL_FALSE;
} else {
- php3_list_delete((*result)->value.lval); /* Delete list entry and call registered destructor function */
+ zend_list_delete((*result)->value.lval); /* Delete list entry and call registered destructor function */
RETVAL_TRUE;
}
return;
if ((ldap_result_entry = ldap_first_entry(ldap, ldap_result)) == NULL) {
RETURN_FALSE;
} else {
- RETURN_LONG(php3_list_insert(ldap_result_entry, LDAP_GLOBAL(le_result_entry)));
+ RETURN_LONG(zend_list_insert(ldap_result_entry, LDAP_GLOBAL(le_result_entry)));
}
}
/* }}} */
if ((ldap_result_entry_next = ldap_next_entry(ldap, ldap_result_entry)) == NULL) {
RETURN_FALSE;
} else {
- RETURN_LONG(php3_list_insert(ldap_result_entry_next, LDAP_GLOBAL(le_result_entry)));
+ RETURN_LONG(zend_list_insert(ldap_result_entry_next, LDAP_GLOBAL(le_result_entry)));
}
}
/* }}} */
} else {
/* brep is passed by ref so we do not have to account for memory */
(*berp)->type=IS_LONG;
- (*berp)->value.lval=php3_list_insert(ber,LDAP_GLOBAL(le_ber_entry));
+ (*berp)->value.lval=zend_list_insert(ber,LDAP_GLOBAL(le_ber_entry));
RETVAL_STRING(attribute,1);
#ifdef WINDOWS
mcal_le_struct->mcal_stream = mcal_stream;
mcal_le_struct->event=calevent_new();
- ind = php3_list_insert(mcal_le_struct, le_mcal);
+ ind = zend_list_insert(mcal_le_struct, le_mcal);
RETURN_LONG(ind);
}
}
convert_to_long(streamind);
ind = streamind->value.lval;
- mcal_le_struct = (pils *)php3_list_find(ind, &ind_type);
+ mcal_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!mcal_le_struct ) {
php3_error(E_WARNING, "Unable to find stream pointer");
RETURN_FALSE;
flags = options->value.lval;
mcal_le_struct->flags = flags;
}
- php3_list_delete(ind);
+ zend_list_delete(ind);
RETURN_TRUE;
}
/* }}} */
convert_to_long(streamind);
ind = streamind->value.lval;
- mcal_le_struct = (pils *)php3_list_find(ind, &ind_type);
+ mcal_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!mcal_le_struct ) {
php3_error(E_WARNING, "Unable to find stream pointer");
RETURN_FALSE;
ind = streamind->value.lval;
- mcal_le_struct = (pils *)php3_list_find(ind, &ind_type);
+ mcal_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!mcal_le_struct ) {
php3_error(E_WARNING, "Unable to find stream pointer");
convert_to_long(streamind);
convert_to_long(eventid);
ind = streamind->value.lval;
- mcal_le_struct = (pils *)php3_list_find(ind, &ind_type);
+ mcal_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!mcal_le_struct ) {
php3_error(E_WARNING, "Unable to find stream pointer");
RETURN_FALSE;
}
convert_to_long(streamind);
ind = streamind->value.lval;
- mcal_le_struct = (pils *)php3_list_find(ind, &ind_type);
+ mcal_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!mcal_le_struct ) {
php3_error(E_WARNING, "Unable to find stream pointer");
RETURN_FALSE;
convert_to_long(streamind);
ind = streamind->value.lval;
- mcal_le_struct = (pils *)php3_list_find(ind, &ind_type);
+ mcal_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!mcal_le_struct ) {
php3_error(E_WARNING, "Unable to find stream pointer");
convert_to_string(calendar);
ind = streamind->value.lval;
- mcal_le_struct = (pils *)php3_list_find(ind, &ind_type);
+ mcal_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!mcal_le_struct ) {
php3_error(E_WARNING, "Unable to find stream pointer");
RETURN_FALSE;
convert_to_string(dest_calendar);
ind = streamind->value.lval;
- mcal_le_struct = (pils *)php3_list_find(ind, &ind_type);
+ mcal_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!mcal_le_struct ) {
php3_error(E_WARNING, "Unable to find stream pointer");
RETURN_FALSE;
convert_to_long(streamind);
ind = streamind->value.lval;
- mcal_le_struct = (pils *)php3_list_find(ind, &ind_type);
+ mcal_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!mcal_le_struct ) {
php3_error(E_WARNING, "Unable to find stream pointer");
RETURN_FALSE;
convert_to_string(calendar);
ind = streamind->value.lval;
- mcal_le_struct = (pils *)php3_list_find(ind, &ind_type);
+ mcal_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!mcal_le_struct ) {
php3_error(E_WARNING, "Unable to find stream pointer");
RETURN_FALSE;
convert_to_long(uid);
ind = streamind->value.lval;
- mcal_le_struct = (pils *)php3_list_find(ind, &ind_type);
+ mcal_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!mcal_le_struct ) {
php3_error(E_WARNING, "Unable to find stream pointer");
RETURN_FALSE;
ind = streamind->value.lval;
- mcal_le_struct = (pils *)php3_list_find(ind, &ind_type);
+ mcal_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!mcal_le_struct ) {
php3_error(E_WARNING, "Unable to find stream pointer");
ind = streamind->value.lval;
- mcal_le_struct = (pils *)php3_list_find(ind, &ind_type);
+ mcal_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!mcal_le_struct ) {
php3_error(E_WARNING, "Unable to find stream pointer");
ind = streamind->value.lval;
- mcal_le_struct = (pils *)php3_list_find(ind, &ind_type);
+ mcal_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!mcal_le_struct ) {
php3_error(E_WARNING, "Unable to find stream pointer");
ind = streamind->value.lval;
- mcal_le_struct = (pils *)php3_list_find(ind, &ind_type);
+ mcal_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!mcal_le_struct ) {
php3_error(E_WARNING, "Unable to find stream pointer");
ind = streamind->value.lval;
- mcal_le_struct = (pils *)php3_list_find(ind, &ind_type);
+ mcal_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!mcal_le_struct ) {
php3_error(E_WARNING, "Unable to find stream pointer");
ind = streamind->value.lval;
- mcal_le_struct = (pils *)php3_list_find(ind, &ind_type);
+ mcal_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!mcal_le_struct ) {
php3_error(E_WARNING, "Unable to find stream pointer");
ind = streamind->value.lval;
- mcal_le_struct = (pils *)php3_list_find(ind, &ind_type);
+ mcal_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!mcal_le_struct ) {
php3_error(E_WARNING, "Unable to find stream pointer");
ind = streamind->value.lval;
- mcal_le_struct = (pils *)php3_list_find(ind, &ind_type);
+ mcal_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!mcal_le_struct ) {
php3_error(E_WARNING, "Unable to find stream pointer");
ind = streamind->value.lval;
- mcal_le_struct = (pils *)php3_list_find(ind, &ind_type);
+ mcal_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!mcal_le_struct ) {
php3_error(E_WARNING, "Unable to find stream pointer");
ind = streamind->value.lval;
- mcal_le_struct = (pils *)php3_list_find(ind, &ind_type);
+ mcal_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!mcal_le_struct ) {
php3_error(E_WARNING, "Unable to find stream pointer");
convert_to_array(next);
ind = streamind->value.lval;
- mcal_le_struct = (pils *)php3_list_find(ind, &ind_type);
+ mcal_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!mcal_le_struct ) {
php3_error(E_WARNING, "Unable to find stream pointer");
ind = streamind->value.lval;
- mcal_le_struct = (pils *)php3_list_find(ind, &ind_type);
+ mcal_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!mcal_le_struct ) {
php3_error(E_WARNING, "Unable to find stream pointer");
convert_to_long(weekdays);
ind = streamind->value.lval;
- mcal_le_struct = (pils *)php3_list_find(ind, &ind_type);
+ mcal_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!mcal_le_struct ) {
php3_error(E_WARNING, "Unable to find stream pointer");
ind = streamind->value.lval;
- mcal_le_struct = (pils *)php3_list_find(ind, &ind_type);
+ mcal_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!mcal_le_struct ) {
php3_error(E_WARNING, "Unable to find stream pointer");
ind = streamind->value.lval;
- mcal_le_struct = (pils *)php3_list_find(ind, &ind_type);
+ mcal_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!mcal_le_struct ) {
php3_error(E_WARNING, "Unable to find stream pointer");
ind = streamind->value.lval;
- mcal_le_struct = (pils *)php3_list_find(ind, &ind_type);
+ mcal_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!mcal_le_struct ) {
php3_error(E_WARNING, "Unable to find stream pointer");
vsnprintf(buffer, sizeof(buffer)-1, format, args);
va_end(args);
buffer[sizeof(buffer)-1] = '\0';
- if (php3_header()) {
+ if (php_header()) {
php_printf("OCIDebug: %s<br>\n", buffer);
}
}
goto bail;
}
} else {
- if (php3_header()) {
+ if (php_header()) {
PHPWRITE(buffer,toread);
}
}
{
int ind;
- ind = php3_list_insert(conn,php3_velocis_module.le_link);
+ ind = zend_list_insert(conn,php3_velocis_module.le_link);
conn->hdbc = hdbc;
conn->index = ind;
VConn *conn;
int type;
- conn = php3_list_find(ind,&type);
+ conn = zend_list_find(ind,&type);
if ( !conn || type != php3_velocis_module.le_link ) {
return(NULL);
}
static void
velocis_del_conn(HashTable *list,int ind)
{
- php3_list_delete(ind);
+ zend_list_delete(ind);
}
static int
{
int ind;
- ind = php3_list_insert(res,php3_velocis_module.le_result);
+ ind = zend_list_insert(res,php3_velocis_module.le_result);
res->conn = conn;
res->index = ind;
Vresult *res;
int type;
- res = php3_list_find(ind,&type);
+ res = zend_list_find(ind,&type);
if ( !res || type != php3_velocis_module.le_result ) {
return(NULL);
}
static void
velocis_del_result(HashTable *list,int ind)
{
- php3_list_delete(ind);
+ zend_list_delete(ind);
}
/* Users functions */
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!=PDF_GLOBAL(le_pdf)) {
php3_error(E_WARNING,"Unable to find file identifier %d (type=%d)",id, type);
RETURN_FALSE;
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!=PDF_GLOBAL(le_pdf)) {
php3_error(E_WARNING,"Unable to find file identifier %d (type=%d)",id, type);
RETURN_FALSE;
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!=PDF_GLOBAL(le_pdf)) {
php3_error(E_WARNING,"Unable to find file identifier %d (type=%d)",id, type);
RETURN_FALSE;
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!=PDF_GLOBAL(le_pdf)) {
php3_error(E_WARNING,"Unable to find file identifier %d (type=%d)",id, type);
RETURN_FALSE;
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!=PDF_GLOBAL(le_pdf)) {
php3_error(E_WARNING,"Unable to find file identifier %d (type=%d)",id, type);
RETURN_FALSE;
if (0 > PDF_open_fp(pdf, fp)) {
RETURN_FALSE;
}
- id = php3_list_insert(pdf,PDF_GLOBAL(le_pdf));
+ id = zend_list_insert(pdf,PDF_GLOBAL(le_pdf));
RETURN_LONG(id);
}
/* }}} */
convert_to_long(arg1);
id=arg1->value.lval;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if(!pdf || type!=PDF_GLOBAL(le_pdf)) {
php3_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
}
- php3_list_delete(id);
+ zend_list_delete(id);
RETURN_TRUE;
}
id=arg1->value.lval;
height = arg2->value.dval;
width = arg3->value.dval;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if(!pdf || type!=PDF_GLOBAL(le_pdf)) {
php3_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
convert_to_long(arg1);
id=arg1->value.lval;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if(!pdf || type!=PDF_GLOBAL(le_pdf)) {
php3_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
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!=PDF_GLOBAL(le_pdf)) {
php3_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
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!=PDF_GLOBAL(le_pdf)) {
php3_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
convert_to_double(arg3);
convert_to_long(arg4);
id=arg1->value.lval;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if(!pdf || type!=PDF_GLOBAL(le_pdf)) {
php3_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
convert_to_long(arg1);
id=arg1->value.lval;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if(!pdf || type!=PDF_GLOBAL(le_pdf)) {
php3_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
convert_to_long(arg1);
id=arg1->value.lval;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if(!pdf || type!=PDF_GLOBAL(le_pdf)) {
php3_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
convert_to_long(arg1);
id=arg1->value.lval;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if(!pdf || type!=PDF_GLOBAL(le_pdf)) {
php3_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
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!=PDF_GLOBAL(le_pdf)) {
php3_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
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!=PDF_GLOBAL(le_pdf)) {
php3_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
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!=PDF_GLOBAL(le_pdf)) {
php3_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
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!=PDF_GLOBAL(le_pdf)) {
php3_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
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!=PDF_GLOBAL(le_pdf)) {
php3_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
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!=PDF_GLOBAL(le_pdf)) {
php3_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
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!=PDF_GLOBAL(le_pdf)) {
php3_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
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!=PDF_GLOBAL(le_pdf)) {
php3_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
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!=PDF_GLOBAL(le_pdf)) {
php3_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
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!=PDF_GLOBAL(le_pdf)) {
php3_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
convert_to_long(arg1);
id=arg1->value.lval;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if(!pdf || type!=PDF_GLOBAL(le_pdf)) {
php3_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
convert_to_long(arg1);
id=arg1->value.lval;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if(!pdf || type!=PDF_GLOBAL(le_pdf)) {
php3_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
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!=PDF_GLOBAL(le_pdf)) {
php3_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
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!=PDF_GLOBAL(le_pdf)) {
php3_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
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!=PDF_GLOBAL(le_pdf)) {
php3_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
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!=PDF_GLOBAL(le_pdf)) {
php3_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
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!=PDF_GLOBAL(le_pdf)) {
php3_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
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!=PDF_GLOBAL(le_pdf)) {
php3_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
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!=PDF_GLOBAL(le_pdf)) {
php3_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
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!=PDF_GLOBAL(le_pdf)) {
php3_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
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!=PDF_GLOBAL(le_pdf)) {
php3_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
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!=PDF_GLOBAL(le_pdf)) {
php3_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
convert_to_double(arg6);
convert_to_double(arg7);
id=arg1->value.lval;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if(!pdf || type!=PDF_GLOBAL(le_pdf)) {
php3_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
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!=PDF_GLOBAL(le_pdf)) {
php3_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
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!=PDF_GLOBAL(le_pdf)) {
php3_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
convert_to_double(arg5);
convert_to_double(arg6);
id=arg1->value.lval;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if(!pdf || type!=PDF_GLOBAL(le_pdf)) {
php3_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
convert_to_double(arg4);
convert_to_double(arg5);
id=arg1->value.lval;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if(!pdf || type!=PDF_GLOBAL(le_pdf)) {
php3_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
convert_to_long(arg1);
id=arg1->value.lval;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if(!pdf || type!=PDF_GLOBAL(le_pdf)) {
php3_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
convert_to_long(arg1);
id=arg1->value.lval;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if(!pdf || type!=PDF_GLOBAL(le_pdf)) {
php3_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
convert_to_long(arg1);
id=arg1->value.lval;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if(!pdf || type!=PDF_GLOBAL(le_pdf)) {
php3_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
convert_to_long(arg1);
id=arg1->value.lval;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if(!pdf || type!=PDF_GLOBAL(le_pdf)) {
php3_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
convert_to_long(arg1);
id=arg1->value.lval;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if(!pdf || type!=PDF_GLOBAL(le_pdf)) {
php3_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
convert_to_long(arg1);
id=arg1->value.lval;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if(!pdf || type!=PDF_GLOBAL(le_pdf)) {
php3_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
convert_to_long(arg1);
id=arg1->value.lval;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if(!pdf || type!=PDF_GLOBAL(le_pdf)) {
php3_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
convert_to_long(arg1);
id=arg1->value.lval;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if(!pdf || type!=PDF_GLOBAL(le_pdf)) {
php3_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
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!=PDF_GLOBAL(le_pdf)) {
php3_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
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!=PDF_GLOBAL(le_pdf)) {
php3_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
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!=PDF_GLOBAL(le_pdf)) {
php3_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
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!=PDF_GLOBAL(le_pdf)) {
php3_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
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!=PDF_GLOBAL(le_pdf)) {
php3_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
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!=PDF_GLOBAL(le_pdf)) {
php3_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
convert_to_string(arg2);
id=arg1->value.lval;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if(!pdf || type!=PDF_GLOBAL(le_pdf)) {
php3_error(E_WARNING,"Unable to find document identifier %d",id);
RETURN_FALSE;
id = arg3->value.lval;
if (id > 0) {
- parent = php3_list_find(id, &type);
+ parent = zend_list_find(id, &type);
if (!parent || (type != PDF_GLOBAL(le_outline))) {
php3_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
outline=emalloc(sizeof(int));
*outline = PDF_add_bookmark(pdf, arg2->value.str.val, parentid, open);
- id = php3_list_insert(outline,PDF_GLOBAL(le_outline));
+ id = zend_list_insert(outline,PDF_GLOBAL(le_outline));
RETURN_LONG(id);
}
/* }}} */
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!=PDF_GLOBAL(le_pdf)) {
php3_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
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!=PDF_GLOBAL(le_pdf)) {
php3_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
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!=PDF_GLOBAL(le_pdf)) {
php3_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
RETURN_FALSE;
}
- id = php3_list_insert((void *) pdf_image,PDF_GLOBAL(le_pdf_image));
+ id = zend_list_insert((void *) pdf_image,PDF_GLOBAL(le_pdf_image));
RETURN_LONG(id);
}
/* }}} */
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!=PDF_GLOBAL(le_pdf)) {
php3_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
RETURN_FALSE;
}
- id = php3_list_insert((void *) pdf_image,PDF_GLOBAL(le_pdf_image));
+ id = zend_list_insert((void *) pdf_image,PDF_GLOBAL(le_pdf_image));
RETURN_LONG(id);
}
/* }}} */
convert_to_long(argv[0]);
id=argv[0]->value.lval;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if(!pdf || type!=PDF_GLOBAL(le_pdf)) {
php3_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
convert_to_long(argv[1]);
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, "pdf: Unable to find image pointer");
RETURN_FALSE;
RETURN_FALSE;
}
- id = php3_list_insert((void *) pdf_image,PDF_GLOBAL(le_pdf_image));
+ id = zend_list_insert((void *) pdf_image,PDF_GLOBAL(le_pdf_image));
RETURN_LONG(id);
}
/* }}} */
convert_to_long(arg1);
id=arg1->value.lval;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if(!pdf || type!=PDF_GLOBAL(le_pdf)) {
php3_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
convert_to_long(arg2);
id=arg2->value.lval;
- pdf_image = (int) php3_list_find(id,&type);
+ pdf_image = (int) zend_list_find(id,&type);
if(pdf_image < 0 || type!=PDF_GLOBAL(le_pdf_image)) {
php3_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
convert_to_long(arg1);
id=arg1->value.lval;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if(!pdf || type!=PDF_GLOBAL(le_pdf)) {
php3_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
convert_to_long(arg2);
id=arg2->value.lval;
- pdf_image = (int) php3_list_find(id,&type);
+ pdf_image = (int) zend_list_find(id,&type);
if(pdf_image < 0 || type!=PDF_GLOBAL(le_pdf_image)) {
php3_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
convert_to_long(arg1);
id=arg1->value.lval;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if(!pdf || type!=PDF_GLOBAL(le_pdf)) {
php3_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
convert_to_long(arg2);
id=arg2->value.lval;
- pdf_image = (int) php3_list_find(id,&type);
+ pdf_image = (int) zend_list_find(id,&type);
if(pdf_image < 0 || type!=PDF_GLOBAL(le_pdf_image)) {
php3_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
convert_to_long(arg1);
id=arg1->value.lval;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if(!pdf || type!=PDF_GLOBAL(le_pdf)) {
php3_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
convert_to_long(arg2);
id=arg2->value.lval;
- pdf_image = (int) php3_list_find(id,&type);
+ pdf_image = (int) zend_list_find(id,&type);
if(pdf_image < 0 || type!=PDF_GLOBAL(le_pdf_image)) {
php3_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
convert_to_long(arg1);
id=arg1->value.lval;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if(!pdf || type!=PDF_GLOBAL(le_pdf)) {
php3_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
convert_to_long(arg2);
id=arg2->value.lval;
- pdf_image = (int) php3_list_find(id,&type);
+ pdf_image = (int) zend_list_find(id,&type);
if(pdf_image < 0 || type!=PDF_GLOBAL(le_pdf_image)) {
php3_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
convert_to_long(arg1);
id=arg1->value.lval;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if(!pdf || type!=PDF_GLOBAL(le_pdf)) {
php3_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
convert_to_long(arg2);
id=arg2->value.lval;
- pdf_image = (int) php3_list_find(id,&type);
+ pdf_image = (int) zend_list_find(id,&type);
if(pdf_image < 0 || type!=PDF_GLOBAL(le_pdf_image)) {
php3_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
convert_to_double(arg5);
convert_to_string(arg6);
id=arg1->value.lval;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if(!pdf || type!=PDF_GLOBAL(le_pdf)) {
php3_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
convert_to_long(arg7);
convert_to_string(arg8);
id=arg1->value.lval;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if(!pdf || type!=PDF_GLOBAL(le_pdf)) {
php3_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
convert_to_string(arg2);
convert_to_double(arg3);
id=arg1->value.lval;
- pdf = php3_list_find(id,&type);
+ pdf = zend_list_find(id,&type);
if(!pdf || type!=PDF_GLOBAL(le_pdf)) {
php3_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
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!=PDF_GLOBAL(le_pdf)) {
php3_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
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!=PDF_GLOBAL(le_pdf)) {
php3_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
}
pgsql = (PGconn *) le->ptr;
}
- return_value->value.lval = php3_list_insert(pgsql,le_plink);
+ return_value->value.lval = zend_list_insert(pgsql,le_plink);
return_value->type = IS_LONG;
} else {
list_entry *index_ptr,new_index_ptr;
RETURN_FALSE;
}
link = (int) (long) index_ptr->ptr;
- ptr = php3_list_find(link,&type); /* check if the link is still there */
+ ptr = zend_list_find(link,&type); /* check if the link is still there */
if (ptr && (type==le_link || type==le_plink)) {
return_value->value.lval = PGG(default_link) = link;
return_value->type = IS_LONG;
}
/* add it to the list */
- return_value->value.lval = php3_list_insert(pgsql,le_link);
+ return_value->value.lval = zend_list_insert(pgsql,le_link);
return_value->type = IS_LONG;
/* add it to the hash */
break;
}
- pgsql = (PGconn *) php3_list_find(id,&type);
+ pgsql = (PGconn *) zend_list_find(id,&type);
if (type!=le_link && type!=le_plink) {
php_error(E_WARNING,"%d is not a PostgresSQL link index",id);
RETURN_FALSE;
}
- php3_list_delete(pgsql_link->value.lval);
+ zend_list_delete(pgsql_link->value.lval);
RETURN_TRUE;
}
/* }}} */
break;
}
- pgsql = (PGconn *) php3_list_find(id,&type);
+ pgsql = (PGconn *) zend_list_find(id,&type);
if (type!=le_link && type!=le_plink) {
php_error(E_WARNING,"%d is not a PostgresSQL link index",id);
RETURN_FALSE;
break;
}
- pgsql = (PGconn *) php3_list_find(id,&type);
+ pgsql = (PGconn *) zend_list_find(id,&type);
if (type!=le_link && type!=le_plink) {
php_error(E_WARNING,"%d is not a PostgresSQL link index",id);
RETURN_FALSE;
pg_result = (pgsql_result_handle *) emalloc(sizeof(pgsql_result_handle));
pg_result->conn = pgsql;
pg_result->result = pgsql_result;
- return_value->value.lval = php3_list_insert(pg_result,le_result);
+ return_value->value.lval = zend_list_insert(pg_result,le_result);
return_value->type = IS_LONG;
} else {
RETURN_FALSE;
}
convert_to_long(result);
- pg_result = (pgsql_result_handle *) php3_list_find(result->value.lval,&type);
+ pg_result = (pgsql_result_handle *) zend_list_find(result->value.lval,&type);
if (type!=le_result) {
php_error(E_WARNING,"%d is not a PostgresSQL result index",result->value.lval);
}
convert_to_long(result);
- pg_result = (pgsql_result_handle *) php3_list_find(result->value.lval,&type);
+ pg_result = (pgsql_result_handle *) zend_list_find(result->value.lval,&type);
if (type!=le_result) {
php_error(E_WARNING,"%d is not a PostgresSQL result index",result->value.lval);
}
convert_to_long(result);
- pg_result = (pgsql_result_handle *) php3_list_find(result->value.lval,&type);
+ pg_result = (pgsql_result_handle *) zend_list_find(result->value.lval,&type);
if (type!=le_result) {
php_error(E_WARNING,"%d is not a PostgresSQL result index",result->value.lval);
}
convert_to_long(result);
- pg_result = (pgsql_result_handle *) php3_list_find(result->value.lval,&type);
+ pg_result = (pgsql_result_handle *) zend_list_find(result->value.lval,&type);
if (type!=le_result) {
php_error(E_WARNING,"%d is not a PostgresSQL result index",result->value.lval);
}
convert_to_long(result);
- pg_result = (pgsql_result_handle *) php3_list_find(result->value.lval,&type);
+ pg_result = (pgsql_result_handle *) zend_list_find(result->value.lval,&type);
if (type!=le_result) {
php_error(E_WARNING,"%d is not a PostgresSQL result index",result->value.lval);
}
convert_to_long(result);
- pg_result = (pgsql_result_handle *) php3_list_find(result->value.lval,&type);
+ pg_result = (pgsql_result_handle *) zend_list_find(result->value.lval,&type);
if (type!=le_result) {
php_error(E_WARNING,"%d is not a PostgresSQL result index",result->value.lval);
if (result->value.lval==0) {
RETURN_FALSE;
}
- pg_result = (pgsql_result_handle *) php3_list_find(result->value.lval,&type);
+ pg_result = (pgsql_result_handle *) zend_list_find(result->value.lval,&type);
if (type!=le_result) {
php_error(E_WARNING,"%d is not a PostgresSQL result index",result->value.lval);
RETURN_FALSE;
}
- php3_list_delete(result->value.lval);
+ zend_list_delete(result->value.lval);
RETURN_TRUE;
}
/* }}} */
}
convert_to_long(result);
- pg_result = (pgsql_result_handle *) php3_list_find(result->value.lval,&type);
+ pg_result = (pgsql_result_handle *) zend_list_find(result->value.lval,&type);
if (type!=le_result) {
php_error(E_WARNING,"%d is not a PostgresSQL result index",result->value.lval);
break;
}
- pgsql = (PGconn *) php3_list_find(id,&type);
+ pgsql = (PGconn *) zend_list_find(id,&type);
if (type!=le_link && type!=le_plink) {
php_error(E_WARNING,"%d is not a PostgresSQL link index",id);
RETURN_FALSE;
break;
}
- pgsql = (PGconn *) php3_list_find(id,&type);
+ pgsql = (PGconn *) zend_list_find(id,&type);
if (type!=le_link && type!=le_plink) {
php_error(E_WARNING,"%d is not a PostgresSQL link index",id);
RETURN_FALSE;
break;
}
- pgsql = (PGconn *) php3_list_find(id,&type);
+ pgsql = (PGconn *) zend_list_find(id,&type);
if (type!=le_link && type!=le_plink) {
php_error(E_WARNING,"%d is not a PostgresSQL link index",id);
RETURN_FALSE;
} else {
pgsql_lofp->conn = pgsql;
pgsql_lofp->lofd = pgsql_lofd;
- return_value->value.lval = php3_list_insert(pgsql_lofp, le_lofp);
+ return_value->value.lval = zend_list_insert(pgsql_lofp, le_lofp);
return_value->type = IS_LONG;
}
}
} else {
pgsql_lofp->conn = pgsql;
pgsql_lofp->lofd = pgsql_lofd;
- return_value->value.lval = php3_list_insert(pgsql_lofp, le_lofp);
+ return_value->value.lval = zend_list_insert(pgsql_lofp, le_lofp);
return_value->type = IS_LONG;
}
}
break;
}
- pgsql = (pgLofp *) php3_list_find(id,&type);
+ pgsql = (pgLofp *) zend_list_find(id,&type);
if (type!=le_lofp) {
php_error(E_WARNING,"%d is not a PostgresSQL large object index",id);
RETURN_FALSE;
} else {
RETVAL_TRUE;
}
- php3_list_delete(id);
+ zend_list_delete(id);
return;
}
/* }}} */
break;
}
- pgsql = (pgLofp *) php3_list_find(id,&type);
+ pgsql = (pgLofp *) zend_list_find(id,&type);
if (type!=le_lofp) {
php_error(E_WARNING,"%d is not a PostgresSQL large object index",id);
RETURN_FALSE;
break;
}
- pgsql = (pgLofp *) php3_list_find(id,&type);
+ pgsql = (pgLofp *) zend_list_find(id,&type);
if (type!=le_lofp) {
php_error(E_WARNING,"%d is not a PostgresSQL large object index",id);
RETURN_FALSE;
break;
}
- pgsql = (pgLofp *) php3_list_find(id,&type);
+ pgsql = (pgLofp *) zend_list_find(id,&type);
if (type!=le_lofp) {
php_error(E_WARNING,"%d is not a PostgresSQL large object index",id);
RETURN_FALSE;
RETURN_FALSE;
}
- RETURN_LONG(php3_list_insert(i_dispatch,le_idispatch));
+ RETURN_LONG(zend_list_insert(i_dispatch,le_idispatch));
}
handle = (pval *) emalloc(sizeof(pval));
handle->type = IS_LONG;
- handle->value.lval = php3_list_insert(var_arg->pdispVal, le_idispatch);
+ handle->value.lval = zend_list_insert(var_arg->pdispVal, le_idispatch);
pval_copy_constructor(handle);
INIT_PZVAL(handle);
zend_hash_index_update(pval_arg->value.obj.properties, 0, &handle, sizeof(pval *), NULL);
/* obtain i_dispatch interface */
convert_to_long(object);
- i_dispatch = php3_list_find(object->value.lval, &type);
+ i_dispatch = zend_list_find(object->value.lval, &type);
if (!i_dispatch || (type!=le_idispatch)) {
php_error(E_WARNING,"%d is not a COM object handler", function_name->value.str.val);
RETURN_FALSE;
/* obtain i_dispatch interface */
convert_to_long(arg_idispatch);
/* obtain i_dispatch interface */
- i_dispatch = php3_list_find(arg_idispatch->value.lval,&type);
+ i_dispatch = zend_list_find(arg_idispatch->value.lval,&type);
if (!i_dispatch || (type!=le_idispatch)) {
php_error(E_WARNING,"%d is not a COM object handler", arg_idispatch->value.lval);
}
/* obtain i_dispatch interface */
convert_to_long(arg_idispatch);
/* obtain i_dispatch interface */
- i_dispatch = php3_list_find(arg_idispatch->value.lval,&type);
+ i_dispatch = zend_list_find(arg_idispatch->value.lval,&type);
if (!i_dispatch || (type!=le_idispatch)) {
php_error(E_WARNING,"%d is not a COM object handler", arg_idispatch->value.lval);
}
/* fetch the IDispatch interface */
zend_hash_index_find(object->value.obj.properties, 0, (void **) &idispatch_handle);
- i_dispatch = php3_list_find((*idispatch_handle)->value.lval,&type);
+ i_dispatch = zend_list_find((*idispatch_handle)->value.lval,&type);
if (!i_dispatch || (type!=le_idispatch)) {
/* bail out */
}
/* fetch the IDispatch interface */
zend_hash_index_find(object->value.obj.properties, 0, (void **) &idispatch_handle);
- i_dispatch = php3_list_find((*idispatch_handle)->value.lval,&type);
+ i_dispatch = zend_list_find((*idispatch_handle)->value.lval,&type);
if (!i_dispatch || (type!=le_idispatch)) {
/* bail out */
}
case IS_OBJECT:
zend_hash_index_find(argv[i]->value.obj.properties, 0, (void*)&handle);
- arg = php3_list_find((*handle)->value.lval, &type);
+ arg = zend_list_find((*handle)->value.lval, &type);
break;
case IS_BOOL:
jmethodID invoke = (*jenv)->GetStaticMethodID(jenv, php_reflect, "Invoke",
"(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;J)V");
zend_hash_index_find(object->value.obj.properties, 0, (void**) &handle);
- obj = php3_list_find((*handle)->value.lval, &type);
+ obj = zend_list_find((*handle)->value.lval, &type);
method = (*jenv)->NewStringUTF(jenv, function_name->element.value.str.val);
(pval*)(long)result = return_value;
/* get the object */
zend_hash_index_find(property_reference->object->value.obj.properties,
0, (void **) &pobject);
- obj = php3_list_find((*pobject)->value.lval,&type);
+ obj = zend_list_find((*pobject)->value.lval,&type);
(pval*)(long)result = &presult;
var_uninit(&presult);
handle = (pval *) emalloc(sizeof(pval));
handle->type = IS_LONG;
handle->value.lval =
- php3_list_insert((*jenv)->NewGlobalRef(jenv,value), le_jobject);
+ zend_list_insert((*jenv)->NewGlobalRef(jenv,value), le_jobject);
pval_copy_constructor(handle);
INIT_PZVAL(handle);
zend_hash_index_update(presult->value.obj.properties, 0,
};
static char base64_pad = '=';
-unsigned char *_php3_base64_encode(const unsigned char *string, int length, int *ret_length) {
+unsigned char *php_base64_encode(const unsigned char *string, int length, int *ret_length) {
const unsigned char *current = string;
int i = 0;
unsigned char *result = (unsigned char *)emalloc(((length + 3 - length % 3) * 4 / 3 + 1) * sizeof(char));
WRONG_PARAM_COUNT;
}
convert_to_string_ex(string);
- result = _php3_base64_encode((*string)->value.str.val, (*string)->value.str.len, &ret_length);
+ result = php_base64_encode((*string)->value.str.val, (*string)->value.str.len, &ret_length);
if (result != NULL) {
return_value->value.str.val = result;
return_value->value.str.len = ret_length;
PHP_FUNCTION(base64_decode);
PHP_FUNCTION(base64_encode);
-extern unsigned char *_php3_base64_encode(const unsigned char *, int, int *);
+extern unsigned char *php_base64_encode(const unsigned char *, int, int *);
extern unsigned char *_php3_base64_decode(const unsigned char *, int, int *);
#endif /* _BASE64_h */
FETCH_DIRP();
- php3_list_delete(dirp->id);
+ zend_list_delete(dirp->id);
}
/* }}} */
what = zend_fetch_resource(arg1,-1,"File-Handle",&type,2,le_fopen,le_socket);
ZEND_VERIFY_RESOURCE(what);
- php3_list_delete((*arg1)->value.lval);
+ zend_list_delete((*arg1)->value.lval);
RETURN_TRUE;
}
what = zend_fetch_resource(arg1,-1,"File-Handle",NULL,1,le_popen);
ZEND_VERIFY_RESOURCE(what);
- php3_list_delete((*arg1)->value.lval);
+ zend_list_delete((*arg1)->value.lval);
RETURN_LONG(FIL(pclose_ret));
}
convert_to_long(socket);
convert_to_long(timeout);
- sock = php3_list_find(socket->value.lval, &type);
+ sock = zend_list_find(socket->value.lval, &type);
if (type!=le_socket) {
php_error(E_WARNING,"%d is not a socket id",socket->value.lval);
RETURN_FALSE;
}
RETURN_FALSE;
}
- if (php3_header()) {
+ if (php_header()) {
size = php_passthru_fd(socketd, fp, issock);
}
if (issock) {
}
size = 0;
- if (php3_header()) { /* force headers if not already sent */
+ if (php_header()) { /* force headers if not already sent */
size = php_passthru_fd(socketd, (FILE*) what, issock);
}
- php3_list_delete((*arg1)->value.lval);
+ zend_list_delete((*arg1)->value.lval);
RETURN_LONG(size);
}
return sock;
}
-size_t _php3_sock_set_def_chunk_size(size_t size)
+size_t php_sock_set_def_chunk_size(size_t size)
{
size_t old;
FLS_FETCH();
int _php3_sock_set_blocking(int socket, int mode);
int _php3_sock_destroy(int socket);
int php_sock_close(int socket);
-size_t _php3_sock_set_def_chunk_size(size_t size);
+size_t php_sock_set_def_chunk_size(size_t size);
int php_msock_destroy(int *data);
PHPAPI int connect_nonb(int sockfd, struct sockaddr *addr, socklen_t addrlen, struct timeval *timeout);
rr = r + 1;
}
if (PG(safe_mode) && (!strcasecmp(header_information, "WWW-authenticate"))) {
- myuid = _php3_getuid();
+ myuid = php_getuid();
sprintf(temp2, "realm=\"%ld ", myuid); /* SAFE */
temp = _php3_regreplace("realm=\"", temp2, rr, 1, 0);
if (!strcmp(temp, rr)) {
#if 0
/*
- * php3_header() flushes the header info built up using calls to
+ * php_header() flushes the header info built up using calls to
* the Header() function. If type is 1, a redirect to str is done.
* Otherwise type should be 0 and str NULL.
*
* The function returns non-zero if output is allowed after the
- * call, and zero otherwise. Any call to php3_header() must check
+ * call, and zero otherwise. Any call to php_header() must check
* the return status and if false, no output must be sent. This
* is in order to correctly handle HEAD requests.
*/
-PHPAPI int php3_header(void)
+PHPAPI int php_header(void)
{
#if APACHE
CookieList *cookie;
return(1);
}
#else
-PHPAPI int php3_header()
+PHPAPI int php_header()
{
SLS_FETCH();
}
-int php3_headers_unsent(void)
+int php_headers_unsent(void)
{
if (php3_HeaderPrinted!=1 || !php3_PrintHeader) {
return 1;
}
}
-function_entry php3_header_functions[] = {
+function_entry php_header_functions[] = {
{NULL, NULL, NULL}
};
-php3_module_entry php3_header_module_entry = {
- "PHP_head", php3_header_functions, NULL, NULL, PHP_RINIT(head), NULL, NULL, STANDARD_MODULE_PROPERTIES
+php3_module_entry php_header_module_entry = {
+ "PHP_head", php_header_functions, NULL, NULL, PHP_RINIT(head), NULL, NULL, STANDARD_MODULE_PROPERTIES
};
/*
struct CookieList *next;
} CookieList;
-extern php3_module_entry php3_header_module_entry;
-#define php3_header_module_ptr &php3_header_module_entry
+extern php3_module_entry php_header_module_entry;
+#define php_header_module_ptr &php_header_module_entry
extern PHP_RINIT_FUNCTION(head);
PHP_FUNCTION(Header);
void php4i_add_header_information(char *header_information, uint header_length);
-PHPAPI int php3_header(void);
-int php3_headers_unsent(void);
+PHPAPI int php_header(void);
+int php_headers_unsent(void);
-#define phpext_head_ptr php3_header_module_ptr
+#define phpext_head_ptr php_header_module_ptr
#endif
}
if (spool > 0)
- if (!php3_header()){ /* we got a HEAD request. */
+ if (!php_header()){ /* we got a HEAD request. */
if (spool == 2){
RETURN_TRUE; /* we only wanted to spool - report success. */
} else
if (SG(request_info).headers_only) {
zend_bailout();
}
- if (php3_header()) {
+ if (php_header()) {
OG(php_body_write) = php_ub_body_write_no_header;
result = php_ub_body_write_no_header(str, str_length);
}
#endif
}
-long _php3_getuid(void)
+long php_getuid(void)
{
BLS_FETCH();
{
long uid;
- uid = _php3_getuid();
+ uid = php_getuid();
if (uid < 0) {
RETURN_FALSE;
} else {
PHP_FUNCTION(getmyinode);
PHP_FUNCTION(getlastmod);
-extern long _php3_getuid(void);
+extern long php_getuid(void);
#endif
return;
}
- var_type = php3_check_ident_type(var);
+ var_type = php_check_ident_type(var);
if (var_type == GPC_INDEXED_ARRAY) {
ind = php3_get_ident_index(var);
if (PG(magic_quotes_gpc)) {
* 1 - non-index array
* 2 - index array
*/
-int php3_check_ident_type(char *str)
+int php_check_ident_type(char *str)
{
char *s;
#define _TYPE_H
extern int php3_check_type(char *str);
-extern int php3_check_ident_type(char *str);
+extern int php_check_ident_type(char *str);
extern char *php3_get_ident_index(char *str);
#define GPC_REGULAR 0x1
if (!(*arg)->value.str.len) {
RETURN_FALSE;
}
- len = _php3_rawurldecode((*arg)->value.str.val, (*arg)->value.str.len);
+ len = php_raw_url_decode((*arg)->value.str.val, (*arg)->value.str.len);
RETVAL_STRINGL((*arg)->value.str.val, len, 1);
}
/* }}} */
-int _php3_rawurldecode(char *str, int len)
+int php_raw_url_decode(char *str, int len)
{
char *dest = str;
char *data = str;
extern url *url_parse(char *);
extern int _php3_urldecode(char *, int); /* return value: length of decoded string */
extern char *_php3_urlencode(char *, int);
-extern int _php3_rawurldecode(char *, int); /* return value: length of decoded string */
+extern int php_raw_url_decode(char *, int); /* return value: length of decoded string */
extern char *_php3_rawurlencode(char *, int);
PHP_FUNCTION(parse_url);
}
}
}
- return_value->value.lval = php3_list_insert(sybase_ptr,php3_sybase_module.le_plink);
+ return_value->value.lval = zend_list_insert(sybase_ptr,php3_sybase_module.le_plink);
return_value->type = IS_LONG;
} else { /* non persistent */
list_entry *index_ptr,new_index_ptr;
RETURN_FALSE;
}
link = (int) index_ptr->ptr;
- ptr = php3_list_find(link,&type); /* check if the link is still there */
+ ptr = zend_list_find(link,&type); /* check if the link is still there */
if (ptr && (type==php3_sybase_module.le_link || type==php3_sybase_module.le_plink)) {
return_value->value.lval = php3_sybase_module.default_link = link;
return_value->type = IS_LONG;
/* add it to the list */
sybase_ptr = (sybase_link *) emalloc(sizeof(sybase_link));
memcpy(sybase_ptr,&sybase,sizeof(sybase_link));
- return_value->value.lval = php3_list_insert(sybase_ptr,php3_sybase_module.le_link);
+ return_value->value.lval = zend_list_insert(sybase_ptr,php3_sybase_module.le_link);
return_value->type = IS_LONG;
/* add it to the hash */
break;
}
- php3_list_find(id,&type);
+ zend_list_find(id,&type);
if (type!=php3_sybase_module.le_link && type!=php3_sybase_module.le_plink) {
php_error(E_WARNING,"%d is not a Sybase link index",id);
RETURN_FALSE;
}
- php3_list_delete(id);
+ zend_list_delete(id);
RETURN_TRUE;
}
CHECK_LINK(id);
- sybase_ptr = (sybase_link *) php3_list_find(id,&type);
+ sybase_ptr = (sybase_link *) zend_list_find(id,&type);
if (type!=php3_sybase_module.le_link && type!=php3_sybase_module.le_plink) {
php_error(E_WARNING,"%d is not a Sybase link index",id);
RETURN_FALSE;
break;
}
- sybase_ptr = (sybase_link *) php3_list_find(id,&type);
+ sybase_ptr = (sybase_link *) zend_list_find(id,&type);
if (type!=php3_sybase_module.le_link && type!=php3_sybase_module.le_plink) {
php_error(E_WARNING,"%d is not a Sybase link index",id);
RETURN_FALSE;
}
}
efree(column_types);
- return_value->value.lval = php3_list_insert(result,php3_sybase_module.le_result);
+ return_value->value.lval = zend_list_insert(result,php3_sybase_module.le_result);
return_value->type = IS_LONG;
}
if (sybase_result_index->value.lval==0) {
RETURN_FALSE;
}
- result = (sybase_result *) php3_list_find(sybase_result_index->value.lval,&type);
+ result = (sybase_result *) zend_list_find(sybase_result_index->value.lval,&type);
if (type!=php3_sybase_module.le_result) {
php_error(E_WARNING,"%d is not a Sybase result index",sybase_result_index->value.lval);
RETURN_FALSE;
}
- php3_list_delete(sybase_result_index->value.lval);
+ zend_list_delete(sybase_result_index->value.lval);
RETURN_TRUE;
}
convert_to_long(result_index);
id = result_index->value.lval;
- result = (sybase_result *) php3_list_find(id,&type);
+ result = (sybase_result *) zend_list_find(id,&type);
if (type!=php3_sybase_module.le_result) {
php_error(E_WARNING,"%d is not a Sybase result index",id);
RETURN_FALSE;
convert_to_long(result_index);
id = result_index->value.lval;
- result = (sybase_result *) php3_list_find(id,&type);
+ result = (sybase_result *) zend_list_find(id,&type);
if (type!=php3_sybase_module.le_result) {
php_error(E_WARNING,"%d is not a Sybase result index",id);
RETURN_FALSE;
convert_to_long(sybase_result_index);
id = sybase_result_index->value.lval;
- result = (sybase_result *) php3_list_find(id,&type);
+ result = (sybase_result *) zend_list_find(id,&type);
if (type!=php3_sybase_module.le_result) {
php_error(E_WARNING,"%d is not a Sybase result index",id);
RETURN_FALSE;
}
convert_to_long(sybase_result_index);
- result = (sybase_result *) php3_list_find(sybase_result_index->value.lval,&type);
+ result = (sybase_result *) zend_list_find(sybase_result_index->value.lval,&type);
if (type!=php3_sybase_module.le_result) {
php_error(E_WARNING,"%d is not a Sybase result index",sybase_result_index->value.lval);
convert_to_long(sybase_result_index);
id = sybase_result_index->value.lval;
- result = (sybase_result *) php3_list_find(id,&type);
+ result = (sybase_result *) zend_list_find(id,&type);
if (type!=php3_sybase_module.le_result) {
php_error(E_WARNING,"%d is not a Sybase result index",id);
RETURN_FALSE;
convert_to_long(sybase_result_index);
id = sybase_result_index->value.lval;
- result = (sybase_result *) php3_list_find(id,&type);
+ result = (sybase_result *) zend_list_find(id,&type);
if (type!=php3_sybase_module.le_result) {
php_error(E_WARNING,"%d is not a Sybase result index",id);
RETURN_FALSE;
convert_to_long(sybase_result_index);
id = sybase_result_index->value.lval;
- result = (sybase_result *) php3_list_find(id,&type);
+ result = (sybase_result *) zend_list_find(id,&type);
if (type!=php3_sybase_module.le_result) {
php_error(E_WARNING,"%d is not a Sybase result index",id);
RETURN_FALSE;
convert_to_long(sybase_result_index);
id = sybase_result_index->value.lval;
- result = (sybase_result *) php3_list_find(id,&type);
+ result = (sybase_result *) zend_list_find(id,&type);
if (type!=php3_sybase_module.le_result) {
php_error(E_WARNING,"%d is not a Sybase result index",id);
RETURN_FALSE;
sem_ptr->semid = semid;
sem_ptr->count = 0;
- return_value->value.lval = php3_list_insert(sem_ptr, php3_sysvsem_module.le_sem);
+ return_value->value.lval = zend_list_insert(sem_ptr, php3_sysvsem_module.le_sem);
return_value->type = IS_LONG;
sem_ptr->id = (int)return_value->value.lval;
break;
}
- sem_ptr = (sysvsem_sem *) php3_list_find(id, &type);
+ sem_ptr = (sysvsem_sem *) zend_list_find(id, &type);
if (type!=php3_sysvsem_module.le_sem) {
php_error(E_WARNING, "%d is not a SysV semaphore index", id);
RETURN_FALSE;
shm_list_ptr->key = shm_key;
shm_list_ptr->id = shm_id;
shm_list_ptr->ptr = chunk_ptr;
- list_id = php3_list_insert(shm_list_ptr, php3_sysvshm_module.le_shm);
+ list_id = zend_list_insert(shm_list_ptr, php3_sysvshm_module.le_shm);
RETURN_LONG(list_id);
}
/* }}} */
id = (*arg_id)->value.lval;
- php3_list_delete(id);
+ zend_list_delete(id);
RETURN_TRUE;
}
convert_to_long_ex(arg_key);
key = (*arg_key)->value.lval;
- shm_list_ptr = (sysvshm_shm *) php3_list_find(id, &type);
+ shm_list_ptr = (sysvshm_shm *) zend_list_find(id, &type);
if (type!=php3_sysvshm_module.le_shm) {
php_error(E_WARNING, "%d is not a SysV shared memory index", id);
RETURN_FALSE;
convert_to_long_ex(arg_key);
key = (*arg_key)->value.lval;
- shm_list_ptr = (sysvshm_shm *) php3_list_find(id, &type);
+ shm_list_ptr = (sysvshm_shm *) zend_list_find(id, &type);
if (type!=php3_sysvshm_module.le_shm) {
php_error(E_WARNING, "%d is not a SysV shared memory index", id);
RETURN_FALSE;
convert_to_long_ex(arg_key);
key = (*arg_key)->value.lval;
- shm_list_ptr = (sysvshm_shm *) php3_list_find(id, &type);
+ shm_list_ptr = (sysvshm_shm *) zend_list_find(id, &type);
if (type!=php3_sysvshm_module.le_shm) {
php_error(E_WARNING, "%d is not a SysV shared memory index", id);
RETURN_FALSE;
ZEND_FETCH_RESOURCE(parser,xml_parser *, pind, -1, "XML Parser", le_xml_parser);
- if (php3_list_delete(parser->index) == FAILURE) {
+ if (zend_list_delete(parser->index) == FAILURE) {
RETURN_FALSE;
}
static HashTable configuration_hash;
#ifndef THREAD_SAFE
extern HashTable browser_hash;
-PHPAPI extern char *php3_ini_path;
+PHPAPI extern char *php_ini_path;
#endif
static HashTable *active_zend_hash_table;
static pval *current_section;
#if USE_CONFIG_FILE
{
- char *env_location,*default_location,*php_ini_path;
+ char *env_location,*default_location,*php_ini_search_path;
int safe_mode_state = PG(safe_mode);
char *open_basedir = PG(open_basedir);
char *opened_path;
}
#if WIN32|WINNT
{
- if (php3_ini_path) {
- default_location = php3_ini_path;
+ if (php_ini_path) {
+ default_location = php_ini_path;
} else {
default_location = (char *) malloc(512);
}
}
#else
- if (!php3_ini_path) {
+ if (!php_ini_path) {
default_location = CONFIGURATION_FILE_PATH;
} else {
- default_location = php3_ini_path;
+ default_location = php_ini_path;
}
#endif
/* build a path */
- php_ini_path = (char *) malloc(sizeof(".")+strlen(env_location)+strlen(default_location)+2+1);
+ php_ini_search_path = (char *) malloc(sizeof(".")+strlen(env_location)+strlen(default_location)+2+1);
- if (!php3_ini_path) {
+ if (!php_ini_path) {
#if WIN32|WINNT
- sprintf(php_ini_path,".;%s;%s",env_location,default_location);
+ sprintf(php_ini_search_path,".;%s;%s",env_location,default_location);
#else
- sprintf(php_ini_path,".:%s:%s",env_location,default_location);
+ sprintf(php_ini_search_path,".:%s:%s",env_location,default_location);
#endif
} else {
/* if path was set via -c flag, only look there */
- strcpy(php_ini_path,default_location);
+ strcpy(php_ini_search_path,default_location);
}
PG(safe_mode) = 0;
PG(open_basedir) = NULL;
- cfgin = php_fopen_with_path("php.ini","r",php_ini_path,&opened_path);
- free(php_ini_path);
+ cfgin = php_fopen_with_path("php.ini","r",php_ini_search_path,&opened_path);
+ free(php_ini_search_path);
if (free_default_location) {
free(default_location);
}
php_alter_ini_entry($1.value.str.val, $1.value.str.len+1, $3.value.str.val, $3.value.str.len+1, PHP_INI_SYSTEM);
}
} else if (parsing_mode==PARSING_MODE_BROWSCAP) {
- php3_str_tolower($1.value.str.val,$1.value.str.len);
+ zend_str_tolower($1.value.str.val,$1.value.str.len);
zend_hash_update(current_section->value.ht, $1.value.str.val, $1.value.str.len+1, &$3, sizeof(pval), NULL);
}
free($1.value.str.val);
zend_hash_init(tmp.value.ht, 0, NULL, (int (*)(void *))pvalue_config_destructor, 1);
tmp.type = IS_OBJECT;
zend_hash_update(active_zend_hash_table, $1.value.str.val, $1.value.str.len+1, (void *) &tmp, sizeof(pval), (void **) ¤t_section);
- tmp.value.str.val = php3_strndup($1.value.str.val,$1.value.str.len);
+ tmp.value.str.val = zend_strndup($1.value.str.val,$1.value.str.len);
tmp.value.str.len = $1.value.str.len;
tmp.type = IS_STRING;
convert_browscap_pattern(&tmp);
<INITIAL>[ ]*("true"|"on"|"yes")[ ]* {
- cfglval->value.str.val = php3_strndup("1",1);
+ cfglval->value.str.val = zend_strndup("1",1);
cfglval->value.str.len = 1;
cfglval->type = IS_STRING;
return CFG_TRUE;
<INITIAL>[ ]*("false"|"off"|"no")[ ]* {
- cfglval->value.str.val = php3_strndup("",0);
+ cfglval->value.str.val = zend_strndup("",0);
cfglval->value.str.len = 0;
cfglval->type = IS_STRING;
return CFG_FALSE;
yytext++;
yyleng--;
- cfglval->value.str.val = php3_strndup(yytext,yyleng);
+ cfglval->value.str.val = zend_strndup(yytext,yyleng);
cfglval->value.str.len = yyleng;
cfglval->type = IS_STRING;
return SECTION;
/* eat leading " */
yytext++;
- cfglval->value.str.val = php3_strndup(yytext,yyleng);
+ cfglval->value.str.val = zend_strndup(yytext,yyleng);
cfglval->value.str.len = yyleng;
cfglval->type = IS_STRING;
return TC_ENCAPSULATED_STRING;
}
}
if (yyleng!=0) {
- cfglval->value.str.val = php3_strndup(yytext,yyleng);
+ cfglval->value.str.val = zend_strndup(yytext,yyleng);
cfglval->value.str.len = yyleng;
cfglval->type = IS_STRING;
return TC_STRING;
#include <sys/un.h>
#endif
-static FILE *php3_fopen_url_wrapper(const char *path, char *mode, int options, int *issock, int *socketd, char **opened_path);
+static FILE *php_fopen_url_wrapper(const char *path, char *mode, int options, int *issock, int *socketd, char **opened_path);
-int _php3_getftpresult(int socketd);
+int php_get_ftp_result(int socketd);
/*
When open_basedir is not NULL, check if the given filename is located in
be runtime enabled, NOT compile time. */
#if PHP3_URL_FOPEN
if (!(options & IGNORE_URL)) {
- return php3_fopen_url_wrapper(path, mode, options, issock, socketd, opened_path);
+ return php_fopen_url_wrapper(path, mode, options, issock, socketd, opened_path);
}
#endif
* Otherwise, fopen is called as usual and the file pointer is returned.
*/
-static FILE *php3_fopen_url_wrapper(const char *path, char *mode, int options, int *issock, int *socketd, char **opened_path)
+static FILE *php_fopen_url_wrapper(const char *path, char *mode, int options, int *issock, int *socketd, char **opened_path)
{
url *resource;
int result;
strcpy(scratch, resource->user);
strcat(scratch, ":");
strcat(scratch, resource->pass);
- tmp = _php3_base64_encode((unsigned char *)scratch, strlen(scratch), NULL);
+ tmp = php_base64_encode((unsigned char *)scratch, strlen(scratch), NULL);
if (snprintf(hdr_line, sizeof(hdr_line),
"Authorization: Basic %s\r\n", tmp) > 0) {
*socketd = 0;
free_url(resource);
if (location[0] != '\0') {
- return php3_fopen_url_wrapper(location, mode, options, issock, socketd, opened_path);
+ return php_fopen_url_wrapper(location, mode, options, issock, socketd, opened_path);
} else {
return NULL;
}
#endif
/* Start talking to ftp server */
- result = _php3_getftpresult(*socketd);
+ result = php_get_ftp_result(*socketd);
if (result > 299 || result < 200) {
free_url(resource);
SOCK_FCLOSE(*socketd);
/* send the user name */
SOCK_WRITE("USER ", *socketd);
if (resource->user != NULL) {
- _php3_rawurldecode(resource->user, strlen(resource->user));
+ php_raw_url_decode(resource->user, strlen(resource->user));
SOCK_WRITE(resource->user, *socketd);
} else {
SOCK_WRITE("anonymous", *socketd);
SOCK_WRITE("\r\n", *socketd);
/* get the response */
- result = _php3_getftpresult(*socketd);
+ result = php_get_ftp_result(*socketd);
/* if a password is required, send it */
if (result >= 300 && result <= 399) {
SOCK_WRITE("PASS ", *socketd);
if (resource->pass != NULL) {
- _php3_rawurldecode(resource->pass, strlen(resource->pass));
+ php_raw_url_decode(resource->pass, strlen(resource->pass));
SOCK_WRITE(resource->pass, *socketd);
} else {
/* if the user has configured who they are,
SOCK_WRITE("\r\n", *socketd);
/* read the response */
- result = _php3_getftpresult(*socketd);
+ result = php_get_ftp_result(*socketd);
if (result > 299 || result < 200) {
free_url(resource);
SOCK_FCLOSE(*socketd);
/* set the connection to be binary */
SOCK_WRITE("TYPE I\r\n", *socketd);
- result = _php3_getftpresult(*socketd);
+ result = php_get_ftp_result(*socketd);
if (result > 299 || result < 200) {
free_url(resource);
SOCK_FCLOSE(*socketd);
SOCK_WRITE("\r\n", *socketd);
/* read the response */
- result = _php3_getftpresult(*socketd);
+ result = php_get_ftp_result(*socketd);
if (mode[0] == 'r') {
/* when reading file, it must exist */
if (result > 299 || result < 200) {
return NULL;
}
-int _php3_getftpresult(int socketd)
+int php_get_ftp_result(int socketd)
{
char tmp_line[513];
/* True globals (no need for thread safety) */
HashTable configuration_hash;
-PHPAPI char *php3_ini_path = NULL;
+PHPAPI char *php_ini_path = NULL;
#define SAFE_FILENAME(f) ((f)?(f):"-")
/* True global (no need for thread safety */
static int module_initialized = 0;
-#if 0
-#if APACHE
-void php3_apache_puts(const char *s)
-{
- SLS_FETCH();
-
- if (SG(server_context)) {
- if(rputs(s, (request_rec *) SG(server_context))==-1) {
- PG(connection_status) |= PHP_CONNECTION_ABORTED;
- }
- } else {
- fputs(s, stdout);
- }
-}
-
-void php3_apache_putc(char c)
-{
- SLS_FETCH();
-
- if (SG(server_context)) {
- if(rputc(c, (request_rec *) SG(server_context))!=c) {
- PG(connection_status) |= PHP_CONNECTION_ABORTED;
- }
- } else {
- fputc(c, stdout);
- }
-}
-#endif
-#endif
-
void php_log_err(char *log_message)
{
FILE *log_file;
#endif /*APACHE */
#if CGI_BINARY
- if (php3_header()) {
+ if (php_header()) {
fprintf(stderr, log_message);
fprintf(stderr, "\n");
}
int old_chunk_size;
FILE *retval;
- old_chunk_size = _php3_sock_set_def_chunk_size(1);
+ old_chunk_size = php_sock_set_def_chunk_size(1);
retval=php_fopen_wrapper((char *) filename, "r", USE_PATH|IGNORE_URL_WIN, &issock, &socketd, opened_path);
- _php3_sock_set_def_chunk_size(old_chunk_size);
+ php_sock_set_def_chunk_size(old_chunk_size);
if (issock) {
retval = fdopen(socketd, "r");
* function that gets triggered when our request pool is destroyed.
* We need this because at any point in our code we can be interrupted
* and that may happen before we have had time to free our memory.
- * The php3_shutdown function needs to free all outstanding allocated
+ * The php_request_shutdown function needs to free all outstanding allocated
* memory.
*/
block_alarms();
}
-static int php3_config_ini_startup(void)
+static int php_config_ini_startup(void)
{
if (php_init_config() == FAILURE) {
php_printf("PHP: Unable to parse configuration file.\n");
return SUCCESS;
}
-static void php3_config_ini_shutdown(void)
+static void php_config_ini_shutdown(void)
{
php_shutdown_config();
}
php_ini_mstartup();
- if (php3_config_ini_startup() == FAILURE) {
+ if (php_config_ini_startup() == FAILURE) {
return FAILURE;
}
}
#if !USE_SAPI
/* close down the ini config */
- php3_config_ini_shutdown();
+ php_config_ini_shutdown();
#endif
#if (WIN32|WINNT) && !(USE_SAPI)
if (SG(request_info).headers_only) {
zend_bailout();
}
- if (php3_header()) {
+ if (php_header()) {
OG(php_body_write) = php_ub_body_write_no_header;
result = php_ub_body_write_no_header(str, str_length);
}
--- /dev/null
+/*
+ +----------------------------------------------------------------------+
+ | PHP version 4.0 |
+ +----------------------------------------------------------------------+
+ | Copyright (c) 1997, 1998, 1999 The PHP Group |
+ +----------------------------------------------------------------------+
+ | This source file is subject to version 2.0 of the PHP license, |
+ | that is bundled with this package in the file LICENSE, and is |
+ | available at through the world-wide-web at |
+ | http://www.php.net/license/2_0.txt. |
+ | If you did not receive a copy of the PHP license and are unable to |
+ | obtain it through the world-wide-web, please send a note to |
+ | license@php.net so we can mail you a copy immediately. |
+ +----------------------------------------------------------------------+
+ | Authors: Jaakko Hyvätti <jaakko.hyvatti@iki.fi> |
+ +----------------------------------------------------------------------+
+ */
+
+/* $Id$ */
+
+#include "php_config.h"
+#include <stdio.h>
+#include <stdarg.h>
+
+#if BROKEN_SPRINTF
+
+int
+php_sprintf (char*s, const char* format, ...)
+{
+ va_list args;
+ char *ret;
+
+ va_start (args, format);
+ s[0] = '\0';
+ ret = vsprintf (s, format, args);
+ va_end (args);
+ if (!ret)
+ return -1;
+ return strlen (s);
+}
+
+#endif /* BROKEN_SPRINTF */
php_parse_gpc_data2(ptr,namebuf,http_post_vars ELS_CC PLS_CC);
/* And a little kludge to pick out special MAX_FILE_SIZE */
- itype = php3_check_ident_type(namebuf);
+ itype = php_check_ident_type(namebuf);
if (itype) {
u = strchr(namebuf, '[');
if (u)
}
bytes = fwrite(ptr, 1, loc - ptr - 4, fp);
fclose(fp);
- php3_list_insert(fn,php_file_le_uploads()); /* Tell PHP about the file so the destructor can unlink it later */
+ zend_list_insert(fn,php_file_le_uploads()); /* Tell PHP about the file so the destructor can unlink it later */
if (bytes < (loc - ptr - 4)) {
php_error(E_WARNING, "Only %d bytes were written, expected to write %ld", bytes, loc - ptr - 4);
}
}
if (ret>-1) {
uid=sb.st_uid;
- if (uid==_php3_getuid()) return(1);
+ if (uid==php_getuid()) return(1);
}
}
s = strrchr(fn,'/');
}
duid = sb.st_uid;
}
- if (duid == (uid=_php3_getuid())) return(1);
+ if (duid == (uid=php_getuid())) return(1);
else {
php_error(E_WARNING, "SAFE MODE Restriction in effect. The script whose uid is %ld is not allowed to access %s owned by uid %ld",uid,fn,duid);
return(0);
(void) php_execute_script(&file_handle CLS_CC ELS_CC PLS_CC);
}
- php3_header(); /* Make sure headers have been sent */
+ php_header(); /* Make sure headers have been sent */
php_end_ob_buffering(1);
return (OK);
}
#include "php_getopt.h"
#endif
-PHPAPI extern char *php3_ini_path;
+PHPAPI extern char *php_ini_path;
#define PHP_MODE_STANDARD 1
#define PHP_MODE_HIGHLIGHT 2
behavior=PHP_MODE_INDENT;
break;
case 'c':
- php3_ini_path = strdup(optarg); /* intentional leak */
+ php_ini_path = strdup(optarg); /* intentional leak */
break;
case 'a':
#if SUPPORT_INTERACTIVE
break;
}
- php3_header(); /* Make sure headers have been sent */
+ php_header(); /* Make sure headers have been sent */
if (free_path_translated)
efree(SG(request_info).path_translated);
php_request_shutdown((void *) 0);
}
-PHPAPI void php3_fhttpd_free_header(void)
+PHPAPI void php_fhttpd_free_header(void)
{
int i;
}
-PHPAPI void php3_fhttpd_puts_header(char *s)
+PHPAPI void php_fhttpd_puts_header(char *s)
{
char *p0, *p1, *p2, *p3, **p;
int l;
{
}
-PHPAPI void php3_fhttpd_puts(char *s)
+PHPAPI void php_fhttpd_puts(char *s)
{
putlinetoresponse(response, s);
}
-PHPAPI void php3_fhttpd_putc(char c)
+PHPAPI void php_fhttpd_putc(char c)
{
writetoresponse(response, &c, 1);
}
-PHPAPI int php3_fhttpd_write(char *a, int n)
+PHPAPI int php_fhttpd_write(char *a, int n)
{
return writetoresponse(response, a, n);
}
#include "php_getopt.h"
#endif
-PHPAPI extern char *php3_ini_path;
+PHPAPI extern char *php_ini_path;
JNIEXPORT void JNICALL Java_net_php_reflect_setEnv
(JNIEnv *newJenv, jclass self);
/*
* Clean up
*/
- php3_header(); /* Make sure headers have been sent */
+ php_header(); /* Make sure headers have been sent */
FREESTRING(SG(request_info).request_method);
FREESTRING(SG(request_info).query_string);