cvs: pecl /gdchart README gdchart.c php_gdchart.h
| From: | Rasmus Lerdorf | Date: | Fri, 22 Aug 2003 19:39:00 +0000 |
| Subject: | cvs: pecl /gdchart README gdchart.c php_gdchart.h | ||
| Groups: | php.pecl.cvs | ||
| Request: | Send a blank email to pecl-cvs+get-421@lists.php.net to get a copy of this message | ||
rasmus Fri Aug 22 15:39:00 2003 EDT
Modified files:
/pecl/gdchart README gdchart.c php_gdchart.h
Log:
A bit of cleanup
Index: pecl/gdchart/README
diff -u pecl/gdchart/README:1.1 pecl/gdchart/README:1.2
--- pecl/gdchart/README:1.1 Fri Aug 22 14:16:56 2003
+++ pecl/gdchart/README Fri Aug 22 15:39:00 2003
@@ -14,6 +14,10 @@
Change the path to your php43 source accordingly, of course.
+If you get errors about GDC_title_font being undefined, make sure your
+php_config.h file includes the various GD defines including
+HAVE_LIBFREETYPE.
+
gdchart includes the following Copyright statement:
/* GDCHART 0.11.xdev 22 Mar 2003 */
Index: pecl/gdchart/gdchart.c
diff -u pecl/gdchart/gdchart.c:1.1 pecl/gdchart/gdchart.c:1.2
--- pecl/gdchart/gdchart.c:1.1 Fri Aug 22 14:02:25 2003
+++ pecl/gdchart/gdchart.c Fri Aug 22 15:39:00 2003
@@ -14,7 +14,7 @@
+----------------------------------------------------------------------+
| Author: Rasmus Lerdorf |
+----------------------------------------------------------------------+
- $Id: gdchart.c,v 1.1 2003/08/22 18:02:25 rasmus Exp $
+ $Id: gdchart.c,v 1.2 2003/08/22 19:39:00 rasmus Exp $
*/
/*
@@ -39,13 +39,6 @@
#include "ext/standard/info.h"
#include "php_gdchart.h"
-/* If you declare any globals in php_gdchart.h uncomment this:
-ZEND_DECLARE_MODULE_GLOBALS(gdchart)
-*/
-
-/* True global resources - no need for thread safety here */
-/* static int le_gdchart; */
-
static int gdchart_used = 0;
static zend_class_entry *gdchart_class_entry_ptr;
@@ -76,7 +69,7 @@
"gdchart",
gdchart_functions,
PHP_MINIT(gdchart),
- PHP_MSHUTDOWN(gdchart),
+ NULL,
NULL,
PHP_RSHUTDOWN(gdchart),
PHP_MINFO(gdchart),
@@ -241,16 +234,6 @@
};
/* }}} */
-/* {{{ PHP_INI
- */
-/* Remove comments and fill if you need to have entries in php.ini
-PHP_INI_BEGIN()
- STD_PHP_INI_ENTRY("gdchart.global_value", "42", PHP_INI_ALL,
OnUpdateInt, global_value, zend_gdchart_globals, gdchart_globals)
- STD_PHP_INI_ENTRY("gdchart.global_string", "foobar", PHP_INI_ALL,
OnUpdateString, global_string, zend_gdchart_globals, gdchart_globals)
-PHP_INI_END()
-*/
-/* }}} */
-
/* {{{ php_gdchart_init_globals
*/
/* Uncomment this function if you have INI entries
@@ -392,11 +375,6 @@
{
zend_class_entry gdchart_class_entry;
- /* If you have INI entries, uncomment these lines
- ZEND_INIT_MODULE_GLOBALS(gdchart, php_gdchart_init_globals, NULL);
- REGISTER_INI_ENTRIES();
- */
-
INIT_CLASS_ENTRY(gdchart_class_entry, "gdchart", php_gdchart_class_functions);
gdchart_class_entry_ptr = zend_register_internal_class(&gdchart_class_entry);
@@ -464,17 +442,6 @@
}
/* }}} */
-/* {{{ PHP_MSHUTDOWN_FUNCTION
- */
-PHP_MSHUTDOWN_FUNCTION(gdchart)
-{
- /* uncomment this line if you have INI entries
- UNREGISTER_INI_ENTRIES();
- */
- return SUCCESS;
-}
-/* }}} */
-
/* {{{ PHP_RSHUTDOWN_FUNCTION
*/
PHP_RSHUTDOWN_FUNCTION(gdchart)
@@ -507,10 +474,6 @@
php_info_print_table_header(2, "gdchart support", "enabled");
php_info_print_table_row(2, "Based on gdchart version", "0.11.4dev");
php_info_print_table_end();
-
- /* Remove comments if you have entries in php.ini
- DISPLAY_INI_ENTRIES();
- */
}
/* }}} */
@@ -994,7 +957,6 @@
goto done;
}
num_sets = zend_hash_num_elements(Z_ARRVAL_PP(tmp));
- php_error_docref(NULL, E_WARNING, "num_sets = %d", num_sets);
if(num_sets) {
zend_hash_internal_pointer_reset(Z_ARRVAL_PP(tmp));
i=0;
Index: pecl/gdchart/php_gdchart.h
diff -u pecl/gdchart/php_gdchart.h:1.1 pecl/gdchart/php_gdchart.h:1.2
--- pecl/gdchart/php_gdchart.h:1.1 Fri Aug 22 14:02:25 2003
+++ pecl/gdchart/php_gdchart.h Fri Aug 22 15:39:00 2003
@@ -14,7 +14,7 @@
+----------------------------------------------------------------------+
| Author: Rasmus Lerdorf |
+----------------------------------------------------------------------+
- $Id: php_gdchart.h,v 1.1 2003/08/22 18:02:25 rasmus Exp $
+ $Id: php_gdchart.h,v 1.2 2003/08/22 19:39:00 rasmus Exp $
*/
#ifndef PHP_GDCHART_H
@@ -23,25 +23,14 @@
extern zend_module_entry gdchart_module_entry;
#define phpext_gdchart_ptr &gdchart_module_entry
-#ifdef PHP_WIN32
-#define PHP_GDCHART_API __declspec(dllexport)
-#else
-#define PHP_GDCHART_API
-#endif
-
-#ifdef ZTS
-#include "TSRM.h"
-#endif
-
#include <stdio.h>
#include <math.h>
-
+
#include "gdchart-src/gdc.h"
#include "gdchart-src/gdcpie.h"
#include "gdchart-src/gdchart.h"
PHP_MINIT_FUNCTION(gdchart);
-PHP_MSHUTDOWN_FUNCTION(gdchart);
PHP_RSHUTDOWN_FUNCTION(gdchart);
PHP_MINFO_FUNCTION(gdchart);
@@ -49,22 +38,6 @@
PHP_FUNCTION(php_gdchart_out);
PHP_FUNCTION(php_gdchart_add_set);
PHP_FUNCTION(php_gdchart_add_combo_set);
-
-/*
- Declare any global variables you may need between the BEGIN
- and END macros here:
-
-ZEND_BEGIN_MODULE_GLOBALS(gdchart)
- long global_value;
- char *global_string;
-ZEND_END_MODULE_GLOBALS(gdchart)
-*/
-
-#ifdef ZTS
-#define GDCHART_G(v) TSRMG(gdchart_globals_id, zend_gdchart_globals *, v)
-#else
-#define GDCHART_G(v) (gdchart_globals.v)
-#endif
typedef struct _php_gdchart_symbol_table {
char *name;