php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #4470 patch to compile cybercash as a DL module
Submitted: 2000-05-16 21:03 UTC Modified: 2000-07-02 03:46 UTC
From: oyarzun at wilmington dot net Assigned:
Status: Closed Package: Dynamic loading
PHP Version: 4.0 Latest CVS (16/05/2000) OS: RedHat Linux 6.2
Private report: No CVE-ID: None
 [2000-05-16 21:03 UTC] oyarzun at wilmington dot net
here is a patch that will allow cybercash to be compiled as a dl modules

diff -Nru php4.ORIG/ext/cybercash/cybercash.c php4/ext/cybercashcybercash.c
--- php4.ORIG/ext/cybercash/cybercash.c Tue Mar 14 15:16:18 2000
+++ php4/ext/cybercashcybercash.c   Tue May 16 14:26:52 2000
@@ -48,9 +48,22 @@
    cybercash_functions,
    NULL,NULL,
    NULL,NULL,
-   NULL,
+   PHP_MINFO(cybercash),
    STANDARD_MODULE_PROPERTIES,
 };
+
+
+#if defined(COMPILE_DL) || defined(COMPILE_DL_CYBERCASH)
+ZEND_GET_MODULE(cybercash)
+#endif
+
+PHP_MINFO_FUNCTION(cybercash)
+{
+        php_info_print_table_start();
+        php_info_print_table_row(2, "Cybercash Support", "enabled");
+        php_info_print_table_end();
+}
+

 PHP_FUNCTION(cybercash_encr)
 {
diff -Nru php4.ORIG/ext/cybercash/cybercash.h php4/ext/cybercashcybercash.h
--- php4.ORIG/ext/cybercash/cybercash.h Tue Mar 14 15:16:18 2000
+++ php4/ext/cybercashcybercash.h   Tue May 16 14:29:20 2000
@@ -42,6 +42,7 @@
 extern zend_module_entry cybercash_module_entry;
 #define cybercash_module_ptr &cybercash_module_entry

+PHP_MINFO_FUNCTION(cybercash);
 PHP_FUNCTION(cybercash_encr);
 PHP_FUNCTION(cybercash_decr);
 PHP_FUNCTION(cybercash_base64_encode);

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-07-02 03:46 UTC] sterling at cvs dot php dot net
Fixed in CVS.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun May 05 23:01:30 2024 UTC