}
-php3_module_entry apache_module_entry = {
+zend_module_entry apache_module_entry = {
"Apache", apache_functions, PHP_MINIT(apache), PHP_MSHUTDOWN(apache), NULL, NULL, PHP_MINFO(apache), STANDARD_MODULE_PROPERTIES
};
static int le_aspell;
-php3_module_entry aspell_module_entry = {
+zend_module_entry aspell_module_entry = {
"Aspell", aspell_functions, PHP_MINIT(aspell), NULL, NULL, NULL, PHP_MINFO(aspell), STANDARD_MODULE_PROPERTIES
};
#if COMPILE_DL
-DLEXPORT php3_module_entry *get_module(void) { return &aspell_module_entry; }
+DLEXPORT zend_module_entry *get_module(void) { return &aspell_module_entry; }
#endif
PHP_MINIT_FUNCTION(aspell)
#ifndef _ASPELL_H
#define _ASPELL_H
#if HAVE_ASPELL
-extern php3_module_entry aspell_module_entry;
+extern zend_module_entry aspell_module_entry;
#define aspell_module_ptr &aspell_module_entry
extern PHP_MINIT_FUNCTION(aspell);
{NULL, NULL, NULL}
};
-php3_module_entry bcmath_module_entry = {
+zend_module_entry bcmath_module_entry = {
"bcmath", bcmath_functions, NULL, NULL, PHP_RINIT(bcmath), PHP_RSHUTDOWN(bcmath), NULL, STANDARD_MODULE_PROPERTIES
};
#if COMPILE_DL
-php3_module_entry *get_module() { return &bcmath_module_entry; };
+zend_module_entry *get_module() { return &bcmath_module_entry; };
#endif
#ifndef THREAD_SAFE
#if WITH_BCMATH
-extern php3_module_entry bcmath_module_entry;
+extern zend_module_entry bcmath_module_entry;
#define phpext_bcmath_ptr &bcmath_module_entry
extern PHP_RINIT_FUNCTION(bcmath);
{NULL, NULL, NULL}
};
-php3_module_entry cpdf_module_entry = {
+zend_module_entry cpdf_module_entry = {
"cpdf", cpdf_functions, PHP_MINIT(cpdf), PHP_MSHUTDOWN(cpdf), PHP_RINIT(cpdf), NULL, PHP_MINFO(cpdf), STANDARD_MODULE_PROPERTIES
};
#if COMPILE_DL
#include "dl/phpdl.h"
-DLEXPORT php3_module_entry *get_module(void) { return &cpdf_module_entry; }
+DLEXPORT zend_module_entry *get_module(void) { return &cpdf_module_entry; }
#endif
static void _free_outline(CPDFoutlineEntry *outline)
PHP_MINFO_FUNCTION(cpdf) {
/* need to use a PHPAPI function here because it is external module in windows */
- php3_printf("Version %s", cpdf_version());
+ php_printf("Version %s", cpdf_version());
}
PHP_MSHUTDOWN_FUNCTION(cpdf){
id=arg1->value.lval;
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);
+ php_error(E_WARNING,"Unable to find identifier %d (type=%d)",id, type);
RETURN_FALSE;
}
id=arg1->value.lval;
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);
+ php_error(E_WARNING,"Unable to find identifier %d (type=%d)",id, type);
RETURN_FALSE;
}
id=arg1->value.lval;
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);
+ php_error(E_WARNING,"Unable to find identifier %d (type=%d)",id, type);
RETURN_FALSE;
}
id=arg1->value.lval;
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);
+ php_error(E_WARNING,"Unable to find identifier %d (type=%d)",id, type);
RETURN_FALSE;
}
pagemode=argv[1]->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
- php3_error(E_WARNING,"Unable to find identifier %d",id);
+ php_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
}
convert_to_string(arg2);
#if APACHE
if(strcmp(arg2->value.str.val, "-") == 0)
- php3_error(E_WARNING,"Writing to stdout as described in the ClibPDF manual is not possible if php3 is used as an Apache module. Write to a memory stream and use cpdf_output_buffer() instead.");
+ php_error(E_WARNING,"Writing to stdout as described in the ClibPDF manual is not possible if php3 is used as an Apache module. Write to a memory stream and use cpdf_output_buffer() instead.");
#endif
cpdf_setOutputFilename(cpdf, arg2->value.str.val);
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
- php3_error(E_WARNING,"Unable to find identifier %d",id);
+ php_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
}
zend_list_delete(id);
width = argv[4]->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
- php3_error(E_WARNING,"Unable to find identifier %d",id);
+ php_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
}
pagenr=arg2->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
- php3_error(E_WARNING,"Unable to find identifier %d",id);
+ php_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
}
pagenr=arg2->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
- php3_error(E_WARNING,"Unable to find identifier %d",id);
+ php_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
- php3_error(E_WARNING,"Unable to find identifier %d",id);
+ php_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
- php3_error(E_WARNING,"Unable to find identifier %d",id);
+ php_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
- php3_error(E_WARNING,"Unable to find identifier %d",id);
+ php_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
}
id=argv[0]->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
- php3_error(E_WARNING,"Unable to find identifier %d",id);
+ php_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
- php3_error(E_WARNING,"Unable to find identifier %d",id);
+ php_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
}
id=argv[0]->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
- php3_error(E_WARNING,"Unable to find identifier %d",id);
+ php_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
- php3_error(E_WARNING,"Unable to find identifier %d",id);
+ php_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
}
if(arg4->value.lval > 6) {
- php3_error(E_WARNING,"Font encoding set to 5");
+ php_error(E_WARNING,"Font encoding set to 5");
arg4->value.lval = 5;
}
cpdf_setFont(pdf, arg2->value.str.val, arg4->value.str.val, (float) arg3->value.dval);
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
- php3_error(E_WARNING,"Unable to find identifier %d",id);
+ php_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
- php3_error(E_WARNING,"Unable to find identifier %d",id);
+ php_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
- php3_error(E_WARNING,"Unable to find identifier %d",id);
+ php_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
- php3_error(E_WARNING,"Unable to find identifier %d",id);
+ php_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
}
matrix=arg2->value.ht;
pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
- php3_error(E_WARNING,"Unable to find identifier %d",id);
+ php_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
}
- if(_php3_hash_num_elements(matrix) != 6) {
- php3_error(E_WARNING,"Text matrix must have 6 elements");
+ if(zend_hash_num_elements(matrix) != 6) {
+ php_error(E_WARNING,"Text matrix must have 6 elements");
RETURN_FALSE;
}
pdfmatrixptr = pdfmatrix;
- _php3_hash_internal_pointer_reset(matrix);
- for(i=0; i<_php3_hash_num_elements(matrix); i++) {
- _php3_hash_get_current_data(matrix, (void *) &data);
+ zend_hash_internal_pointer_reset(matrix);
+ for(i=0; i<zend_hash_num_elements(matrix); i++) {
+ zend_hash_get_current_data(matrix, (void *) &data);
switch(data->type) {
case IS_DOUBLE:
*pdfmatrixptr++ = (float) data->value.dval;
*pdfmatrixptr++ = 0.0;
break;
}
- _php3_hash_move_forward(matrix);
+ zend_hash_move_forward(matrix);
}
cpdf_setTextMatrix(pdf, pdfmatrix[0], pdfmatrix[1],
id=argv[0]->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
- php3_error(E_WARNING,"Unable to find identifier %d",id);
+ php_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
- php3_error(E_WARNING,"Unable to find identifier %d",id);
+ php_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
- php3_error(E_WARNING,"Unable to find identifier %d",id);
+ php_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
- php3_error(E_WARNING,"Unable to find identifier %d",id);
+ php_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
- php3_error(E_WARNING,"Unable to find identifier %d",id);
+ php_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
- php3_error(E_WARNING,"Unable to find identifier %d",id);
+ php_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
- php3_error(E_WARNING,"Unable to find identifier %d",id);
+ php_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
- php3_error(E_WARNING,"Unable to find identifier %d",id);
+ php_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
- php3_error(E_WARNING,"Unable to find identifier %d",id);
+ php_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
- php3_error(E_WARNING,"Unable to find identifier %d",id);
+ php_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
- php3_error(E_WARNING,"Unable to find identifier %d",id);
+ php_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
}
if((arg2->value.lval > 100) && (arg2->value.lval < 0)) {
- php3_error(E_WARNING,"Parameter of pdf_setflat() has to between 0 and 100");
+ php_error(E_WARNING,"Parameter of pdf_setflat() has to between 0 and 100");
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
- php3_error(E_WARNING,"Unable to find identifier %d",id);
+ php_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
}
if((arg2->value.lval > 2) && (arg2->value.lval < 0)) {
- php3_error(E_WARNING,"Parameter of pdf_setlinejoin() has to between 0 and 2");
+ php_error(E_WARNING,"Parameter of pdf_setlinejoin() has to between 0 and 2");
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
- php3_error(E_WARNING,"Unable to find identifier %d",id);
+ php_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
}
if((arg2->value.lval > 2) && (arg2->value.lval < 0)) {
- php3_error(E_WARNING,"Parameter of pdf_setlinecap() has to be > 0 and =< 2");
+ php_error(E_WARNING,"Parameter of pdf_setlinecap() has to be > 0 and =< 2");
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
- php3_error(E_WARNING,"Unable to find identifier %d",id);
+ php_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
}
if(arg2->value.dval < 1) {
- php3_error(E_WARNING,"Parameter of pdf_setmiterlimit() has to be >= 1");
+ php_error(E_WARNING,"Parameter of pdf_setmiterlimit() has to be >= 1");
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
- php3_error(E_WARNING,"Unable to find identifier %d",id);
+ php_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
- php3_error(E_WARNING,"Unable to find identifier %d",id);
+ php_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
}
id=argv[0]->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
- php3_error(E_WARNING,"Unable to find identifier %d",id);
+ php_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
}
id=argv[0]->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
- php3_error(E_WARNING,"Unable to find identifier %d",id);
+ php_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
}
id=argv[0]->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
- php3_error(E_WARNING,"Unable to find identifier %d",id);
+ php_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
}
id=argv[0]->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
- php3_error(E_WARNING,"Unable to find identifier %d",id);
+ php_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
}
id=argv[0]->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
- php3_error(E_WARNING,"Unable to find identifier %d",id);
+ php_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
}
id=argv[0]->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
- php3_error(E_WARNING,"Unable to find identifier %d",id);
+ php_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
}
id=argv[0]->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
- php3_error(E_WARNING,"Unable to find identifier %d",id);
+ php_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
}
id=argv[0]->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
- php3_error(E_WARNING,"Unable to find identifier %d",id);
+ php_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
- php3_error(E_WARNING,"Unable to find identifier %d",id);
+ php_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
- php3_error(E_WARNING,"Unable to find identifier %d",id);
+ php_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
- php3_error(E_WARNING,"Unable to find identifier %d",id);
+ php_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
- php3_error(E_WARNING,"Unable to find identifier %d",id);
+ php_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
- php3_error(E_WARNING,"Unable to find identifier %d",id);
+ php_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
- php3_error(E_WARNING,"Unable to find identifier %d",id);
+ php_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
- php3_error(E_WARNING,"Unable to find identifier %d",id);
+ php_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
- php3_error(E_WARNING,"Unable to find identifier %d",id);
+ php_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
- php3_error(E_WARNING,"Unable to find identifier %d",id);
+ php_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
- php3_error(E_WARNING,"Unable to find identifier %d",id);
+ php_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
- php3_error(E_WARNING,"Unable to find identifier %d",id);
+ php_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
- php3_error(E_WARNING,"Unable to find identifier %d",id);
+ php_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
- php3_error(E_WARNING,"Unable to find identifier %d",id);
+ php_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
- php3_error(E_WARNING,"Unable to find identifier %d",id);
+ php_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
- php3_error(E_WARNING,"Unable to find identifier %d",id);
+ php_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
- php3_error(E_WARNING,"Unable to find identifier %d",id);
+ php_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
- php3_error(E_WARNING,"Unable to find identifier %d",id);
+ php_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
- php3_error(E_WARNING,"Unable to find identifier %d",id);
+ php_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
}
#if APACHE
if(strcmp(arg2->value.str.val, "-") == 0)
- php3_error(E_WARNING,"Writing to stdout as described in the ClibPDF manual is not possible if php3 is used as an Apache module. Use cpdf_output_buffer() instead.");
+ php_error(E_WARNING,"Writing to stdout as described in the ClibPDF manual is not possible if php3 is used as an Apache module. Use cpdf_output_buffer() instead.");
#endif
cpdf_savePDFmemoryStreamToFile(pdf, arg2->value.str.val);
id=argv[0]->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
- php3_error(E_WARNING,"Unable to find identifier %d",id);
+ php_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
}
id=argv[0]->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
- php3_error(E_WARNING,"Unable to find identifier %d",id);
+ php_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
}
gid=argv[1]->value.lval;
im = zend_list_find(gid, &type);
if (!im || type != phpi_get_le_gd()) {
- php3_error(E_WARNING, "cpdf: Unable to find image pointer");
+ php_error(E_WARNING, "cpdf: Unable to find image pointer");
RETURN_FALSE;
}
id=argv[0]->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
- php3_error(E_WARNING,"Unable to find identifier %d",id);
+ php_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
}
id=argv[0]->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
- php3_error(E_WARNING,"Unable to find identifier %d",id);
+ php_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
}
id=argv[0]->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
- php3_error(E_WARNING,"Unable to find identifier %d",id);
+ php_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
}
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);
+/* php_error(E_WARNING,"Unable to find last outline entry %d",id);
RETURN_FALSE; */
}
#include <cpdflib.h>
-extern php3_module_entry cpdf_module_entry;
+extern zend_module_entry cpdf_module_entry;
#define cpdf_module_ptr &cpdf_module_entry
extern PHP_MINFO_FUNCTION(cpdf);
/* {{{ dynamically loadable module stuff */
# if COMPILE_DL
-DLEXPORT php3_module_entry *get_module() { return &phpdav_module_entry; };
+DLEXPORT zend_module_entry *get_module() { return &phpdav_module_entry; };
# endif /* COMPILE_DL */
/* }}} */
{NULL, NULL, NULL}
};
-php3_module_entry phpdav_module_entry = {
+zend_module_entry phpdav_module_entry = {
"DAV", /* extension name */
phpdav_functions, /* extension function list */
php3_minit_phpdav, /* extension-wide startup function */
char *mkcol_create_handler;
} phpdav_module;
-extern php3_module_entry phpdav_module_entry;
+extern zend_module_entry phpdav_module_entry;
# define phpdav_module_ptr &phpdav_module_entry
int phpdav_mkcol_test_handler(request_rec *);
convert_to_string(filename);
convert_to_string(mode);
- info = _php3_dbmopen(filename->value.str.val, mode->value.str.val);
+ info = php_dbm_open(filename->value.str.val, mode->value.str.val);
if (info) {
ret = zend_list_insert(info, DBM_GLOBAL(le_db));
RETURN_LONG(ret);
}
}
-dbm_info *_php3_dbmopen(char *filename, char *mode) {
+dbm_info *php_dbm_open(char *filename, char *mode) {
dbm_info *info;
int ret, lock=0;
char *lockfn = NULL;
PLS_FETCH();
if (filename == NULL) {
- php_error(E_WARNING, "NULL filename passed to _php3_dbmopen()");
+ php_error(E_WARNING, "NULL filename passed to php_dbm_open()");
return NULL;
}
}
}
-int _php3_dbmclose(dbm_info *info) {
+int php_dbm_close(dbm_info *info) {
int ret = 0;
DBM_TYPE dbf;
int lockfd;
RETURN_FALSE;
}
- ret = _php3_dbminsert(info, key->value.str.val, value->value.str.val);
+ ret = php_dbm_insert(info, key->value.str.val, value->value.str.val);
RETURN_LONG(ret);
}
-int _php3_dbminsert(dbm_info *info, char *key, char *value) {
+int php_dbm_insert(dbm_info *info, char *key, char *value) {
datum key_datum, value_datum;
int ret;
DBM_TYPE dbf;
RETURN_FALSE;
}
- ret = _php3_dbmreplace(info, key->value.str.val, value->value.str.val);
+ ret = php_dbm_replace(info, key->value.str.val, value->value.str.val);
RETURN_LONG(ret);
}
-int _php3_dbmreplace(dbm_info *info, char *key, char *value) {
+int php_dbm_replace(dbm_info *info, char *key, char *value) {
DBM_TYPE dbf;
int ret;
datum key_datum, value_datum;
RETURN_FALSE;
}
- return_value->value.str.val = _php3_dbmfetch(info, key->value.str.val);
+ return_value->value.str.val = php_dbm_fetch(info, key->value.str.val);
if (return_value->value.str.val) {
return_value->value.str.len = strlen(return_value->value.str.val);
return_value->type = IS_STRING;
}
}
-char *_php3_dbmfetch(dbm_info *info, char *key) {
+char *php_dbm_fetch(dbm_info *info, char *key) {
datum key_datum, value_datum;
char *ret;
DBM_TYPE dbf;
}
#endif
- DBM_GLOBAL(le_db) = register_list_destructors(_php3_dbmclose,NULL);
+ DBM_GLOBAL(le_db) = register_list_destructors(php_dbm_close,NULL);
return SUCCESS;
}
{NULL,NULL,NULL}
};
-php3_module_entry dbm_module_entry = {
+zend_module_entry dbm_module_entry = {
"DBM", dbm_functions, PHP_MINIT(db), PHP_MSHUTDOWN(db), PHP_RINIT(db), NULL, PHP_MINFO(db), STANDARD_MODULE_PROPERTIES
};
#if COMPILE_DL
-DLEXPORT php3_module_entry *get_module(void) { return &dbm_module_entry; }
+DLEXPORT zend_module_entry *get_module(void) { return &dbm_module_entry; }
#endif
#endif
#endif
-extern php3_module_entry dbm_module_entry;
+extern zend_module_entry dbm_module_entry;
#define phpext_db_ptr &dbm_module_entry
#endif
dbm_info *_php3_finddbm(pval *id,HashTable *list);
-int _php3_dbmclose(dbm_info *info);
-dbm_info *_php3_dbmopen(char *filename, char *mode);
-int _php3_dbminsert(dbm_info *info, char *key, char *value);
-char *_php3_dbmfetch(dbm_info *info, char *key);
-int _php3_dbmreplace(dbm_info *info, char *key, char *value);
+int php_dbm_close(dbm_info *info);
+dbm_info *php_dbm_open(char *filename, char *mode);
+int php_dbm_insert(dbm_info *info, char *key, char *value);
+char *php_dbm_fetch(dbm_info *info, char *key);
+int php_dbm_replace(dbm_info *info, char *key, char *value);
int _php3_dbmexists(dbm_info *info, char *key);
int _php3_dbmdelete(dbm_info *info, char *key);
char *_php3_dbmfirstkey(dbm_info *info);
static PHP_MSHUTDOWN_FUNCTION(dba);
static PHP_MINFO_FUNCTION(dba);
-php3_module_entry dba_module_entry = {
+zend_module_entry dba_module_entry = {
"DataBase API", dba_functions,
PHP_MINIT(dba),
PHP_MSHUTDOWN(dba),
struct dba_handler *hnd;
} dba_info;
-extern php3_module_entry dba_module_entry;
+extern zend_module_entry dba_module_entry;
#define dba_module_ptr &dba_module_entry
/* common prototypes which must be supplied by modules */
{NULL, NULL, NULL}
};
-php3_module_entry dbase_module_entry = {
+zend_module_entry dbase_module_entry = {
"DBase", dbase_functions, PHP_MINIT(dbase), PHP_MSHUTDOWN(dbase), NULL, NULL, NULL, STANDARD_MODULE_PROPERTIES
};
#if defined(COMPILE_DL)
-DLEXPORT php3_module_entry *get_module(void) { return &dbase_module_entry; }
+DLEXPORT zend_module_entry *get_module(void) { return &dbase_module_entry; }
#if (WIN32|WINNT) && defined(THREAD_SAFE)
#ifndef _DBASE_H
#define _DBASE_H
#if DBASE
-extern php3_module_entry dbase_module_entry;
+extern zend_module_entry dbase_module_entry;
#define dbase_module_ptr &dbase_module_entry
extern PHP_MINIT_FUNCTION(dbase);
{NULL, NULL, NULL}
};
-php3_module_entry php3_domxml_module_entry = {
+zend_module_entry php3_domxml_module_entry = {
"DOM", php_domxml_functions, PHP_MINIT(domxml), NULL, NULL, NULL, PHP_MINFO(domxml), STANDARD_MODULE_PROPERTIES
};
#if HAVE_DOMXML
#include <gnome-xml/parser.h>
-extern php3_module_entry php3_domxml_module_entry;
+extern zend_module_entry php3_domxml_module_entry;
#define php3_domxml_module_ptr &php3_domxml_module_entry
/* directory functions */
#ifndef _REG_H
#define _REG_H
-extern php3_module_entry regexp_module_entry;
+extern zend_module_entry regexp_module_entry;
#define regexp_module_ptr ®exp_module_entry
char *_php3_regreplace(const char *pattern, const char *replace, const char *string, int icase, int extended);
{NULL, NULL, NULL}
};
-php3_module_entry fdf_module_entry = {
+zend_module_entry fdf_module_entry = {
"fdf", fdf_functions, PHP_MINIT(fdf), PHP_MSHUTDOWN(fdf), NULL, NULL,
PHP_MINFO(fdf), STANDARD_MODULE_PROPERTIES
};
#if COMPILE_DL
#include "dl/phpdl.h"
-DLEXPORT php3_module_entry *get_module(void) { return &fdf_module_entry; }
+DLEXPORT zend_module_entry *get_module(void) { return &fdf_module_entry; }
#endif
static void phpi_FDFClose(FDFDoc fdf) {
id=(*arg1)->value.lval;
fdf = zend_list_find(id,&type);
if(!fdf || type!=FDF_GLOBAL(le_fdf)) {
- php3_error(E_WARNING,"Unable to find file identifier %d",id);
+ php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
}
#include <FdfTk.h>
-extern php3_module_entry fdf_module_entry;
+extern zend_module_entry fdf_module_entry;
#define phpext_fdf_ptr &fdf_module_entry
extern PHP_MINIT_FUNCTION(fdf);
{NULL, NULL, NULL}
};
-php3_module_entry filepro_module_entry = {
+zend_module_entry filepro_module_entry = {
"FilePro", filepro_functions, PHP_MINIT(filepro), PHP_MSHUTDOWN(filepro), NULL, NULL, NULL, STANDARD_MODULE_PROPERTIES
};
#if COMPILE_DL
#include "dl/phpdl.h"
-DLEXPORT php3_module_entry *get_module(void) { return &filepro_module_entry; }
+DLEXPORT zend_module_entry *get_module(void) { return &filepro_module_entry; }
#if (WIN32|WINNT) && defined(THREAD_SAFE)
/*NOTE: You should have an odbc.def file where you
#ifndef _FILEPRO_H
#define _FILEPRO_H
#if HAVE_FILEPRO
-extern php3_module_entry filepro_module_entry;
+extern zend_module_entry filepro_module_entry;
#define phpext_filepro_ptr &filepro_module_entry
PHP_FUNCTION(filepro);
#ifndef ZEND_VERSION
#include "internal_functions.h"
#include "php3_list.h"
-#define php_error php3_error
+#define php_error php_error
#endif
#include "ext/standard/file.h"
{NULL, NULL, NULL}
};
-php3_module_entry php3_ftp_module_entry = {
+zend_module_entry php3_ftp_module_entry = {
"FTP Functions",
php3_ftp_functions,
#ifdef ZEND_VERSION
#if HAVE_FTP
-extern php3_module_entry php3_ftp_module_entry;
+extern zend_module_entry php3_ftp_module_entry;
#define php3_ftp_module_ptr &php3_ftp_module_entry
#ifdef ZEND_VERSION
{NULL, NULL, NULL}
};
-php3_module_entry gd_module_entry = {
+zend_module_entry gd_module_entry = {
"gd", gd_functions, PHP_MINIT(gd), PHP_MSHUTDOWN(gd), NULL, NULL, PHP_MINFO(gd), STANDARD_MODULE_PROPERTIES
};
#ifdef COMPILE_DL_GD
# include "dl/phpdl.h"
-DLEXPORT php3_module_entry *get_module(void) { return &gd_module_entry; }
+DLEXPORT zend_module_entry *get_module(void) { return &gd_module_entry; }
#endif
#endif
if (!fp) {
php_strip_url_passwd(fn);
- php3_error(E_WARNING,
+ php_error(E_WARNING,
"ImageCreateFromPng: Unable to open %s for reading", fn);
RETURN_FALSE;
}
convert_to_string(file);
fn = file->value.str.val;
if (!fn || fn == empty_string || php_check_open_basedir(fn)) {
- php3_error(E_WARNING, "ImagePng: Invalid filename");
+ php_error(E_WARNING, "ImagePng: Invalid filename");
RETURN_FALSE;
}
}
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");
+ php_error(E_WARNING, "ImagePng: unable to find image pointer");
RETURN_FALSE;
}
if (argc == 2) {
fp = fopen(fn, "wb");
if (!fp) {
- php3_error(E_WARNING, "ImagePng: unable to open %s for writing", fn);
+ php_error(E_WARNING, "ImagePng: unable to open %s for writing", fn);
RETURN_FALSE;
}
gdImagePng (im,fp);
char buf[4096];
tmp = tmpfile();
if (tmp == NULL) {
- php3_error(E_WARNING, "Unable to open temporary file");
+ php_error(E_WARNING, "Unable to open temporary file");
RETURN_FALSE;
}
output = php_header();
efree(f_ind);
switch (l_ind) {
case -1:
- php3_error(E_WARNING, "Couldn't find the font file");
+ php_error(E_WARNING, "Couldn't find the font file");
RETURN_FALSE;
break;
case -2:
case -3:
- php3_error(E_WARNING, "Memory allocation fault in t1lib");
+ php_error(E_WARNING, "Memory allocation fault in t1lib");
RETURN_FALSE;
break;
default:
- php3_error(E_WARNING, "An unknown error occurred in t1lib");
+ php_error(E_WARNING, "An unknown error occurred in t1lib");
RETURN_FALSE;
break;
}
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);
+ php_error(E_WARNING, "%d is not a Type 1 font index", fnt->value.lval);
RETURN_FALSE;
}
efree(nf_ind);
switch (l_ind) {
case -1:
- php3_error(E_WARNING, "FontID %d is not loaded in memory", l_ind);
+ php_error(E_WARNING, "FontID %d is not loaded in memory", l_ind);
RETURN_FALSE;
break;
case -2:
- php3_error(E_WARNING, "Tried to copy a logical font");
+ php_error(E_WARNING, "Tried to copy a logical font");
RETURN_FALSE;
break;
case -3:
- php3_error(E_WARNING, "Memory allocation fault in t1lib");
+ php_error(E_WARNING, "Memory allocation fault in t1lib");
RETURN_FALSE;
break;
default:
- php3_error(E_WARNING, "An unknown error occurred in t1lib");
+ php_error(E_WARNING, "An unknown error occurred in t1lib");
RETURN_FALSE;
break;
}
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);
+ php_error(E_WARNING, "%d is not a Type 1 font index", fnt->value.lval);
RETURN_FALSE;
}
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);
+ php_error(E_WARNING, "%d is not a Type 1 font index", fnt->value.lval);
RETURN_FALSE;
}
if ((enc_vector = T1_LoadEncoding(enc->value.str.val)) == NULL) {
- php3_error(E_WARNING, "Couldn't load encoding vector from %s", enc->value.str.val);
+ php_error(E_WARNING, "Couldn't load encoding vector from %s", enc->value.str.val);
RETURN_FALSE;
}
T1_DeleteAllSizes(f_ind->font_id);
if (T1_ReencodeFont(f_ind->font_id, enc_vector)) {
T1_DeleteEncoding(enc_vector);
- php3_error(E_WARNING, "Couldn't reencode font");
+ php_error(E_WARNING, "Couldn't reencode font");
RETURN_FALSE;
}
zend_list_insert(enc_vector, GD_GLOBAL(le_ps_enc));
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);
+ php_error(E_WARNING, "%d is not a Type 1 font index", fnt->value.lval);
RETURN_FALSE;
}
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);
+ php_error(E_WARNING, "%d is not a Type 1 font index", fnt->value.lval);
RETURN_FALSE;
}
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");
+ php_error(E_WARNING, "Unable to find image pointer");
RETURN_FALSE;
}
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);
+ php_error(E_WARNING, "%d is not a Type 1 font index", fnt->value.lval);
RETURN_FALSE;
}
T1_AASetLevel(T1_AA_HIGH);
break;
default:
- php3_error(E_WARNING, "Invalid value %d as number of steps for antialiasing", aa_steps);
+ php_error(E_WARNING, "Invalid value %d as number of steps for antialiasing", aa_steps);
RETURN_FALSE;
}
}
str_img = T1_AAFillOutline(str_path, 0);
#else
- php3_error(E_WARNING, "Setting space between characters in function ImagePSText is supported only with t1lib version 0.9 or above");
+ php_error(E_WARNING, "Setting space between characters in function ImagePSText is supported only with t1lib version 0.9 or above");
RETURN_FALSE;
#endif
} else {
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);
+ php_error(E_WARNING, "%d is not a Type 1 font index", fnt->value.lval);
RETURN_FALSE;
}
#include <gd.h>
-extern php3_module_entry gd_module_entry;
+extern zend_module_entry gd_module_entry;
#define phpext_gd_ptr &gd_module_entry
/* gd.c functions */
{NULL, NULL, NULL}
};
-php3_module_entry php3_gettext_module_entry = {
+zend_module_entry php3_gettext_module_entry = {
"gettext", php3_gettext_functions, NULL, NULL, NULL, NULL, PHP_MINFO(gettext), STANDARD_MODULE_PROPERTIES
};
#include "modules.h"
#endif
-extern php3_module_entry php3_gettext_module_entry;
+extern zend_module_entry php3_gettext_module_entry;
#define gettext_module_ptr &php3_gettext_module_entry
PHP_MINFO_FUNCTION(gettext);
hg_msg *msg;
if ( (msg = (hg_msg *)emalloc(sizeof(hg_msg))) == NULL ) {
-/* php3_printf("recv_hg_msg"); */
+/* php_printf("recv_hg_msg"); */
lowerror = LE_MALLOC;
return(NULL);
}
if ( hg_read_exact(sockfd, (char *)&(msg->length), 4) == -1 ) {
-/* php3_printf("recv_hg_msg: hg_read (1) returned -1\n"); */
+/* php_printf("recv_hg_msg: hg_read (1) returned -1\n"); */
efree(msg);
return(NULL);
}
if ( hg_read_exact(sockfd, (char *)&(msg->version_msgid), 4) == -1 ) {
-/* php3_printf("recv_hg_msg: hg_read (2) returned -1\n"); */
+/* php_printf("recv_hg_msg: hg_read (2) returned -1\n"); */
efree(msg);
return(NULL);
}
if ( hg_read_exact(sockfd, (char *)&(msg->msg_type), 4) == -1 ) {
-/* php3_printf("recv_hg_msg: hg_read (3) returned -1\n"); */
+/* php_printf("recv_hg_msg: hg_read (3) returned -1\n"); */
efree(msg);
return(NULL);
}
if ( msg->length > HEADER_LENGTH ) {
if ( (msg->buf = (char *) emalloc(msg->length-HEADER_LENGTH)) == NULL ) {
-/* php3_printf("recv_hg_msg"); */
+/* php_printf("recv_hg_msg"); */
lowerror = LE_MALLOC;
efree(msg);
return(NULL);
}
if ( hg_read_exact(sockfd, msg->buf, msg->length-HEADER_LENGTH) == -1 ) {
-/* php3_printf("recv_hg_msg: hg_read (4) returned -1\n"); */
+/* php_printf("recv_hg_msg: hg_read (4) returned -1\n"); */
efree(msg->buf);
efree(msg);
return(NULL);
msg->buf = NULL;
#ifdef HW_DEBUG
- php3_printf("<B> Recv msg: </B>type = %d -- id = %d<BR>\n", msg->msg_type, msg->version_msgid);
+ php_printf("<B> Recv msg: </B>type = %d -- id = %d<BR>\n", msg->msg_type, msg->version_msgid);
#endif
return(msg);
}
hg_msg *ready_msg;
if ( (ready_msg = recv_hg_msg(sockfd)) == NULL ) {
-/* php3_printf("recv_ready: recv_hg_msg returned NULL\n"); */
+/* php_printf("recv_ready: recv_hg_msg returned NULL\n"); */
return(NULL);
}
if ( ready_msg->msg_type != READY_MESSAGE ) {
-/* php3_printf("recv_ready: recv_hg_msg returned wrong message: %d, %d \n", ready_msg->length, ready_msg->msg_type); */
+/* php_printf("recv_ready: recv_hg_msg returned wrong message: %d, %d \n", ready_msg->length, ready_msg->msg_type); */
efree(ready_msg);
return(NULL);
}
*/
if(host) {
if((hostptr = gethostbyname(host)) == NULL) {
- php3_error(E_WARNING, "gethostbyname failed for %s", host);
+ php_error(E_WARNING, "gethostbyname failed for %s", host);
HWSOCK_FCLOSE(fd);
return(-2);
}
*/
len = sizeof(serv_addr);
if((newfd = accept(fd, (struct sockaddr *) &serv_addr, &len)) < 0) {
-/* php3_printf("client: can't open data connection to server\n"); */
+/* php_printf("client: can't open data connection to server\n"); */
if(attributes) efree(attributes);
HWSOCK_FCLOSE(fd);
return(-8);
*/
if(host) {
if((hostptr = gethostbyname(host)) == NULL) {
- php3_error(E_WARNING, "gethostbyname failed for %s", host);
+ php_error(E_WARNING, "gethostbyname failed for %s", host);
HWSOCK_FCLOSE(fd);
return(-1);
}
hostip = inet_ntoa(*ptr1);
break;
default:
-/* php3_printf(stderr, "unknown address type\n"); */
+/* php_printf(stderr, "unknown address type\n"); */
break;
}
*/
if(host) {
if((hostptr = gethostbyname(host)) == NULL) {
- php3_error(E_WARNING, "gethostbyname failed for %s", host);
+ php_error(E_WARNING, "gethostbyname failed for %s", host);
/* close(fd); fd is not set yet */
return(-4);
}
char *buf, *tmp;
#ifdef HW_DEBUG
- php3_printf("<B>Sending msg: </B>type = %d -- id = %d<BR>\n", msg->msg_type, msg->version_msgid);
+ php_printf("<B>Sending msg: </B>type = %d -- id = %d<BR>\n", msg->msg_type, msg->version_msgid);
#endif
if ( length < HEADER_LENGTH ) {
/* fprintf(stderr, "send_hg_msg: bad msg\n"); */
int tmp;
#ifdef HW_DEBUG
- php3_printf(" Added int to header: <B>%d</B><BR>\n", val);
+ php_printf(" Added int to header: <B>%d</B><BR>\n", val);
#endif
tmp = swap_on ? swap(val) : val;
memcpy(buf, (char *)&tmp, 4);
int len = strlen(str)+1;
#ifdef HW_DEBUG
- php3_printf(" Added str to header: <B>%s</B> (%d)<BR>\n", str, strlen(str));
+ php_printf(" Added str to header: <B>%s</B> (%d)<BR>\n", str, strlen(str));
#endif
memcpy(buf, str, len);
{NULL, NULL, NULL}
};
-php3_module_entry hw_module_entry = {
+zend_module_entry hw_module_entry = {
"HyperWave", hw_functions, PHP_MINIT(hw), PHP_MSHUTDOWN(hw), NULL, NULL, PHP_MINFO(hw), 0, 0, 0, NULL
};
#endif
#ifdef COMPILE_DL
-DLEXPORT php3_module_entry *get_module(void) { return &hw_module_entry; }
+DLEXPORT zend_module_entry *get_module(void) { return &hw_module_entry; }
#endif
void print_msg(hg_msg *msg, char *str, int txt);
#if COMPILE_DL
-DLEXPORT php3_module_entry *get_module(void) { return &hw_module_entry; }
+DLEXPORT zend_module_entry *get_module(void) { return &hw_module_entry; }
#endif
void _close_hw_link(hw_connection *conn)
id=(*arg3)->value.lval;
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);
+ php_error(E_WARNING,"Unable to find file identifier %d",link);
RETURN_FALSE;
}
set_swap(ptr->swap_on);
if (0 != (ptr->lasterror = send_mapid(ptr->socket, servid, id, &virtid))) {
- php3_error(E_WARNING, "send_command (mapid) returned %d\n", ptr->lasterror);
+ php_error(E_WARNING, "send_command (mapid) returned %d\n", ptr->lasterror);
RETURN_FALSE;
}
RETURN_LONG(virtid);
#include "hg_comm.h"
-extern php3_module_entry hw_module_entry;
+extern zend_module_entry hw_module_entry;
#define hw_module_ptr &hw_module_entry
typedef struct {
};
-php3_module_entry php3_icap_module_entry = {
+zend_module_entry php3_icap_module_entry = {
CALVER, icap_functions, PHP_MINIT(icap), NULL, NULL, NULL, PHP_MINFO(icap), 0, 0, 0, NULL
};
#if COMPILE_DL
-DLEXPORT php3_module_entry *get_module(void) { return &php3_icap_module_entry; }
+DLEXPORT zend_module_entry *get_module(void) { return &php3_icap_module_entry; }
#endif
/*
PHP_MINFO_FUNCTION(icap)
{
- php3_printf("Icap Support enabled<br>");
- php3_printf("<table>");
- php3_printf("<tr><td>Icap Version:</td>");
- php3_printf("<td>%s</td>",CALVER);
- php3_printf("</tr></table>");
+ php_printf("Icap Support enabled<br>");
+ php_printf("<table>");
+ php_printf("<tr><td>Icap Version:</td>");
+ php_printf("<td>%s</td>",CALVER);
+ php_printf("</tr></table>");
}
PHP_MINIT_FUNCTION(icap)
}
icap_stream = cal_open(NULL,calendar->value.str.val,0);
if (!icap_stream) {
- php3_error(E_WARNING,"Couldn't open stream %s\n",calendar->value.str.val);
+ php_error(E_WARNING,"Couldn't open stream %s\n",calendar->value.str.val);
RETURN_FALSE;
}
ind = streamind->value.lval;
icap_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!icap_le_struct ) {
- php3_error(E_WARNING, "Unable to find stream pointer");
+ php_error(E_WARNING, "Unable to find stream pointer");
RETURN_FALSE;
}
if(myargcount==2) {
ind = streamind->value.lval;
icap_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!icap_le_struct ) {
- php3_error(E_WARNING, "Unable to find stream pointer");
+ php_error(E_WARNING, "Unable to find stream pointer");
RETURN_FALSE;
}
// icap_stream = cal_connect(calendar->value.str.val);
// cal_login(icap_stream, calendar->value.str.val);
if (icap_stream == NULL) {
- php3_error(E_WARNING,"Couldn't re-open stream\n");
+ php_error(E_WARNING,"Couldn't re-open stream\n");
RETURN_FALSE;
}
RETURN_TRUE;
icap_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!icap_le_struct ) {
- php3_error(E_WARNING, "Unable to find stream pointer");
+ php_error(E_WARNING, "Unable to find stream pointer");
RETURN_FALSE;
}
ind = streamind->value.lval;
icap_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!icap_le_struct ) {
- php3_error(E_WARNING, "Unable to find stream pointer");
+ php_error(E_WARNING, "Unable to find stream pointer");
RETURN_FALSE;
}
if(myargcount==3) {
icap_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!icap_le_struct ) {
- php3_error(E_WARNING, "Unable to find stream pointer");
+ php_error(E_WARNING, "Unable to find stream pointer");
RETURN_FALSE;
}
}
begincal.has_time=0;
endcal.has_time=0;
- if(_php3_hash_find(begindate->value.ht,"year",sizeof("year"),(void **) &pvalue)== SUCCESS){
+ if(zend_hash_find(begindate->value.ht,"year",sizeof("year"),(void **) &pvalue)== SUCCESS){
SEPARATE_ZVAL(pvalue);
convert_to_long(*pvalue);
begincal.year=(*pvalue)->value.lval;
}
- if(_php3_hash_find(begindate->value.ht,"month",sizeof("month"),(void **) &pvalue)== SUCCESS){
+ if(zend_hash_find(begindate->value.ht,"month",sizeof("month"),(void **) &pvalue)== SUCCESS){
SEPARATE_ZVAL(pvalue);
convert_to_long(*pvalue);
begincal.mon=(*pvalue)->value.lval;
}
- if(_php3_hash_find(begindate->value.ht,"day",sizeof("day"),(void **) &pvalue)== SUCCESS){
+ if(zend_hash_find(begindate->value.ht,"day",sizeof("day"),(void **) &pvalue)== SUCCESS){
SEPARATE_ZVAL(pvalue);
convert_to_long(*pvalue);
begincal.mday=(*pvalue)->value.lval;
}
if(myargc == 3)
{
- if(_php3_hash_find(enddate->value.ht,"year",sizeof("year"),(void **) &pvalue)== SUCCESS){
+ if(zend_hash_find(enddate->value.ht,"year",sizeof("year"),(void **) &pvalue)== SUCCESS){
SEPARATE_ZVAL(pvalue);
convert_to_long(*pvalue);
endcal.year=(*pvalue)->value.lval;
}
- if(_php3_hash_find(enddate->value.ht,"month",sizeof("month"),(void **) &pvalue)== SUCCESS){
+ if(zend_hash_find(enddate->value.ht,"month",sizeof("month"),(void **) &pvalue)== SUCCESS){
SEPARATE_ZVAL(pvalue);
convert_to_long(*pvalue);
endcal.mon=(*pvalue)->value.lval;
}
- if(_php3_hash_find(enddate->value.ht,"day",sizeof("day"),(void **) &pvalue)== SUCCESS){
+ if(zend_hash_find(enddate->value.ht,"day",sizeof("day"),(void **) &pvalue)== SUCCESS){
SEPARATE_ZVAL(pvalue);
convert_to_long(*pvalue);
endcal.mday=(*pvalue)->value.lval;
icap_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!icap_le_struct ) {
- php3_error(E_WARNING, "Unable to find stream pointer");
+ php_error(E_WARNING, "Unable to find stream pointer");
RETURN_FALSE;
}
/*
icap_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!icap_le_struct ) {
- php3_error(E_WARNING, "Unable to find stream pointer");
+ php_error(E_WARNING, "Unable to find stream pointer");
RETURN_FALSE;
}
/*
icap_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!icap_le_struct ) {
- php3_error(E_WARNING, "Unable to find stream pointer");
+ php_error(E_WARNING, "Unable to find stream pointer");
RETURN_FALSE;
}
}
mydate.has_date=1;
mydate.has_time=1;
- if(_php3_hash_find(date->value.ht,"year",sizeof("year"),(void **) &pvalue)== SUCCESS){
+ if(zend_hash_find(date->value.ht,"year",sizeof("year"),(void **) &pvalue)== SUCCESS){
SEPARATE_ZVAL(pvalue);
convert_to_long(*pvalue);
mydate.year=(*pvalue)->value.lval;
}
- if(_php3_hash_find(date->value.ht,"month",sizeof("month"),(void **) &pvalue)== SUCCESS){
+ if(zend_hash_find(date->value.ht,"month",sizeof("month"),(void **) &pvalue)== SUCCESS){
SEPARATE_ZVAL(pvalue);
convert_to_long(*pvalue);
mydate.mon=(*pvalue)->value.lval;
}
- if(_php3_hash_find(date->value.ht,"day",sizeof("day"),(void **) &pvalue)== SUCCESS){
+ if(zend_hash_find(date->value.ht,"day",sizeof("day"),(void **) &pvalue)== SUCCESS){
SEPARATE_ZVAL(pvalue);
convert_to_long(*pvalue);
mydate.mday=(*pvalue)->value.lval;
}
- if(_php3_hash_find(time->value.ht,"hour",sizeof("hour"),(void **) &pvalue)== SUCCESS){
+ if(zend_hash_find(time->value.ht,"hour",sizeof("hour"),(void **) &pvalue)== SUCCESS){
SEPARATE_ZVAL(pvalue);
convert_to_long(*pvalue);
mydate.hour=(*pvalue)->value.lval;
}
- if(_php3_hash_find(time->value.ht,"minute",sizeof("minute"),(void **) &pvalue)== SUCCESS){
+ if(zend_hash_find(time->value.ht,"minute",sizeof("minute"),(void **) &pvalue)== SUCCESS){
SEPARATE_ZVAL(pvalue);
convert_to_long(*pvalue);
mydate.min=(*pvalue)->value.lval;
icap_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!icap_le_struct ) {
- php3_error(E_WARNING, "Unable to find stream pointer");
+ php_error(E_WARNING, "Unable to find stream pointer");
RETURN_FALSE;
}
icap_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!icap_le_struct ) {
- php3_error(E_WARNING, "Unable to find stream pointer");
+ php_error(E_WARNING, "Unable to find stream pointer");
RETURN_FALSE;
}
if (cal_remove(icap_le_struct->icap_stream,uid->value.lval))
icap_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!icap_le_struct ) {
- php3_error(E_WARNING, "Unable to find stream pointer");
+ php_error(E_WARNING, "Unable to find stream pointer");
RETURN_FALSE;
}
RETURN_FALSE;
}
myevent=calevent_new();
- if(_php3_hash_find(storeobject->value.ht,"uid",sizeof("uid"),(void **) &pvalue)== SUCCESS){
+ if(zend_hash_find(storeobject->value.ht,"uid",sizeof("uid"),(void **) &pvalue)== SUCCESS){
SEPARATE_ZVAL(pvalue);
convert_to_long(*pvalue);
myevent->id=(*pvalue)->value.lval;
}
- if(_php3_hash_find(storeobject->value.ht,"public",sizeof("public"),(void **) &pvalue)== SUCCESS){
+ if(zend_hash_find(storeobject->value.ht,"public",sizeof("public"),(void **) &pvalue)== SUCCESS){
SEPARATE_ZVAL(pvalue);
convert_to_long(*pvalue);
myevent->public=(*pvalue)->value.lval;
}
- if(_php3_hash_find(storeobject->value.ht,"category",sizeof("category"),(void **) &pvalue)== SUCCESS){
+ if(zend_hash_find(storeobject->value.ht,"category",sizeof("category"),(void **) &pvalue)== SUCCESS){
SEPARATE_ZVAL(pvalue);
convert_to_string(*pvalue);
myevent->category=strdup((*pvalue)->value.str.val);
}
- if(_php3_hash_find(storeobject->value.ht,"title",sizeof("title"),(void **) &pvalue)== SUCCESS){
+ if(zend_hash_find(storeobject->value.ht,"title",sizeof("title"),(void **) &pvalue)== SUCCESS){
SEPARATE_ZVAL(pvalue);
convert_to_string(*pvalue);
myevent->title=strdup((*pvalue)->value.str.val);
}
- if(_php3_hash_find(storeobject->value.ht,"description",sizeof("description"),(void **) &pvalue)== SUCCESS){
+ if(zend_hash_find(storeobject->value.ht,"description",sizeof("description"),(void **) &pvalue)== SUCCESS){
SEPARATE_ZVAL(pvalue);
convert_to_string(*pvalue);
myevent->description=strdup((*pvalue)->value.str.val);
}
- if(_php3_hash_find(storeobject->value.ht,"alarm",sizeof("alarm"),(void **) &pvalue)== SUCCESS){
+ if(zend_hash_find(storeobject->value.ht,"alarm",sizeof("alarm"),(void **) &pvalue)== SUCCESS){
SEPARATE_ZVAL(pvalue);
convert_to_long(*pvalue);
myevent->alarm=(*pvalue)->value.lval;
}
- if(_php3_hash_find(storeobject->value.ht,"start",sizeof("start"),(void **) &temppvalue)== SUCCESS){
+ if(zend_hash_find(storeobject->value.ht,"start",sizeof("start"),(void **) &temppvalue)== SUCCESS){
SEPARATE_ZVAL(temppvalue);
convert_to_array(*temppvalue);
- if(_php3_hash_find((*temppvalue)->value.ht,"year",sizeof("year"),(void **) &pvalue)== SUCCESS){
+ if(zend_hash_find((*temppvalue)->value.ht,"year",sizeof("year"),(void **) &pvalue)== SUCCESS){
SEPARATE_ZVAL(pvalue);
convert_to_long(*pvalue);
myevent->start.year=(*pvalue)->value.lval;
}
- if(_php3_hash_find((*temppvalue)->value.ht,"month",sizeof("month"),(void **) &pvalue)== SUCCESS){
+ if(zend_hash_find((*temppvalue)->value.ht,"month",sizeof("month"),(void **) &pvalue)== SUCCESS){
SEPARATE_ZVAL(pvalue);
convert_to_long(*pvalue);
myevent->start.mon=(*pvalue)->value.lval;
}
- if(_php3_hash_find((*temppvalue)->value.ht,"mday",sizeof("mday"),(void **) &pvalue)== SUCCESS){
+ if(zend_hash_find((*temppvalue)->value.ht,"mday",sizeof("mday"),(void **) &pvalue)== SUCCESS){
SEPARATE_ZVAL(pvalue);
convert_to_long(*pvalue);
myevent->start.mday=(*pvalue)->value.lval;
}
- if(_php3_hash_find((*temppvalue)->value.ht,"hour",sizeof("hour"),(void **) &pvalue)== SUCCESS){
+ if(zend_hash_find((*temppvalue)->value.ht,"hour",sizeof("hour"),(void **) &pvalue)== SUCCESS){
SEPARATE_ZVAL(pvalue);
convert_to_long(*pvalue);
myevent->start.hour=(*pvalue)->value.lval;
}
- if(_php3_hash_find((*temppvalue)->value.ht,"min",sizeof("min"),(void **) &pvalue)== SUCCESS){
+ if(zend_hash_find((*temppvalue)->value.ht,"min",sizeof("min"),(void **) &pvalue)== SUCCESS){
SEPARATE_ZVAL(pvalue);
convert_to_long(*pvalue);
myevent->start.min=(*pvalue)->value.lval;
}
- if(_php3_hash_find((*temppvalue)->value.ht,"sec",sizeof("sec"),(void **) &pvalue)== SUCCESS){
+ if(zend_hash_find((*temppvalue)->value.ht,"sec",sizeof("sec"),(void **) &pvalue)== SUCCESS){
SEPARATE_ZVAL(pvalue);
convert_to_long(*pvalue);
myevent->start.sec=(*pvalue)->value.lval;
myevent->start.has_date=true;
}
- if(_php3_hash_find(storeobject->value.ht,"end",sizeof("end"),(void **) &temppvalue)== SUCCESS){
+ if(zend_hash_find(storeobject->value.ht,"end",sizeof("end"),(void **) &temppvalue)== SUCCESS){
SEPARATE_ZVAL(temppvalue);
convert_to_array(*temppvalue);
- if(_php3_hash_find((*temppvalue)->value.ht,"year",sizeof("year"),(void **) &pvalue)== SUCCESS){
+ if(zend_hash_find((*temppvalue)->value.ht,"year",sizeof("year"),(void **) &pvalue)== SUCCESS){
SEPARATE_ZVAL(pvalue);
convert_to_long(*pvalue);
myevent->end.year=(*pvalue)->value.lval;
}
- if(_php3_hash_find((*temppvalue)->value.ht,"month",sizeof("month"),(void **) &pvalue)== SUCCESS){
+ if(zend_hash_find((*temppvalue)->value.ht,"month",sizeof("month"),(void **) &pvalue)== SUCCESS){
SEPARATE_ZVAL(pvalue);
convert_to_long(*pvalue);
myevent->end.mon=(*pvalue)->value.lval;
}
- if(_php3_hash_find((*temppvalue)->value.ht,"mday",sizeof("mday"),(void **) &pvalue)== SUCCESS){
+ if(zend_hash_find((*temppvalue)->value.ht,"mday",sizeof("mday"),(void **) &pvalue)== SUCCESS){
SEPARATE_ZVAL(pvalue);
convert_to_long(*pvalue);
myevent->end.mday=(*pvalue)->value.lval;
}
- if(_php3_hash_find((*temppvalue)->value.ht,"hour",sizeof("hour"),(void **) &pvalue)== SUCCESS){
+ if(zend_hash_find((*temppvalue)->value.ht,"hour",sizeof("hour"),(void **) &pvalue)== SUCCESS){
SEPARATE_ZVAL(pvalue);
convert_to_long(*pvalue);
myevent->end.hour=(*pvalue)->value.lval;
}
- if(_php3_hash_find((*temppvalue)->value.ht,"min",sizeof("min"),(void **) &pvalue)== SUCCESS){
+ if(zend_hash_find((*temppvalue)->value.ht,"min",sizeof("min"),(void **) &pvalue)== SUCCESS){
SEPARATE_ZVAL(pvalue);
convert_to_long(*pvalue);
myevent->end.min=(*pvalue)->value.lval;
}
- if(_php3_hash_find((*temppvalue)->value.ht,"sec",sizeof("sec"),(void **) &pvalue)== SUCCESS){
+ if(zend_hash_find((*temppvalue)->value.ht,"sec",sizeof("sec"),(void **) &pvalue)== SUCCESS){
SEPARATE_ZVAL(pvalue);
convert_to_long(*pvalue);
myevent->end.sec=(*pvalue)->value.lval;
icap_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!icap_le_struct ) {
- php3_error(E_WARNING, "Unable to find stream pointer");
+ php_error(E_WARNING, "Unable to find stream pointer");
RETURN_FALSE;
}
PHP_MINFO_FUNCTION(icap);
/* Functions accessable to PHP */
-extern php3_module_entry php3_icap_module_entry;
+extern zend_module_entry php3_icap_module_entry;
#define php3_icap_module_ptr &php3_icap_module_entry
#define phpext_icap_ptr php3_icap_module_ptr
ind = streamind->value.lval;
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");
+ php_error(E_WARNING, "Unable to find stream pointer");
RETURN_FALSE;
}
#include "TSRM.h"
#endif
-extern php3_module_entry ifx_module_entry;
+extern zend_module_entry ifx_module_entry;
#define ifx_module_ptr &ifx_module_entry
{NULL, NULL, NULL}
};
-php3_module_entry ibase_module_entry =
+zend_module_entry ibase_module_entry =
{
"InterBase",
ibase_functions,
#if HAVE_IBASE
#include <ibase.h>
-extern php3_module_entry ibase_module_entry;
+extern zend_module_entry ibase_module_entry;
#define php3_ibase_module_ptr &ibase_module_entry
extern PHP_MINIT_FUNCTION(ibase);
DISPLAY_INI_ENTRIES();
}
-php3_module_entry java_module_entry = {
+zend_module_entry java_module_entry = {
"java",
java_functions,
PHP_MINIT(java),
};
-php3_module_entry ldap_module_entry = {
+zend_module_entry ldap_module_entry = {
"LDAP", ldap_functions, PHP_MINIT(ldap), PHP_MSHUTDOWN(ldap), NULL, NULL,
PHP_MINFO(ldap), STANDARD_MODULE_PROPERTIES
};
#if COMPILE_DL
-DLEXPORT php3_module_entry *get_module(void ) { return &ldap_module_entry; }
+DLEXPORT zend_module_entry *get_module(void ) { return &ldap_module_entry; }
#endif
#include <lber.h>
#include <ldap.h>
-extern php3_module_entry ldap_module_entry;
+extern zend_module_entry ldap_module_entry;
#define ldap_module_ptr &ldap_module_entry
/* LDAP functions */
};
#ifdef ZEND_VERSION
-php3_module_entry php3_mcal_module_entry = {
+zend_module_entry php3_mcal_module_entry = {
CALVER, mcal_functions, PHP_MINIT(mcal), NULL, NULL, NULL, PHP_MINFO(mcal), 0, 0, 0, NULL
};
#else
-php3_module_entry php3_mcal_module_entry = {"mcal", mcal_functions, PHP_MINIT_FUNCTION, NULL, NULL, NULL, PHP_MINFO_FUNCTION, 0, 0, 0, NULL};
+zend_module_entry php3_mcal_module_entry = {"mcal", mcal_functions, PHP_MINIT_FUNCTION, NULL, NULL, NULL, PHP_MINFO_FUNCTION, 0, 0, 0, NULL};
#endif
#if COMPILE_DL
-DLEXPORT php3_module_entry *get_module(void) { return &php3_mcal_module_entry; }
+DLEXPORT zend_module_entry *get_module(void) { return &php3_mcal_module_entry; }
#endif
/*
void PHP_MINFO_FUNCTION(void)
#endif
{
- php3_printf("Mcal Support enabled<br>");
- php3_printf("<table>");
- php3_printf("<tr><td>Mcal Version:</td>");
- php3_printf("<td>%s</td>",CALVER);
- php3_printf("</tr></table>");
+ php_printf("Mcal Support enabled<br>");
+ php_printf("<table>");
+ php_printf("<tr><td>Mcal Version:</td>");
+ php_printf("<td>%s</td>",CALVER);
+ php_printf("</tr></table>");
}
#ifdef ZEND_VERSION
}
return zend_hash_update(symtable, key, strlen(key)+1, (void *) &tmp, sizeof(pval *), NULL);
#else
- return _php3_hash_update(arg->value.ht, key, strlen(key)+1, (void *) &tmp, sizeof(pval), NULL);
+ return zend_hash_update(arg->value.ht, key, strlen(key)+1, (void *) &tmp, sizeof(pval), NULL);
#endif
}
if(myargc ==4) {
convert_to_long(options);
flags=options->value.lval;
- php3_printf("option is: %d\n",options->value.lval);
+ php_printf("option is: %d\n",options->value.lval);
}
mcal_stream = cal_open(NULL,calendar->value.str.val,0);
if (!mcal_stream) {
- php3_error(E_WARNING,"Couldn't open stream %s\n",calendar->value.str.val);
+ php_error(E_WARNING,"Couldn't open stream %s\n",calendar->value.str.val);
RETURN_FALSE;
}
ind = streamind->value.lval;
mcal_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!mcal_le_struct ) {
- php3_error(E_WARNING, "Unable to find stream pointer");
+ php_error(E_WARNING, "Unable to find stream pointer");
RETURN_FALSE;
}
if(myargcount==2) {
ind = streamind->value.lval;
mcal_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!mcal_le_struct ) {
- php3_error(E_WARNING, "Unable to find stream pointer");
+ php_error(E_WARNING, "Unable to find stream pointer");
RETURN_FALSE;
}
mcal_le_struct->flags = cl_flags;
}
if (mcal_stream == NULL) {
- php3_error(E_WARNING,"Couldn't re-open stream\n");
+ php_error(E_WARNING,"Couldn't re-open stream\n");
RETURN_FALSE;
}
RETURN_TRUE;
mcal_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!mcal_le_struct ) {
- php3_error(E_WARNING, "Unable to find stream pointer");
+ php_error(E_WARNING, "Unable to find stream pointer");
RETURN_FALSE;
}
ind = streamind->value.lval;
mcal_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!mcal_le_struct ) {
- php3_error(E_WARNING, "Unable to find stream pointer");
+ php_error(E_WARNING, "Unable to find stream pointer");
RETURN_FALSE;
}
if(myargcount==3) {
ind = streamind->value.lval;
mcal_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!mcal_le_struct ) {
- php3_error(E_WARNING, "Unable to find stream pointer");
+ php_error(E_WARNING, "Unable to find stream pointer");
RETURN_FALSE;
}
make_event_object(return_value,mcal_le_struct->event);
mcal_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!mcal_le_struct ) {
- php3_error(E_WARNING, "Unable to find stream pointer");
+ php_error(E_WARNING, "Unable to find stream pointer");
RETURN_FALSE;
}
mcal_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!mcal_le_struct ) {
- php3_error(E_WARNING, "Unable to find stream pointer");
+ php_error(E_WARNING, "Unable to find stream pointer");
RETURN_FALSE;
}
/*
mcal_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!mcal_le_struct ) {
- php3_error(E_WARNING, "Unable to find stream pointer");
+ php_error(E_WARNING, "Unable to find stream pointer");
RETURN_FALSE;
}
/*
mcal_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!mcal_le_struct ) {
- php3_error(E_WARNING, "Unable to find stream pointer");
+ php_error(E_WARNING, "Unable to find stream pointer");
RETURN_FALSE;
}
mcal_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!mcal_le_struct ) {
- php3_error(E_WARNING, "Unable to find stream pointer");
+ php_error(E_WARNING, "Unable to find stream pointer");
RETURN_FALSE;
}
mcal_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!mcal_le_struct ) {
- php3_error(E_WARNING, "Unable to find stream pointer");
+ php_error(E_WARNING, "Unable to find stream pointer");
RETURN_FALSE;
}
if (cal_remove(mcal_le_struct->mcal_stream,uid->value.lval))
mcal_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!mcal_le_struct ) {
- php3_error(E_WARNING, "Unable to find stream pointer");
+ php_error(E_WARNING, "Unable to find stream pointer");
RETURN_FALSE;
}
mcal_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!mcal_le_struct ) {
- php3_error(E_WARNING, "Unable to find stream pointer");
+ php_error(E_WARNING, "Unable to find stream pointer");
RETURN_FALSE;
}
mcal_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!mcal_le_struct ) {
- php3_error(E_WARNING, "Unable to find stream pointer");
+ php_error(E_WARNING, "Unable to find stream pointer");
RETURN_FALSE;
}
mcal_le_struct->event->category=strdup(category->value.str.val);
mcal_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!mcal_le_struct ) {
- php3_error(E_WARNING, "Unable to find stream pointer");
+ php_error(E_WARNING, "Unable to find stream pointer");
RETURN_FALSE;
}
mcal_le_struct->event->title=strdup(title->value.str.val);
mcal_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!mcal_le_struct ) {
- php3_error(E_WARNING, "Unable to find stream pointer");
+ php_error(E_WARNING, "Unable to find stream pointer");
RETURN_FALSE;
}
mcal_le_struct->event->description=strdup(description->value.str.val);
mcal_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!mcal_le_struct ) {
- php3_error(E_WARNING, "Unable to find stream pointer");
+ php_error(E_WARNING, "Unable to find stream pointer");
RETURN_FALSE;
}
mcal_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!mcal_le_struct ) {
- php3_error(E_WARNING, "Unable to find stream pointer");
+ php_error(E_WARNING, "Unable to find stream pointer");
RETURN_FALSE;
}
mcal_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!mcal_le_struct ) {
- php3_error(E_WARNING, "Unable to find stream pointer");
+ php_error(E_WARNING, "Unable to find stream pointer");
RETURN_FALSE;
}
mcal_le_struct->event->alarm=alarm->value.lval;
mcal_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!mcal_le_struct ) {
- php3_error(E_WARNING, "Unable to find stream pointer");
+ php_error(E_WARNING, "Unable to find stream pointer");
RETURN_FALSE;
}
php3_event_init(mcal_le_struct);
mcal_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!mcal_le_struct ) {
- php3_error(E_WARNING, "Unable to find stream pointer");
+ php_error(E_WARNING, "Unable to find stream pointer");
RETURN_FALSE;
}
mcal_le_struct->event->public=class->value.lval;
mcal_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!mcal_le_struct ) {
- php3_error(E_WARNING, "Unable to find stream pointer");
+ php_error(E_WARNING, "Unable to find stream pointer");
RETURN_FALSE;
}
- if(_php3_hash_find(next->value.ht,"year",sizeof("year"),(void **) &pvalue)== SUCCESS){
+ if(zend_hash_find(next->value.ht,"year",sizeof("year"),(void **) &pvalue)== SUCCESS){
convert_to_long(pvalue);
mydate.year=(pvalue)->value.lval;
}
- if(_php3_hash_find(next->value.ht,"month",sizeof("month"),(void **) &pvalue)== SUCCESS){
+ if(zend_hash_find(next->value.ht,"month",sizeof("month"),(void **) &pvalue)== SUCCESS){
convert_to_long(pvalue);
mydate.mon=(pvalue)->value.lval;
}
- if(_php3_hash_find(next->value.ht,"mday",sizeof("mday"),(void **) &pvalue)== SUCCESS){
+ if(zend_hash_find(next->value.ht,"mday",sizeof("mday"),(void **) &pvalue)== SUCCESS){
convert_to_long(pvalue);
mydate.mday=(pvalue)->value.lval;
}
- if(_php3_hash_find(next->value.ht,"hour",sizeof("hour"),(void **) &pvalue)== SUCCESS){
+ if(zend_hash_find(next->value.ht,"hour",sizeof("hour"),(void **) &pvalue)== SUCCESS){
convert_to_long(pvalue);
mydate.hour=(pvalue)->value.lval;
}
- if(_php3_hash_find(next->value.ht,"min",sizeof("min"),(void **) &pvalue)== SUCCESS){
+ if(zend_hash_find(next->value.ht,"min",sizeof("min"),(void **) &pvalue)== SUCCESS){
convert_to_long(pvalue);
mydate.min=(pvalue)->value.lval;
}
- if(_php3_hash_find(next->value.ht,"sec",sizeof("sec"),(void **) &pvalue)== SUCCESS){
+ if(zend_hash_find(next->value.ht,"sec",sizeof("sec"),(void **) &pvalue)== SUCCESS){
convert_to_long(pvalue);
mydate.sec=(pvalue)->value.lval;
mcal_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!mcal_le_struct ) {
- php3_error(E_WARNING, "Unable to find stream pointer");
+ php_error(E_WARNING, "Unable to find stream pointer");
RETURN_FALSE;
}
dt_setdate(&endtime,year->value.lval,month->value.lval,day->value.lval);
mcal_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!mcal_le_struct ) {
- php3_error(E_WARNING, "Unable to find stream pointer");
+ php_error(E_WARNING, "Unable to find stream pointer");
RETURN_FALSE;
}
dt_setdate(&endtime,year->value.lval,month->value.lval,day->value.lval);
mcal_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!mcal_le_struct ) {
- php3_error(E_WARNING, "Unable to find stream pointer");
+ php_error(E_WARNING, "Unable to find stream pointer");
RETURN_FALSE;
}
dt_setdate(&endtime,year->value.lval,month->value.lval,day->value.lval);
mcal_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!mcal_le_struct ) {
- php3_error(E_WARNING, "Unable to find stream pointer");
+ php_error(E_WARNING, "Unable to find stream pointer");
RETURN_FALSE;
}
dt_setdate(&endtime,year->value.lval,month->value.lval,day->value.lval);
mcal_le_struct = (pils *)zend_list_find(ind, &ind_type);
if (!mcal_le_struct ) {
- php3_error(E_WARNING, "Unable to find stream pointer");
+ php_error(E_WARNING, "Unable to find stream pointer");
RETURN_FALSE;
}
dt_setdate(&endtime,year->value.lval,month->value.lval,day->value.lval);
#endif
/* Functions accessable to PHP */
-//extern php3_module_entry php3_mcal_module_entry;
-extern php3_module_entry php3_mcal_module_entry;
+//extern zend_module_entry php3_mcal_module_entry;
+extern zend_module_entry php3_mcal_module_entry;
#define php3_mcal_module_ptr &php3_mcal_module_entry
#define phpext_mcal_ptr php3_mcal_module_ptr
#if HAVE_LIBMCRYPT
#if PHP_API_VERSION < 19990421
-#define zend_module_entry php3_module_entry
+#define zend_module_entry zend_module_entry
#include "modules.h"
#include "internal_functions.h"
#endif
#if HAVE_LIBMHASH
#if PHP_API_VERSION < 19990421
-#define zend_module_entry php3_module_entry
+#define zend_module_entry zend_module_entry
#include "modules.h"
#include "internal_functions.h"
#endif
/* {{{ dynamically loadable module stuff */
#if COMPILE_DL
-DLEXPORT php3_module_entry *get_module() { return &oci_module_entry; };
+DLEXPORT zend_module_entry *get_module() { return &oci_module_entry; };
#endif /* COMPILE_DL */
/* }}} */
{NULL,NULL,NULL}
};
-php3_module_entry oci8_module_entry = {
+zend_module_entry oci8_module_entry = {
"Oracle-OCI8", /* extension name */
php_oci_functions, /* extension function list */
PHP_MINIT(oci), /* extension-wide startup function */
if (offparam == -1) {
offset = curloblen;
} else if (offparam >= curloblen) {
- php3_error(E_WARNING, "Offset smaller than current LOB-Size - appending");
+ php_error(E_WARNING, "Offset smaller than current LOB-Size - appending");
offset = curloblen;
} else {
offset = offparam;
loblen = (*arg)->value.str.len;
if (loblen < 1) {
- php3_error(E_WARNING, "Cannot save a lob wich size is less than 1 byte");
+ php_error(E_WARNING, "Cannot save a lob wich size is less than 1 byte");
RETURN_FALSE;
}
OCIEnv *pEnv;
} php_oci_globals;
-extern php3_module_entry oci8_module_entry;
+extern zend_module_entry oci8_module_entry;
#define phpext_oci8_ptr &oci8_module_entry
#define OCI_MAX_NAME_LEN 64
{ NULL, NULL, NULL }
};
-php3_module_entry odbc_module_entry = {
+zend_module_entry odbc_module_entry = {
"ODBC",
odbc_functions,
PHP_MINIT(odbc),
if (atoi(value) <= 0) {
PUTS("Passthru");
} else {
- php3_printf("return up to %s bytes", value);
+ php_printf("return up to %s bytes", value);
}
}
}
#include <sqlext.h>
#endif
-extern php3_module_entry odbc_module_entry;
+extern zend_module_entry odbc_module_entry;
#define odbc_module_ptr &odbc_module_entry
int le_link,le_result;
} velocis_module;
-extern php3_module_entry velocis_module_entry;
+extern zend_module_entry velocis_module_entry;
#define velocis_module_ptr &velocis_module_entry
/* velocis.c functions */
{NULL, NULL, NULL}
};
-php3_module_entry velocis_module_entry = {
+zend_module_entry velocis_module_entry = {
"Velocis", velocis_functions, PHP_MINIT(velocis), PHP_MSHUTDOWN(velocis),
PHP_RINIT(velocis), NULL, PHP_MINFO(velocis), STANDARD_MODULE_PROPERTIES
};
#if COMPILE_DL
-php3_module_entry *get_module() { return &velocis_module_entry; }
+zend_module_entry *get_module() { return &velocis_module_entry; }
#endif
THREAD_LS velocis_module php3_velocis_module;
{NULL, NULL, NULL}
};
-php3_module_entry oracle_module_entry = {
+zend_module_entry oracle_module_entry = {
"Oracle",
oracle_functions,
PHP_MINIT(oracle), /* extension-wide startup function */
};
#if COMPILE_DL
-DLEXPORT php3_module_entry *get_module() { return &oracle_module_entry; };
+DLEXPORT zend_module_entry *get_module() { return &oracle_module_entry; };
#endif
static int _close_oraconn(oraConnection *conn)
#include "ociapr.h"
#endif
-extern php3_module_entry oracle_module_entry;
+extern zend_module_entry oracle_module_entry;
#define phpext_oracle_ptr &oracle_module_entry
#ifdef ZTS
{NULL, NULL, NULL}
};
-php3_module_entry pdf_module_entry = {
+zend_module_entry pdf_module_entry = {
"pdf", pdf_functions, PHP_MINIT(pdf), PHP_MSHUTDOWN(pdf), NULL, NULL, PHP_MINFO(pdf), STANDARD_MODULE_PROPERTIES
};
#if COMPILE_DL
#include "dl/phpdl.h"
-DLEXPORT php3_module_entry *get_module(void) { return &pdf_module_entry; }
+DLEXPORT zend_module_entry *get_module(void) { return &pdf_module_entry; }
#endif
static void _free_pdf_image(int image)
PHP_MINFO_FUNCTION(pdf) {
/* need to use a PHPAPI function here because it is external module in windows */
- php3_printf("pdflib %d.%02d<BR>", PDF_get_majorversion(), PDF_get_minorversion());
+ php_printf("pdflib %d.%02d<BR>", PDF_get_majorversion(), PDF_get_minorversion());
#if PDFLIB_MINORVERSION > 0
- php3_printf("The function pdf_put_image() and pdf_execute_image() are <B>not</B> available");
+ php_printf("The function pdf_put_image() and pdf_execute_image() are <B>not</B> available");
#else
- php3_printf("The function pdf_put_image() and pdf_execute_image() are available");
+ php_printf("The function pdf_put_image() and pdf_execute_image() are available");
#endif
}
id=arg1->value.lval;
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);
+ php_error(E_WARNING,"Unable to find file identifier %d (type=%d)",id, type);
RETURN_FALSE;
}
id=arg1->value.lval;
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);
+ php_error(E_WARNING,"Unable to find file identifier %d (type=%d)",id, type);
RETURN_FALSE;
}
id=arg1->value.lval;
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);
+ php_error(E_WARNING,"Unable to find file identifier %d (type=%d)",id, type);
RETURN_FALSE;
}
id=arg1->value.lval;
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);
+ php_error(E_WARNING,"Unable to find file identifier %d (type=%d)",id, type);
RETURN_FALSE;
}
id=arg1->value.lval;
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);
+ php_error(E_WARNING,"Unable to find file identifier %d (type=%d)",id, type);
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=PDF_GLOBAL(le_pdf)) {
- php3_error(E_WARNING,"Unable to find file identifier %d",id);
+ php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
}
width = arg3->value.dval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=PDF_GLOBAL(le_pdf)) {
- php3_error(E_WARNING,"Unable to find file identifier %d",id);
+ php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=PDF_GLOBAL(le_pdf)) {
- php3_error(E_WARNING,"Unable to find file identifier %d",id);
+ php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=PDF_GLOBAL(le_pdf)) {
- php3_error(E_WARNING,"Unable to find file identifier %d",id);
+ php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=PDF_GLOBAL(le_pdf)) {
- php3_error(E_WARNING,"Unable to find file identifier %d",id);
+ php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=PDF_GLOBAL(le_pdf)) {
- php3_error(E_WARNING,"Unable to find file identifier %d",id);
+ php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
}
if((arg4->value.lval > 5) || (arg4->value.lval < 0)) {
- php3_error(E_WARNING,"Font encoding set to 4");
+ php_error(E_WARNING,"Font encoding set to 4");
arg4->value.lval = 4;
}
font = PDF_findfont(pdf, arg2->value.str.val, "winansi", embed);
break;
default:
- php3_error(E_WARNING,"Encoding out of range, using 0");
+ php_error(E_WARNING,"Encoding out of range, using 0");
font = PDF_findfont(pdf, arg2->value.str.val, "builtin", embed);
}
if (font < 0) {
- php3_error(E_WARNING,"Font %s not found", arg2->value.str.val);
+ php_error(E_WARNING,"Font %s not found", arg2->value.str.val);
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=PDF_GLOBAL(le_pdf)) {
- php3_error(E_WARNING,"Unable to find file identifier %d",id);
+ php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=PDF_GLOBAL(le_pdf)) {
- php3_error(E_WARNING,"Unable to find file identifier %d",id);
+ php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=PDF_GLOBAL(le_pdf)) {
- php3_error(E_WARNING,"Unable to find file identifier %d",id);
+ php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=PDF_GLOBAL(le_pdf)) {
- php3_error(E_WARNING,"Unable to find file identifier %d",id);
+ php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=PDF_GLOBAL(le_pdf)) {
- php3_error(E_WARNING,"Unable to find file identifier %d",id);
+ php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=PDF_GLOBAL(le_pdf)) {
- php3_error(E_WARNING,"Unable to find file identifier %d",id);
+ php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=PDF_GLOBAL(le_pdf)) {
- php3_error(E_WARNING,"Unable to find file identifier %d",id);
+ php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
}
matrix=arg2->value.ht;
pdf = zend_list_find(id,&type);
if(!pdf || type!=PDF_GLOBAL(le_pdf)) {
- php3_error(E_WARNING,"Unable to find file identifier %d",id);
+ php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
}
- if(_php3_hash_num_elements(matrix) != 6) {
- php3_error(E_WARNING,"Text matrix must have 6 elements");
+ if(zend_hash_num_elements(matrix) != 6) {
+ php_error(E_WARNING,"Text matrix must have 6 elements");
RETURN_FALSE;
}
pdfmatrixptr = (float *) &pdfmatrix;
- _php3_hash_internal_pointer_reset(matrix);
- for(i=0; i<_php3_hash_num_elements(matrix); i++) {
- _php3_hash_get_current_data(matrix, (void *) &data);
+ zend_hash_internal_pointer_reset(matrix);
+ for(i=0; i<zend_hash_num_elements(matrix); i++) {
+ zend_hash_get_current_data(matrix, (void *) &data);
switch(data->type) {
case IS_DOUBLE:
*pdfmatrixptr++ = (float) data->value.dval;
*pdfmatrixptr++ = 0.0;
break;
}
- _php3_hash_move_forward(matrix);
+ zend_hash_move_forward(matrix);
}
PDF_set_text_matrix(pdf, pdfmatrix[0], pdfmatrix[1], pdfmatrix[2],
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=PDF_GLOBAL(le_pdf)) {
- php3_error(E_WARNING,"Unable to find file identifier %d",id);
+ php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=PDF_GLOBAL(le_pdf)) {
- php3_error(E_WARNING,"Unable to find file identifier %d",id);
+ php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=PDF_GLOBAL(le_pdf)) {
- php3_error(E_WARNING,"Unable to find file identifier %d",id);
+ php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=PDF_GLOBAL(le_pdf)) {
- php3_error(E_WARNING,"Unable to find file identifier %d",id);
+ php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=PDF_GLOBAL(le_pdf)) {
- php3_error(E_WARNING,"Unable to find file identifier %d",id);
+ php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=PDF_GLOBAL(le_pdf)) {
- php3_error(E_WARNING,"Unable to find file identifier %d",id);
+ php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=PDF_GLOBAL(le_pdf)) {
- php3_error(E_WARNING,"Unable to find file identifier %d",id);
+ php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=PDF_GLOBAL(le_pdf)) {
- php3_error(E_WARNING,"Unable to find file identifier %d",id);
+ php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=PDF_GLOBAL(le_pdf)) {
- php3_error(E_WARNING,"Unable to find file identifier %d",id);
+ php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=PDF_GLOBAL(le_pdf)) {
- php3_error(E_WARNING,"Unable to find file identifier %d",id);
+ php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=PDF_GLOBAL(le_pdf)) {
- php3_error(E_WARNING,"Unable to find file identifier %d",id);
+ php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
}
if((arg2->value.lval > 100) && (arg2->value.lval < 0)) {
- php3_error(E_WARNING,"Parameter of pdf_setflat() has to between 0 and 100");
+ php_error(E_WARNING,"Parameter of pdf_setflat() has to between 0 and 100");
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=PDF_GLOBAL(le_pdf)) {
- php3_error(E_WARNING,"Unable to find file identifier %d",id);
+ php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
}
if((arg2->value.lval > 2) && (arg2->value.lval < 0)) {
- php3_error(E_WARNING,"Parameter of pdf_setlinejoin() has to between 0 and 2");
+ php_error(E_WARNING,"Parameter of pdf_setlinejoin() has to between 0 and 2");
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=PDF_GLOBAL(le_pdf)) {
- php3_error(E_WARNING,"Unable to find file identifier %d",id);
+ php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
}
if((arg2->value.lval > 2) && (arg2->value.lval < 0)) {
- php3_error(E_WARNING,"Parameter of pdf_setlinecap() has to be > 0 and =< 2");
+ php_error(E_WARNING,"Parameter of pdf_setlinecap() has to be > 0 and =< 2");
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=PDF_GLOBAL(le_pdf)) {
- php3_error(E_WARNING,"Unable to find file identifier %d",id);
+ php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
}
if(arg2->value.dval < 1) {
- php3_error(E_WARNING,"Parameter of pdf_setmiterlimit() has to be >= 1");
+ php_error(E_WARNING,"Parameter of pdf_setmiterlimit() has to be >= 1");
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=PDF_GLOBAL(le_pdf)) {
- php3_error(E_WARNING,"Unable to find file identifier %d",id);
+ php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=PDF_GLOBAL(le_pdf)) {
- php3_error(E_WARNING,"Unable to find file identifier %d",id);
+ php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=PDF_GLOBAL(le_pdf)) {
- php3_error(E_WARNING,"Unable to find file identifier %d",id);
+ php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=PDF_GLOBAL(le_pdf)) {
- php3_error(E_WARNING,"Unable to find file identifier %d",id);
+ php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=PDF_GLOBAL(le_pdf)) {
- php3_error(E_WARNING,"Unable to find file identifier %d",id);
+ php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=PDF_GLOBAL(le_pdf)) {
- php3_error(E_WARNING,"Unable to find file identifier %d",id);
+ php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=PDF_GLOBAL(le_pdf)) {
- php3_error(E_WARNING,"Unable to find file identifier %d",id);
+ php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=PDF_GLOBAL(le_pdf)) {
- php3_error(E_WARNING,"Unable to find file identifier %d",id);
+ php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=PDF_GLOBAL(le_pdf)) {
- php3_error(E_WARNING,"Unable to find file identifier %d",id);
+ php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=PDF_GLOBAL(le_pdf)) {
- php3_error(E_WARNING,"Unable to find file identifier %d",id);
+ php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=PDF_GLOBAL(le_pdf)) {
- php3_error(E_WARNING,"Unable to find file identifier %d",id);
+ php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=PDF_GLOBAL(le_pdf)) {
- php3_error(E_WARNING,"Unable to find file identifier %d",id);
+ php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=PDF_GLOBAL(le_pdf)) {
- php3_error(E_WARNING,"Unable to find file identifier %d",id);
+ php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=PDF_GLOBAL(le_pdf)) {
- php3_error(E_WARNING,"Unable to find file identifier %d",id);
+ php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=PDF_GLOBAL(le_pdf)) {
- php3_error(E_WARNING,"Unable to find file identifier %d",id);
+ php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=PDF_GLOBAL(le_pdf)) {
- php3_error(E_WARNING,"Unable to find file identifier %d",id);
+ php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=PDF_GLOBAL(le_pdf)) {
- php3_error(E_WARNING,"Unable to find file identifier %d",id);
+ php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=PDF_GLOBAL(le_pdf)) {
- php3_error(E_WARNING,"Unable to find file identifier %d",id);
+ php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=PDF_GLOBAL(le_pdf)) {
- php3_error(E_WARNING,"Unable to find file identifier %d",id);
+ php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=PDF_GLOBAL(le_pdf)) {
- php3_error(E_WARNING,"Unable to find file identifier %d",id);
+ php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=PDF_GLOBAL(le_pdf)) {
- php3_error(E_WARNING,"Unable to find file identifier %d",id);
+ php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=PDF_GLOBAL(le_pdf)) {
- php3_error(E_WARNING,"Unable to find file identifier %d",id);
+ php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=PDF_GLOBAL(le_pdf)) {
- php3_error(E_WARNING,"Unable to find document identifier %d",id);
+ php_error(E_WARNING,"Unable to find document identifier %d",id);
RETURN_FALSE;
}
if (id > 0) {
parent = zend_list_find(id, &type);
if (!parent || (type != PDF_GLOBAL(le_outline))) {
- php3_error(E_WARNING,"Unable to find identifier %d",id);
+ php_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
} else {
parentid = *parent;
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=PDF_GLOBAL(le_pdf)) {
- php3_error(E_WARNING,"Unable to find file identifier %d",id);
+ php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=PDF_GLOBAL(le_pdf)) {
- php3_error(E_WARNING,"Unable to find file identifier %d",id);
+ php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=PDF_GLOBAL(le_pdf)) {
- php3_error(E_WARNING,"Unable to find file identifier %d",id);
+ php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
}
pdf_image = PDF_open_GIF(pdf, arg2->value.str.val);
if(pdf_image < 0) {
- php3_error(E_WARNING, "Could not open image");
+ php_error(E_WARNING, "Could not open image");
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=PDF_GLOBAL(le_pdf)) {
- php3_error(E_WARNING,"Unable to find file identifier %d",id);
+ php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
}
pdf_image = PDF_open_JPEG(pdf, arg2->value.str.val);
if(pdf_image < 0) {
- php3_error(E_WARNING, "Could not open image");
+ php_error(E_WARNING, "Could not open image");
RETURN_FALSE;
}
id=argv[0]->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=PDF_GLOBAL(le_pdf)) {
- php3_error(E_WARNING,"Unable to find file identifier %d",id);
+ php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
}
gid=argv[1]->value.lval;
im = zend_list_find(gid, &type);
if (!im || type != phpi_get_le_gd()) {
- php3_error(E_WARNING, "pdf: Unable to find image pointer");
+ php_error(E_WARNING, "pdf: Unable to find image pointer");
RETURN_FALSE;
}
efree(buffer);
if(-1 == pdf_image) {
- php3_error(E_WARNING, "Could not open image");
+ php_error(E_WARNING, "Could not open image");
efree(buffer);
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=PDF_GLOBAL(le_pdf)) {
- php3_error(E_WARNING,"Unable to find file identifier %d",id);
+ php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
}
id=arg2->value.lval;
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);
+ php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=PDF_GLOBAL(le_pdf)) {
- php3_error(E_WARNING,"Unable to find file identifier %d",id);
+ php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
}
id=arg2->value.lval;
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);
+ php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=PDF_GLOBAL(le_pdf)) {
- php3_error(E_WARNING,"Unable to find file identifier %d",id);
+ php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
}
id=arg2->value.lval;
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);
+ php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=PDF_GLOBAL(le_pdf)) {
- php3_error(E_WARNING,"Unable to find file identifier %d",id);
+ php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
}
id=arg2->value.lval;
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);
+ php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=PDF_GLOBAL(le_pdf)) {
- php3_error(E_WARNING,"Unable to find identifier %d",id);
+ php_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
}
id=arg2->value.lval;
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);
+ php_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=PDF_GLOBAL(le_pdf)) {
- php3_error(E_WARNING,"Unable to find identifier %d",id);
+ php_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
}
id=arg2->value.lval;
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);
+ php_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=PDF_GLOBAL(le_pdf)) {
- php3_error(E_WARNING,"Unable to find file identifier %d",id);
+ php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=PDF_GLOBAL(le_pdf)) {
- php3_error(E_WARNING,"Unable to find file identifier %d",id);
+ php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=PDF_GLOBAL(le_pdf)) {
- php3_error(E_WARNING,"Unable to find file identifier %d",id);
+ php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
}
id=arg1->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=PDF_GLOBAL(le_pdf)) {
- php3_error(E_WARNING,"Unable to find file identifier %d",id);
+ php_error(E_WARNING,"Unable to find file identifier %d",id);
RETURN_FALSE;
}
id=argv[0]->value.lval;
pdf = zend_list_find(id,&type);
if(!pdf || type!=PDF_GLOBAL(le_pdf)) {
- php3_error(E_WARNING,"Unable to find identifier %d",id);
+ php_error(E_WARNING,"Unable to find identifier %d",id);
RETURN_FALSE;
}
extern int le_fp;
-extern php3_module_entry pdf_module_entry;
+extern zend_module_entry pdf_module_entry;
#define pdf_module_ptr &pdf_module_entry
extern PHP_MINFO_FUNCTION(pdf);
{NULL, NULL, NULL}
};
-php3_module_entry pgsql_module_entry = {
+zend_module_entry pgsql_module_entry = {
"PostgreSQL", pgsql_functions, php3_minit_pgsql, NULL, php3_rinit_pgsql, NULL, NULL, STANDARD_MODULE_PROPERTIES
};
#if COMPILE_DL
-PHP_PGSQL_API php3_module_entry *get_module() { return &pgsql_module_entry; }
+PHP_PGSQL_API zend_module_entry *get_module() { return &pgsql_module_entry; }
#endif
static int le_link,le_plink,le_result,le_lofp,le_string;
#if HAVE_PGSQL
-extern php3_module_entry pgsql_module_entry;
+extern zend_module_entry pgsql_module_entry;
#define pgsql_module_ptr &pgsql_module_entry
#define DLEXPORT
#endif
-extern php3_module_entry posix_module_entry;
+extern zend_module_entry posix_module_entry;
#define posix_module_ptr &posix_module_entry
PHP_FUNCTION(posix_kill);
static PHP_MINFO_FUNCTION(posix);
-php3_module_entry posix_module_entry = {
+zend_module_entry posix_module_entry = {
"Posix",
posix_functions,
NULL,
};
#ifdef COMPILE_DL
-DLEXPORT php3_module_entry *get_module(void) { return &posix__module_entry; }
+DLEXPORT zend_module_entry *get_module(void) { return &posix__module_entry; }
#endif
#if APACHE
result = kill(pid->value.lval, sig->value.lval);
if (result< 0) {
- php3_error(E_WARNING, "posix_kill(%d, %d) failed with '%s'",
+ php_error(E_WARNING, "posix_kill(%d, %d) failed with '%s'",
pid->value.lval,
sig->value.lval,
strerror(errno));
result = setuid(uid->value.lval);
if (result < 0) {
- php3_error(E_WARNING, "posix_setuid(%d) failed with '%s'. Must be root",
+ php_error(E_WARNING, "posix_setuid(%d) failed with '%s'. Must be root",
uid->value.lval,
strerror(errno));
RETURN_FALSE;
result = setgid(gid->value.lval);
if (result < 0) {
- php3_error(E_WARNING, "posix_setgid(%d) failed with '%s'. Must be root",
+ php_error(E_WARNING, "posix_setgid(%d) failed with '%s'. Must be root",
gid->value.lval,
strerror(errno));
RETURN_FALSE;
result = getgroups(NGROUPS_MAX, gidlist);
if (result < 0) {
- php3_error(E_WARNING, "posix_getgroups() failed with '%s'",
+ php_error(E_WARNING, "posix_getgroups() failed with '%s'",
strerror(errno));
RETURN_FALSE;
}
p = getlogin();
if (p == NULL) {
- php3_error(E_WARNING, "Cannot determine your login name. Something is really wrong here.");
+ php_error(E_WARNING, "Cannot determine your login name. Something is really wrong here.");
RETURN_FALSE;
}
result = setpgid(pid->value.lval, pgid->value.lval);
if (result< 0) {
- php3_error(E_WARNING, "posix_setpgid(%d, %d) failed with '%s'",
+ php_error(E_WARNING, "posix_setpgid(%d, %d) failed with '%s'",
pid->value.lval,
pgid->value.lval,
strerror(errno));
convert_to_long(pid);
pgid = getpgid(pid->value.lval);
if (pgid < 0) {
- php3_error(E_WARNING, "posix_getpgid(%d) failed with '%s'",
+ php_error(E_WARNING, "posix_getpgid(%d) failed with '%s'",
pid->value.lval,
strerror(errno));
RETURN_FALSE;
convert_to_long(pid);
sid = getsid(pid->value.lval);
if (sid < 0) {
- php3_error(E_WARNING, "posix_getsid(%d) failed with '%s'",
+ php_error(E_WARNING, "posix_getsid(%d) failed with '%s'",
pid->value.lval,
strerror(errno));
RETURN_FALSE;
ticks = times(&t);
if (ticks < 0) {
- php3_error(E_WARNING, "posix_times failed with '%s'",
+ php_error(E_WARNING, "posix_times failed with '%s'",
strerror(errno));
}
p = ctermid(buffer);
if (p == NULL) {
- php3_error(E_WARNING, "posix_ctermid() failed with '%s'",
+ php_error(E_WARNING, "posix_ctermid() failed with '%s'",
strerror(errno));
RETURN_FALSE;
}
p = ttyname(fd->value.lval);
if (p == NULL) {
- php3_error(E_WARNING, "posix_ttyname(%d) failed with '%s'",
+ php_error(E_WARNING, "posix_ttyname(%d) failed with '%s'",
fd->value.lval,
strerror(errno));
RETURN_FALSE;
p = getcwd(buffer, MAXPATHLEN);
if (!p) {
- php3_error(E_WARNING, "posix_getcwd() failed with '%s'",
+ php_error(E_WARNING, "posix_getcwd() failed with '%s'",
strerror(errno));
RETURN_FALSE;
}
}
result = mkfifo(path->value.str.val, mode->value.lval);
if (result < 0) {
- php3_error(E_WARNING, "posix_mkfifo(%s) failed with '%s'",
+ php_error(E_WARNING, "posix_mkfifo(%s) failed with '%s'",
path->value.str.val,
strerror(errno));
RETURN_FALSE;
g = getgrnam(name->value.str.val);
if (!g) {
- php3_error(E_WARNING, "posix_getgrnam(%s) failed with '%s'",
+ php_error(E_WARNING, "posix_getgrnam(%s) failed with '%s'",
name->value.str.val,
strerror(errno));
RETURN_FALSE;
g = getgrgid(gid->value.lval);
if (!g) {
- php3_error(E_WARNING, "posix_getgrgid(%d) failed with '%s'",
+ php_error(E_WARNING, "posix_getgrgid(%d) failed with '%s'",
gid->value.lval,
strerror(errno));
RETURN_FALSE;
pw = getpwnam(name->value.str.val);
if (!pw) {
- php3_error(E_WARNING, "posix_getpwnam(%s) failed with '%s'",
+ php_error(E_WARNING, "posix_getpwnam(%s) failed with '%s'",
name->value.str.val,
strerror(errno));
RETURN_FALSE;
pw = getpwuid(uid->value.lval);
if (!pw) {
- php3_error(E_WARNING, "posix_getpwuid(%d) failed with '%s'",
+ php_error(E_WARNING, "posix_getpwuid(%d) failed with '%s'",
uid->value.lval,
strerror(errno));
RETURN_FALSE;
result = getrlimit(limit, &rl);
if (result < 0) {
- php3_error(E_WARNING, "posix_getrlimit failed to getrlimit(RLIMIT_CORE with '%s'", strerror(errno));
+ php_error(E_WARNING, "posix_getrlimit failed to getrlimit(RLIMIT_CORE with '%s'", strerror(errno));
return FAILURE;
}
DISPLAY_INI_ENTRIES();
}
-php3_module_entry java_module_entry = {
+zend_module_entry java_module_entry = {
"java",
java_functions,
PHP_MINIT(java),
#define DLEXPORT
#endif
-extern php3_module_entry snmp_module_entry;
+extern zend_module_entry snmp_module_entry;
#define snmp_module_ptr &snmp_module_entry
extern int php3i_snmp_init(INIT_FUNC_ARGS);
{NULL,NULL,NULL}
};
-php3_module_entry snmp_module_entry = {
+zend_module_entry snmp_module_entry = {
"SNMP",snmp_functions,php3i_snmp_init,NULL,NULL,NULL,php3_info_snmp,STANDARD_MODULE_PROPERTIES
};
#if COMPILE_DL
-DLEXPORT php3_module_entry *get_module() { return &snmp_module_entry; };
+DLEXPORT zend_module_entry *get_module() { return &snmp_module_entry; };
#endif
/* THREAD_LS snmp_module php3_snmp_module; - may need one of these at some point */
{NULL,NULL,NULL}
};
-php3_module_entry snmp_module_entry = {
+zend_module_entry snmp_module_entry = {
"SNMP",snmp_functions,NULL,NULL,NULL,NULL,NULL,0,0,0,NULL
};
#if COMPILE_DL
-DLEXPORT php3_module_entry *get_module() { return &snmp_module_entry; }
+DLEXPORT zend_module_entry *get_module() { return &snmp_module_entry; }
#endif
#define GET 1
}
/* as above, but backwards. :) */
-unsigned char *_php3_base64_decode(const unsigned char *string, int length, int *ret_length) {
+unsigned char *php_base64_decode(const unsigned char *string, int length, int *ret_length) {
const unsigned char *current = string;
int ch, i = 0, j = 0, k;
/* this sucks for threaded environments */
WRONG_PARAM_COUNT;
}
convert_to_string_ex(string);
- result = _php3_base64_decode((*string)->value.str.val, (*string)->value.str.len, &ret_length);
+ result = php_base64_decode((*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_encode);
extern unsigned char *php_base64_encode(const unsigned char *, int, int *);
-extern unsigned char *_php3_base64_decode(const unsigned char *, int, int *);
+extern unsigned char *php_base64_decode(const unsigned char *, int, int *);
#endif /* _BASE64_h */
PHP_INI_END()
-php3_module_entry basic_functions_module = {
+zend_module_entry basic_functions_module = {
"Basic Functions", /* extension name */
basic_functions, /* function list */
PHP_MINIT(basic), /* process startup */
}
-void php3_is_type(INTERNAL_FUNCTION_PARAMETERS,int type)
+void php_is_type(INTERNAL_FUNCTION_PARAMETERS,int type)
{
pval **arg;
PHP_FUNCTION(is_resource)
{
- php3_is_type(INTERNAL_FUNCTION_PARAM_PASSTHRU, IS_RESOURCE);
+ php_is_type(INTERNAL_FUNCTION_PARAM_PASSTHRU, IS_RESOURCE);
}
PHP_FUNCTION(is_bool)
{
- php3_is_type(INTERNAL_FUNCTION_PARAM_PASSTHRU, IS_BOOL);
+ php_is_type(INTERNAL_FUNCTION_PARAM_PASSTHRU, IS_BOOL);
}
PHP_FUNCTION(is_long)
{
- php3_is_type(INTERNAL_FUNCTION_PARAM_PASSTHRU, IS_LONG);
+ php_is_type(INTERNAL_FUNCTION_PARAM_PASSTHRU, IS_LONG);
}
PHP_FUNCTION(is_double)
{
- php3_is_type(INTERNAL_FUNCTION_PARAM_PASSTHRU, IS_DOUBLE);
+ php_is_type(INTERNAL_FUNCTION_PARAM_PASSTHRU, IS_DOUBLE);
}
PHP_FUNCTION(is_string)
{
- php3_is_type(INTERNAL_FUNCTION_PARAM_PASSTHRU, IS_STRING);
+ php_is_type(INTERNAL_FUNCTION_PARAM_PASSTHRU, IS_STRING);
}
PHP_FUNCTION(is_array)
{
- php3_is_type(INTERNAL_FUNCTION_PARAM_PASSTHRU, IS_ARRAY);
+ php_is_type(INTERNAL_FUNCTION_PARAM_PASSTHRU, IS_ARRAY);
}
PHP_FUNCTION(is_object)
{
- php3_is_type(INTERNAL_FUNCTION_PARAM_PASSTHRU, IS_OBJECT);
+ php_is_type(INTERNAL_FUNCTION_PARAM_PASSTHRU, IS_OBJECT);
}
#include "zend_highlight.h"
-extern php3_module_entry basic_functions_module;
+extern zend_module_entry basic_functions_module;
#define basic_functions_module_ptr &basic_functions_module
PHP_MINIT_FUNCTION(basic);
PHP_FUNCTION(get_magic_quotes_runtime);
PHP_FUNCTION(get_magic_quotes_gpc);
-void php3_is_type(INTERNAL_FUNCTION_PARAMETERS, int type);
+void php_is_type(INTERNAL_FUNCTION_PARAMETERS, int type);
PHP_FUNCTION(is_resource);
PHP_FUNCTION(is_bool);
PHP_FUNCTION(is_long);
{NULL, NULL, NULL}
};
-php3_module_entry browscap_module_entry = {
+zend_module_entry browscap_module_entry = {
"browscap", browscap_functions, PHP_MINIT(browscap), PHP_MSHUTDOWN(browscap),
NULL, NULL, NULL, STANDARD_MODULE_PROPERTIES
};
{NULL, NULL, NULL}
};
-php3_module_entry crypt_module_entry = {
+zend_module_entry crypt_module_entry = {
"Crypt", crypt_functions, PHP_MINIT(crypt), NULL, NULL, NULL, NULL, STANDARD_MODULE_PROPERTIES
};
};
-php3_module_entry php3_dir_module_entry = {
+zend_module_entry php3_dir_module_entry = {
"PHP_dir", php_dir_functions, PHP_MINIT(dir), NULL, NULL, NULL, NULL, STANDARD_MODULE_PROPERTIES
};
};
-php3_module_entry dl_module_entry = {
+zend_module_entry dl_module_entry = {
"PHP_DL", dl_functions, NULL, NULL, NULL, NULL, PHP_MINFO(dl), STANDARD_MODULE_PROPERTIES
};
{
void *handle;
char libpath[MAXPATHLEN + 1];
- php3_module_entry *module_entry,*tmp;
- php3_module_entry *(*get_module)(void);
+ zend_module_entry *module_entry,*tmp;
+ zend_module_entry *(*get_module)(void);
PLS_FETCH();
if (cfg_get_string("extension_dir",&PG(extension_dir))==SUCCESS
#endif
RETURN_FALSE;
}
- get_module = (php3_module_entry *(*)(void)) dlsym(handle, "get_module");
+ get_module = (zend_module_entry *(*)(void)) dlsym(handle, "get_module");
if (!get_module) {
dlclose(handle);
#ifdef HAVE_LIBDL
-extern php3_module_entry dl_module_entry;
+extern zend_module_entry dl_module_entry;
#define dl_module_ptr &dl_module_entry
/* dynamic loading functions */
if (_php3_set_sock_blocking(socketd, block) == FAILURE)
RETURN_FALSE;
- _php3_sock_set_blocking(socketd, block == 0 ? 0 : 1);
+ php_sockset_blocking(socketd, block == 0 ? 0 : 1);
RETURN_TRUE;
}
}
}
else {
- php3_error(E_WARNING, "Unable to load kernel32.dll");
+ php_error(E_WARNING, "Unable to load kernel32.dll");
RETURN_FALSE;
}
};
-php3_module_entry php3_filestat_module_entry = {
+zend_module_entry php3_filestat_module_entry = {
"PHP_filestat", php3_filestat_functions, NULL, NULL, PHP_RINIT(filestat),
PHP_RSHUTDOWN(filestat), NULL, STANDARD_MODULE_PROPERTIES
};
*
*/
static char *
-php3_formatted_print(int ht, int *len)
+php_formatted_print(int ht, int *len)
{
pval ***args;
int argc, size = 240, inpos = 0, outpos = 0;
char *result;
int len;
- if ((result=php3_formatted_print(ht,&len))==NULL) {
+ if ((result=php_formatted_print(ht,&len))==NULL) {
RETURN_FALSE;
}
RETVAL_STRINGL(result,len,1);
char *result;
int len;
- if ((result=php3_formatted_print(ht,&len))==NULL) {
+ if ((result=php_formatted_print(ht,&len))==NULL) {
RETURN_FALSE;
}
PHPWRITE(result,len);
typedef struct php3i_sockbuf php3i_sockbuf;
-php3_module_entry fsock_module_entry = {
+zend_module_entry fsock_module_entry = {
"Socket functions",
fsock_functions,
PHP_MINIT(fsock),
#define SOCK_FIND(sock,socket) \
php3i_sockbuf *sock; \
FLS_FETCH(); \
- sock = _php3_sock_find(socket FLS_CC); \
- if(!sock) sock = _php3_sock_create(socket FLS_CC)
+ sock = php_sockfind(socket FLS_CC); \
+ if(!sock) sock = php_sockcreate(socket FLS_CC)
-static php3i_sockbuf *_php3_sock_find(int socket FLS_DC)
+static php3i_sockbuf *php_sockfind(int socket FLS_DC)
{
php3i_sockbuf *buf = NULL, *tmp;
return buf;
}
-static php3i_sockbuf *_php3_sock_create(int socket FLS_DC)
+static php3i_sockbuf *php_sockcreate(int socket FLS_DC)
{
php3i_sockbuf *sock;
int persistent = _php3_is_persistent_sock(socket);
return old;
}
-int _php3_sock_destroy(int socket)
+int php_sockdestroy(int socket)
{
int ret = 0;
php3i_sockbuf *sock;
FLS_FETCH();
- sock = _php3_sock_find(socket FLS_CC);
+ sock = php_sockfind(socket FLS_CC);
if(sock) {
ret = 1;
SOCK_DESTROY(sock);
php3i_sockbuf *sock;
FLS_FETCH();
- sock = _php3_sock_find(socket FLS_CC);
+ sock = php_sockfind(socket FLS_CC);
if(sock) {
if(!sock->persistent) {
SOCK_CLOSE(sock->socket);
#define MAX_CHUNKS_PER_READ 10
-static void _php3_sock_wait_for_data(php3i_sockbuf *sock)
+static void php_sockwait_for_data(php3i_sockbuf *sock)
{
fd_set fdr, tfdr;
}
}
-static size_t _php3_sock_read_internal(php3i_sockbuf *sock)
+static size_t php_sockread_internal(php3i_sockbuf *sock)
{
char buf[CHUNK_SIZE];
int nr_bytes;
if(sock->is_blocked) {
- _php3_sock_wait_for_data(sock);
+ php_sockwait_for_data(sock);
}
/* read at a maximum sock->chunk_size */
return nr_read;
}
-static void _php3_sock_read_total(php3i_sockbuf *sock, size_t maxread)
+static void php_sockread_total(php3i_sockbuf *sock, size_t maxread)
{
while(!sock->eof && TOREAD(sock) < maxread) {
- _php3_sock_read_internal(sock);
+ php_sockread_internal(sock);
}
}
-static size_t _php3_sock_read(php3i_sockbuf *sock)
+static size_t php_sockread(php3i_sockbuf *sock)
{
size_t nr_bytes;
size_t nr_read = 0;
int i;
for(i = 0; !sock->eof && i < MAX_CHUNKS_PER_READ; i++) {
- nr_bytes = _php3_sock_read_internal(sock);
+ nr_bytes = php_sockread_internal(sock);
if(nr_bytes == 0) break;
nr_read += nr_bytes;
}
return nr_read;
}
-int _php3_sock_set_blocking(int socket, int mode)
+int php_sockset_blocking(int socket, int mode)
{
int old;
SOCK_FIND(sock, socket);
#define SOCK_FIND_AND_READ_MAX(max) \
SOCK_FIND(sock, socket); \
- if(sock->is_blocked) _php3_sock_read_total(sock, max); else _php3_sock_read(sock)
+ if(sock->is_blocked) php_sockread_total(sock, max); else php_sockread(sock)
/* {{{ php_sock_fgets() */
/*
if(!p) {
if(sock->is_blocked) {
while(!p && !sock->eof && TOREAD(sock) < maxlen) {
- _php3_sock_read_internal(sock);
+ php_sockread_internal(sock);
SEARCHCR();
}
} else {
- _php3_sock_read(sock);
+ php_sockread(sock);
SEARCHCR();
}
}
SOCK_FIND(sock, socket);
if(!sock->is_blocked)
- _php3_sock_read(sock);
+ php_sockread(sock);
if(!TOREAD(sock) && sock->eof)
ret = 1;
#include <sys/time.h>
#endif
-extern php3_module_entry fsock_module_entry;
+extern zend_module_entry fsock_module_entry;
#define phpext_fsock_ptr &fsock_module_entry
PHP_FUNCTION(fsockopen);
int php_sock_feof(int socket);
int php_sock_fgetc(int socket);
int _php3_is_persistent_sock(int);
-int _php3_sock_set_blocking(int socket, int mode);
-int _php3_sock_destroy(int socket);
+int php_sockset_blocking(int socket, int mode);
+int php_sockdestroy(int socket);
int php_sock_close(int socket);
size_t php_sock_set_def_chunk_size(size_t size);
int php_msock_destroy(int *data);
};
-php3_module_entry php_header_module_entry = {
+zend_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 php_header_module_entry;
+extern zend_module_entry php_header_module_entry;
#define php_header_module_ptr &php_header_module_entry
extern PHP_RINIT_FUNCTION(head);
{NULL, NULL, NULL}
};
-php3_module_entry mail_module_entry = {
+zend_module_entry mail_module_entry = {
"Sendmail", mail_functions, NULL, NULL, NULL, NULL, PHP_MINFO(mail), STANDARD_MODULE_PROPERTIES
};
#if COMPILE_DL
-DLEXPORT php3_module_entry *get_module(void) { return &odbc_module_entry; }
+DLEXPORT zend_module_entry *get_module(void) { return &odbc_module_entry; }
#endif
/* {{{ proto int mail(string to, string subject, string message [, string additional_headers])
PHP_RINIT_FUNCTION(output);
PHP_RSHUTDOWN_FUNCTION(output);
-php3_module_entry output_module_entry = {
+zend_module_entry output_module_entry = {
"PHP_output",
php_output_functions,
NULL, /* extension-wide startup function */
{NULL, NULL, NULL}
};
-php3_module_entry pack_module_entry = {
+zend_module_entry pack_module_entry = {
"PHP_pack", pack_functions, PHP_MINIT(pack), NULL, NULL, NULL, NULL, STANDARD_MODULE_PROPERTIES
};
#ifndef _PACK_H
#define _PACK_H
-extern php3_module_entry pack_module_entry;
+extern zend_module_entry pack_module_entry;
#define pack_module_ptr &pack_module_entry
extern PHP_MINIT_FUNCTION(pack);
#ifndef _PHP_BROWSCAP_H
#define _PHP_BROWSCAP_H
-extern php3_module_entry browscap_module_entry;
+extern zend_module_entry browscap_module_entry;
#define browscap_module_ptr &browscap_module_entry
extern PHP_MINIT_FUNCTION(browscap);
#define PHP_CRYPT_H
#if HAVE_CRYPT
-extern php3_module_entry crypt_module_entry;
+extern zend_module_entry crypt_module_entry;
#define crypt_module_ptr &crypt_module_entry
PHP_FUNCTION(crypt);
extern PHP_MINIT_FUNCTION(crypt);
#ifndef _PHP_DIR_H
#define _PHP_DIR_H
-extern php3_module_entry php3_dir_module_entry;
+extern zend_module_entry php3_dir_module_entry;
#define php3_dir_module_ptr &php3_dir_module_entry
/* directory functions */
PHP_FUNCTION(touch);
PHP_FUNCTION(clearstatcache);
-extern php3_module_entry php3_filestat_module_entry;
+extern zend_module_entry php3_filestat_module_entry;
#define php3_filestat_module_ptr &php3_filestat_module_entry
#define phpext_filestat_ptr php3_filestat_module_ptr
#ifndef _MAIL_H
#define _MAIL_H
#if HAVE_SENDMAIL
-extern php3_module_entry mail_module_entry;
+extern zend_module_entry mail_module_entry;
#define mail_module_ptr &mail_module_entry
PHP_FUNCTION(mail);
#define _PHP_SYSLOG_H
#if HAVE_SYSLOG_H
-extern php3_module_entry syslog_module_entry;
+extern zend_module_entry syslog_module_entry;
#define syslog_module_ptr &syslog_module_entry
extern PHP_MINIT_FUNCTION(syslog);
#ifndef _REG_H
#define _REG_H
-extern php3_module_entry regexp_module_entry;
+extern zend_module_entry regexp_module_entry;
#define regexp_module_ptr ®exp_module_entry
char *_php3_regreplace(const char *pattern, const char *replace, const char *string, int icase, int extended);
};
-php3_module_entry syslog_module_entry = {
+zend_module_entry syslog_module_entry = {
"Syslog", syslog_functions, PHP_MINIT(syslog), NULL, PHP_RINIT(syslog), PHP_RSHUTDOWN(syslog), NULL, STANDARD_MODULE_PROPERTIES
};
#if COMPILE_DL
-DLEXPORT php3_module_entry *get_module(void) { return &syslog_module_entry; }
+DLEXPORT zend_module_entry *get_module(void) { return &syslog_module_entry; }
#endif
#if HAVE_SYBASE
-extern php3_module_entry sybase_module_entry;
+extern zend_module_entry sybase_module_entry;
#define sybase_module_ptr &sybase_module_entry
extern int php3_minit_sybase(INIT_FUNC_ARGS);
{NULL, NULL, NULL}
};
-php3_module_entry sybase_module_entry = {
+zend_module_entry sybase_module_entry = {
"Sybase SQL", sybase_functions, php3_minit_sybase, php3_mshutdown_sybase, php3_rinit_sybase, php3_rshutdown_sybase, php3_info_sybase, STANDARD_MODULE_PROPERTIES
};
#if COMPILE_DL
-php3_module_entry *get_module() { return &sybase_module_entry; }
+zend_module_entry *get_module() { return &sybase_module_entry; }
#endif
THREAD_LS sybase_module php3_sybase_module;
#if HAVE_SYSVSEM
-extern php3_module_entry sysvsem_module_entry;
+extern zend_module_entry sysvsem_module_entry;
#define sysvsem_module_ptr &sysvsem_module_entry
extern int php3_minit_sysvsem(INIT_FUNC_ARGS);
};
#if COMPILE_DL
-php3_module_entry *get_module() { return &sysvsem_module_entry; }
+zend_module_entry *get_module() { return &sysvsem_module_entry; }
#endif
#if HAVE_SYSVSHM
-extern php3_module_entry sysvshm_module_entry;
+extern zend_module_entry sysvshm_module_entry;
#define sysvshm_module_ptr &sysvshm_module_entry
#include <sys/types.h>
#if COMPILE_DL
-php3_module_entry *get_module() { return &sysvshm_module_entry; }
+zend_module_entry *get_module() { return &sysvshm_module_entry; }
#endif
} xml_encoding;
-extern php3_module_entry xml_module_entry;
+extern zend_module_entry xml_module_entry;
# define xml_module_ptr &xml_module_entry
enum php3_xml_option {
{NULL, NULL, NULL}
};
-php3_module_entry xml_module_entry = {
+zend_module_entry xml_module_entry = {
"XML", /* extension name */
xml_functions, /* extension function list */
PHP_MINIT(xml), /* extension-wide startup function */
#if HAVE_YP
-extern php3_module_entry yp_module_entry;
+extern zend_module_entry yp_module_entry;
#define yp_module_ptr &yp_module_entry
/* yp.c functions */
int gzgetss_state;
} php_zlib_globals;
-extern php3_module_entry php3_zlib_module_entry;
+extern zend_module_entry php3_zlib_module_entry;
#define zlib_module_ptr &php3_zlib_module_entry
extern PHP_MINIT_FUNCTION(zlib);
{NULL, NULL, NULL}
};
-php3_module_entry php3_zlib_module_entry = {
+zend_module_entry php3_zlib_module_entry = {
"zlib",
php3_zlib_functions,
PHP_MINIT(zlib),
};
#if defined(COMPILE_DL)
-DLEXPORT php3_module_entry *get_module(void) { return &php_zlib_module_entry; }
+DLEXPORT zend_module_entry *get_module(void) { return &php_zlib_module_entry; }
#endif
static void phpi_destructor_gzclose(gzFile *zp) {
extern HashTable browser_hash;
PHPAPI extern char *php_ini_path;
#endif
-static HashTable *active_zend_hash_table;
+static HashTable *activezend_hash_table;
static pval *current_section;
static char *currently_parsed_filename;
}
init_cfg_scanner();
- active_zend_hash_table = &configuration_hash;
+ activezend_hash_table = &configuration_hash;
parsing_mode = PARSING_MODE_CFG;
currently_parsed_filename = "php.ini";
yyparse();
return FAILURE;
}
init_cfg_scanner();
- active_zend_hash_table = &browser_hash;
+ activezend_hash_table = &browser_hash;
parsing_mode = PARSING_MODE_BROWSCAP;
currently_parsed_filename = browscap;
yyparse();
#endif
$3.type = IS_STRING;
if (parsing_mode==PARSING_MODE_CFG) {
- zend_hash_update(active_zend_hash_table, $1.value.str.val, $1.value.str.len+1, &$3, sizeof(pval), NULL);
- if (active_zend_hash_table == &configuration_hash) {
+ zend_hash_update(activezend_hash_table, $1.value.str.val, $1.value.str.len+1, &$3, sizeof(pval), NULL);
+ if (activezend_hash_table == &configuration_hash) {
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) {
tmp.value.ht = (HashTable *) malloc(sizeof(HashTable));
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);
+ zend_hash_update(activezend_hash_table, $1.value.str.val, $1.value.str.len+1, (void *) &tmp, sizeof(pval), (void **) ¤t_section);
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;
zend_utility_functions zuf;
zend_utility_values zuv;
int module_number=0; /* for REGISTER_INI_ENTRIES() */
+ char *php_os;
#ifdef ZTS
zend_executor_globals *executor_globals;
php_core_globals *core_globals;
WORD wVersionRequested = MAKEWORD(2, 0);
WSADATA wsaData;
#endif
+#if WIN32|WINNT
+ /* Get build numbers for Windows NT or Win95 */
+ if (dwVersion < 0x80000000){
+ php_os="WINNT";
+ } else {
+ php_os="WIN32";
+ }
+#else
+ php_os=PHP_OS;
+#endif
global_lock_init();
SG(server_context) = NULL;
zend_set_utility_values(&zuv);
php_startup_SAPI_content_types();
+ REGISTER_MAIN_STRINGL_CONSTANT("PHP_VERSION", PHP_VERSION, sizeof(PHP_VERSION)-1, CONST_PERSISTENT | CONST_CS);
+ REGISTER_MAIN_STRINGL_CONSTANT("PHP_OS", php_os, strlen(php_os), CONST_PERSISTENT | CONST_CS);
+
if (php_startup_internal_extensions() == FAILURE) {
php_printf("Unable to start builtin modules\n");
return FAILURE;
PHP_RINIT_FUNCTION(output);
PHP_RSHUTDOWN_FUNCTION(output);
-php3_module_entry output_module_entry = {
+zend_module_entry output_module_entry = {
"PHP_output",
php_output_functions,
NULL, /* extension-wide startup function */