cvs: pecl /demoext php_demoext.c
| From: | Marcus Boerger | Date: | Thu, 31 Jan 2008 07:37:37 +0000 |
| Subject: | cvs: pecl /demoext php_demoext.c | ||
| Groups: | php.pecl.cvs | ||
| Request: | Send a blank email to pecl-cvs+get-9645@lists.php.net to get a copy of this message | ||
helly Thu Jan 31 07:37:37 2008 UTC
Modified files:
/pecl/demoext php_demoext.c
Log:
- Prevent naming isues
http://cvs.php.net/viewvc.cgi/pecl/demoext/php_demoext.c?r1=1.3&r2=1.4&diff_format=u
Index: pecl/demoext/php_demoext.c
diff -u pecl/demoext/php_demoext.c:1.3 pecl/demoext/php_demoext.c:1.4
--- pecl/demoext/php_demoext.c:1.3 Wed Oct 10 23:08:15 2007
+++ pecl/demoext/php_demoext.c Thu Jan 31 07:37:37 2008
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_demoext.c,v 1.3 2007/10/10 23:08:15 helly Exp $ */
+/* $Id: php_demoext.c,v 1.4 2008/01/31 07:37:37 helly Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -45,16 +45,16 @@
/* forward declaration for all methods use (class-name, method-name) */
-PHP_METHOD(dir, __construct);
-PHP_METHOD(dir, rewind);
-PHP_METHOD(dir, valid);
-PHP_METHOD(dir, key);
-PHP_METHOD(dir, current);
-PHP_METHOD(dir, next);
-PHP_METHOD(dir, getPath);
-PHP_METHOD(dir, getFilename);
-PHP_METHOD(dir, isDot);
-PHP_METHOD(dir, isDir);
+PHP_METHOD(Demoext, __construct);
+PHP_METHOD(Demoext, rewind);
+PHP_METHOD(Demoext, valid);
+PHP_METHOD(Demoext, key);
+PHP_METHOD(Demoext, current);
+PHP_METHOD(Demoext, next);
+PHP_METHOD(Demoext, getPath);
+PHP_METHOD(Demoext, getFilename);
+PHP_METHOD(Demoext, isDot);
+PHP_METHOD(Demoext, isDir);
/* declare method parameters */
@@ -68,16 +68,16 @@
/* the method table */
/* each method can have its own parameters and visibility */
static zend_function_entry demoext_dir_class_functions[] = {
- PHP_ME(dir, __construct, arginfo_dir___construct, ZEND_ACC_PUBLIC)
- PHP_ME(dir, rewind, NULL, ZEND_ACC_PUBLIC)
- PHP_ME(dir, valid, NULL, ZEND_ACC_PUBLIC)
- PHP_ME(dir, key, NULL, ZEND_ACC_PUBLIC)
- PHP_ME(dir, current, NULL, ZEND_ACC_PUBLIC)
- PHP_ME(dir, next, NULL, ZEND_ACC_PUBLIC)
- PHP_ME(dir, getPath, NULL, ZEND_ACC_PUBLIC)
- PHP_ME(dir, getFilename, NULL, ZEND_ACC_PUBLIC)
- PHP_ME(dir, isDot, NULL, ZEND_ACC_PUBLIC)
- PHP_ME(dir, isDir, NULL, ZEND_ACC_PUBLIC)
+ PHP_ME(Demoext, __construct, arginfo_dir___construct, ZEND_ACC_PUBLIC)
+ PHP_ME(Demoext, rewind, NULL, ZEND_ACC_PUBLIC)
+ PHP_ME(Demoext, valid, NULL, ZEND_ACC_PUBLIC)
+ PHP_ME(Demoext, key, NULL, ZEND_ACC_PUBLIC)
+ PHP_ME(Demoext, current, NULL, ZEND_ACC_PUBLIC)
+ PHP_ME(Demoext, next, NULL, ZEND_ACC_PUBLIC)
+ PHP_ME(Demoext, getPath, NULL, ZEND_ACC_PUBLIC)
+ PHP_ME(Demoext, getFilename, NULL, ZEND_ACC_PUBLIC)
+ PHP_ME(Demoext, isDot, NULL, ZEND_ACC_PUBLIC)
+ PHP_ME(Demoext, isDir, NULL, ZEND_ACC_PUBLIC)
{NULL, NULL, NULL}
};
@@ -237,7 +237,7 @@
When the constructor gets called the object is already created
by the engine, so we must only call 'additional' initializations.
*/
-PHP_METHOD(dir, __construct)
+PHP_METHOD(Demoext, __construct)
{
zval *object = getThis();
demoext_dir_object *intern;
@@ -260,7 +260,7 @@
/* {{{ proto void dir::rewind()
Rewind dir back to the start */
-PHP_METHOD(dir, rewind)
+PHP_METHOD(Demoext, rewind)
{
zval *object = getThis();
demoext_dir_object *intern = (demoext_dir_object*)zend_object_store_get_object(object TSRMLS_CC);
@@ -277,7 +277,7 @@
/* {{{ proto string dir::key()
Return current dir entry */
-PHP_METHOD(dir, key)
+PHP_METHOD(Demoext, key)
{
zval *object = getThis();
demoext_dir_object *intern = (demoext_dir_object*)zend_object_store_get_object(object TSRMLS_CC);
@@ -294,7 +294,7 @@
/* {{{ proto string|false dir::current()
Return this (needed for Iterator interface) */
-PHP_METHOD(dir, current)
+PHP_METHOD(Demoext, current)
{
zval *object = getThis();
demoext_dir_object *intern = (demoext_dir_object*)zend_object_store_get_object(object TSRMLS_CC);
@@ -309,7 +309,7 @@
/* {{{ proto void dir::next()
Move to next entry */
-PHP_METHOD(dir, next)
+PHP_METHOD(Demoext, next)
{
zval *object = getThis();
demoext_dir_object *intern = (demoext_dir_object*)zend_object_store_get_object(object TSRMLS_CC);
@@ -323,7 +323,7 @@
/* {{{ proto string dir::valid()
Check whether dir contains more entries */
-PHP_METHOD(dir, valid)
+PHP_METHOD(Demoext, valid)
{
zval *object = getThis();
demoext_dir_object *intern = (demoext_dir_object*)zend_object_store_get_object(object TSRMLS_CC);
@@ -334,7 +334,7 @@
/* {{{ proto string dir::getPath()
Return directory path */
-PHP_METHOD(dir, getPath)
+PHP_METHOD(Demoext, getPath)
{
zval *object = getThis();
demoext_dir_object *intern = (demoext_dir_object*)zend_object_store_get_object(object TSRMLS_CC);
@@ -345,7 +345,7 @@
/* {{{ proto string dir::getFilename()
Return filename of current dir entry */
-PHP_METHOD(dir, getFilename)
+PHP_METHOD(Demoext, getFilename)
{
zval *object = getThis();
demoext_dir_object *intern = (demoext_dir_object*)zend_object_store_get_object(object TSRMLS_CC);
@@ -356,7 +356,7 @@
/* {{{ proto string dir::isDot()
Returns true if current entry is '.' or '..' */
-PHP_METHOD(dir, isDot)
+PHP_METHOD(Demoext, isDot)
{
zval *object = getThis();
demoext_dir_object *intern = (demoext_dir_object*)zend_object_store_get_object(object TSRMLS_CC);
@@ -367,7 +367,7 @@
/* {{{ proto string dir::isDir()
Returns whether current entry is a directory */
-PHP_METHOD(dir, isDir)
+PHP_METHOD(Demoext, isDir)
{
zval *object = getThis();
demoext_dir_object *intern = (demoext_dir_object*)zend_object_store_get_object(object TSRMLS_CC);
@@ -574,7 +574,7 @@
{
zend_class_entry ce;
- INIT_CLASS_ENTRY(ce, "dirs", demoext_dir_class_functions);
+ INIT_CLASS_ENTRY(ce, "Demoext", demoext_dir_class_functions);
demoext_ce_dir = zend_register_internal_class(&ce TSRMLS_CC);
demoext_ce_dir->create_object = demoext_dir_object_new;
zend_class_implements(demoext_ce_dir TSRMLS_CC, 1, zend_ce_iterator);
@@ -641,7 +641,7 @@
#if ZEND_MODULE_API_NO >= 20010901
STANDARD_MODULE_HEADER,
#endif
- "demoext",
+ "Demoext",
demoext_functions,
PHP_MINIT(demoext),
PHP_MSHUTDOWN(demoext),