Re: cvs: pecl(PECL_4_3) /rar php_rar.h rar.cpp
| From: | Edin Kadribasic | Date: | Mon, 30 Aug 2004 10:22:15 +0000 |
| Subject: | Re: cvs: pecl(PECL_4_3) /rar php_rar.h rar.cpp | ||
| References: | 1 | Groups: | php.pecl.cvs |
| Request: | Send a blank email to pecl-cvs+get-1753@lists.php.net to get a copy of this message | ||
You need to make a branch tag on all files in the extension.
Edin
----- Original Message -----
From: "Antony Dovgal" <tony2001@php.net>
To: <pecl-cvs@lists.php.net>
Sent: Monday, August 30, 2004 9:55 AM
Subject: [PECL-CVS] cvs: pecl(PECL_4_3) /rar php_rar.h rar.cpp
tony2001 Mon Aug 30 03:55:20 2004 EDT
Modified files: (Branch: PECL_4_3)
/pecl/rar php_rar.h rar.cpp
Log:
create 4_3 branch of pecl/rar
http://cvs.php.net/diff.php/pecl/rar/php_rar.h?r1=1.1.1.1&r2=1.1.1.1.2.1&ty=u
Index: pecl/rar/php_rar.h
diff -u pecl/rar/php_rar.h:1.1.1.1 pecl/rar/php_rar.h:1.1.1.1.2.1
--- pecl/rar/php_rar.h:1.1.1.1 Fri Jun 11 02:29:42 2004
+++ pecl/rar/php_rar.h Mon Aug 30 03:55:20 2004
@@ -24,7 +24,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_rar.h,v 1.1.1.1 2004/06/11 06:29:42 tony2001 Exp $ */
+/* $Id: php_rar.h,v 1.1.1.1.2.1 2004/08/30 07:55:20 tony2001 Exp $ */
#ifndef PHP_RAR_H
#define PHP_RAR_H
@@ -53,16 +53,16 @@
PHP_FUNCTION(rar_entry_get);
PHP_FUNCTION(rar_close);
-PHP_METHOD(rarentry, extract);
-PHP_METHOD(rarentry, getName);
-PHP_METHOD(rarentry, getUnpackedSize);
-PHP_METHOD(rarentry, getPackedSize);
-PHP_METHOD(rarentry, getHostOs);
-PHP_METHOD(rarentry, getFileTime);
-PHP_METHOD(rarentry, getCrc);
-PHP_METHOD(rarentry, getAttr);
-PHP_METHOD(rarentry, getVersion);
-PHP_METHOD(rarentry, getMethod);
+PHP_FUNCTION(rar_extract);
+PHP_FUNCTION(rar_get_name);
+PHP_FUNCTION(rar_get_unpacked_size);
+PHP_FUNCTION(rar_get_packed_size);
+PHP_FUNCTION(rar_get_host_os);
+PHP_FUNCTION(rar_get_file_time);
+PHP_FUNCTION(rar_get_crc);
+PHP_FUNCTION(rar_get_attr);
+PHP_FUNCTION(rar_get_version);
+PHP_FUNCTION(rar_get_method);
typedef struct rar {
int id;
http://cvs.php.net/diff.php/pecl/rar/rar.cpp?r1=1.5&r2=1.5.2.1&ty=u
Index: pecl/rar/rar.cpp
diff -u pecl/rar/rar.cpp:1.5 pecl/rar/rar.cpp:1.5.2.1
--- pecl/rar/rar.cpp:1.5 Thu Jul 15 02:43:07 2004
+++ pecl/rar/rar.cpp Mon Aug 30 03:55:20 2004
@@ -24,21 +24,20 @@
+----------------------------------------------------------------------+
*/
-/* $Id: rar.cpp,v 1.5 2004/07/15 06:43:07 tony2001 Exp $ */
+/* $Id: rar.cpp,v 1.5.2.1 2004/08/30 07:55:20 tony2001 Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
+extern "C" {
#include "php.h"
-#include "php_ini.h"
#include "ext/standard/info.h"
+}
#if HAVE_RAR
-extern "C" {
-#include "php_rar.h"
-}
+#include "php_rar.h"
#include "unrar/rar.hpp"
static int le_rar_file;
@@ -57,16 +56,16 @@
};
static zend_function_entry php_rar_class_functions[] = {
- PHP_ME(rarentry, extract, NULL, 0)
- PHP_ME(rarentry, getName, NULL, 0)
- PHP_ME(rarentry, getUnpackedSize, NULL, 0)
- PHP_ME(rarentry, getPackedSize, NULL, 0)
- PHP_ME(rarentry, getHostOs, NULL, 0)
- PHP_ME(rarentry, getFileTime, NULL, 0)
- PHP_ME(rarentry, getCrc, NULL, 0)
- PHP_ME(rarentry, getAttr, NULL, 0)
- PHP_ME(rarentry, getVersion, NULL, 0)
- PHP_ME(rarentry, getMethod, NULL, 0)
+ PHP_FALIAS(extract, rar_extract, NULL)
+ PHP_FALIAS(getName, rar_get_name, NULL)
+ PHP_FALIAS(getUnpackedSize, rar_get_unpacked_size, NULL)
+ PHP_FALIAS(getPackedSize, rar_get_packed_size, NULL)
+ PHP_FALIAS(getHostOs, rar_get_host_os, NULL)
+ PHP_FALIAS(getFileTime, rar_get_file_time, NULL)
+ PHP_FALIAS(getCrc, rar_get_crc, NULL)
+ PHP_FALIAS(getAttr, rar_get_attr, NULL)
+ PHP_FALIAS(getVersion, rar_get_version, NULL)
+ PHP_FALIAS(getMethod, rar_get_method, NULL)
{NULL, NULL, NULL}
};
/* }}} */
@@ -277,7 +276,7 @@
rar_class_entry_ptr = zend_register_internal_class(&rar_class_entry
TSRMLS_CC);
le_rar_file = zend_register_list_destructors_ex(_rar_file_list_dtor, NULL,
le_rar_file_name, module_number);
-
+
return SUCCESS;
}
/* }}} */
@@ -312,7 +311,7 @@
{
php_info_print_table_start();
php_info_print_table_header(2, "Rar support", "enabled");
- php_info_print_table_row(2, "Revision", "$Revision: 1.5 $");
+ php_info_print_table_row(2, "Revision", "$Revision: 1.5.2.1 $");
php_info_print_table_end();
}
/* }}} */
@@ -479,7 +478,7 @@
/* {{{ proto RarEntry::extract(string path [, string filename ]);
Extract file from the archive */
-PHP_METHOD(rarentry, extract)
+PHP_FUNCTION(rar_extract)
{
zval **rarfile, **path, **filename, **tmp, **tmp_name;
rar_file_t *rar = NULL;
@@ -570,7 +569,7 @@
/* {{{ proto RarEntry::getName();
Return entry name */
-PHP_METHOD(rarentry, getName)
+PHP_FUNCTION(rar_get_name)
{
zval **rarfile, **tmp;
rar_file_t *rar = NULL;
@@ -587,7 +586,7 @@
/* {{{ proto RarEntry::getUnpackedSize();
Return unpacked size of the entry */
-PHP_METHOD(rarentry, getUnpackedSize)
+PHP_FUNCTION(rar_get_unpacked_size)
{
zval **rarfile, **tmp;
rar_file_t *rar = NULL;
@@ -604,7 +603,7 @@
/* {{{ proto RarEntry::getPackedSize();
Return packed size of the entry */
-PHP_METHOD(rarentry, getPackedSize)
+PHP_FUNCTION(rar_get_packed_size)
{
zval **rarfile, **tmp;
rar_file_t *rar = NULL;
@@ -621,7 +620,7 @@
/* {{{ proto RarEntry::getHostOs();
Return host OS of the entry */
-PHP_METHOD(rarentry, getHostOs)
+PHP_FUNCTION(rar_get_host_os)
{
zval **rarfile, **tmp;
rar_file_t *rar = NULL;
@@ -638,7 +637,7 @@
/* {{{ proto RarEntry::getFileTime();
Return modification time of the entry */
-PHP_METHOD(rarentry, getFileTime)
+PHP_FUNCTION(rar_get_file_time)
{
zval **rarfile, **tmp;
rar_file_t *rar = NULL;
@@ -655,7 +654,7 @@
/* {{{ proto RarEntry::getCrc();
Return CRC of the entry */
-PHP_METHOD(rarentry, getCrc)
+PHP_FUNCTION(rar_get_crc)
{
zval **rarfile, **tmp;
rar_file_t *rar = NULL;
@@ -672,7 +671,7 @@
/* {{{ proto RarEntry::getAttr();
Return attributes of the entry */
-PHP_METHOD(rarentry, getAttr)
+PHP_FUNCTION(rar_get_attr)
{
zval **rarfile, **tmp;
rar_file_t *rar = NULL;
@@ -689,7 +688,7 @@
/* {{{ proto RarEntry::getVersion();
Return version of the archiver, used to create this entry */
-PHP_METHOD(rarentry, getVersion)
+PHP_FUNCTION(rar_get_version)
{
zval **rarfile, **tmp;
rar_file_t *rar = NULL;
@@ -706,7 +705,7 @@
/* {{{ proto RarEntry::getMethod();
Return packing method */
-PHP_METHOD(rarentry, getMethod)
+PHP_FUNCTION(rar_get_method)
{
zval **rarfile, **tmp;
rar_file_t *rar = NULL;
--
PECL CVS Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php