Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Prettify phpinfo, add ext and sundown version #21

Merged
merged 1 commit into from almost 2 years ago

2 participants

stealth35 Shuhei Tanuma
stealth35

No description provided.

Shuhei Tanuma chobie merged commit 8b2bf9d into from
Shuhei Tanuma chobie closed this
Shuhei Tanuma
Owner
chobie commented

Thanks, I noticed this yesterday and I want to fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

May 22, 2012
stealth35 Prettify phpinfo, add ext and sundown version 2a3e8b4
This page is out of date. Refresh to see the latest.
6  php_sundown.c
@@ -230,10 +230,10 @@ PHP_MINIT_FUNCTION(sundown) {
230 230
 
231 231
 PHP_MINFO_FUNCTION(sundown)
232 232
 {
233  
-	php_printf("PHP Sundown Extension\n");
234 233
 	php_info_print_table_start();
235  
-	php_info_print_table_row(2,"Sundown Support",  "enabled");
236  
-	php_info_print_table_row(2,"Sundown Version", "3361ebcd22089fe64860f96a7b6acaf18a55746e");
  234
+	php_info_print_table_header(2,"Sundown Support",  "enabled");
  235
+	php_info_print_table_row(2,"Version", PHP_SUNDOWN_EXTVER);
  236
+	php_info_print_table_row(2,"Sundown Version", SUNDOWN_VERSION);
237 237
 	php_info_print_table_end();
238 238
 }
239 239
 
6  php_sundown.h
@@ -3,7 +3,7 @@
3 3
 #define PHP_SUNDOWN_H
4 4
 
5 5
 #define PHP_SUNDOWN_EXTNAME "sundown"
6  
-#define PHP_SUNDOWN_EXTVER "0.1"
  6
+#define PHP_SUNDOWN_EXTVER "0.3.6-dev"
7 7
 
8 8
 #ifdef HAVE_CONFIG_H
9 9
 #include "config.h"
@@ -15,6 +15,10 @@
15 15
 #include "ext/spl/spl_exceptions.h"
16 16
 #include "zend_interfaces.h"
17 17
 
  18
+#ifndef SUNDOWN_VERSION
  19
+#define SUNDOWN_VERSION UPSKIRT_VERSION
  20
+#endif
  21
+
18 22
 /* Define the entry point symbol
19 23
  * Zend will use when loading this module
20 24
  */
Commit_comment_tip

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.