svn: /php/php-src/ branches/PHP_5_4/main/output.c branches/PHP_5_4/main/php_output.h trunk/main/output.c trunk/main/php_output.h

From: Date: Fri, 30 Dec 2011 08:50:49 +0000
Subject: svn: /php/php-src/ branches/PHP_5_4/main/output.c branches/PHP_5_4/main/php_output.h trunk/main/output.c trunk/main/php_output.h
Groups: php.cvs 
Request: Send a blank email to [email protected] to get a copy of this message
dmitry                                   Fri, 30 Dec 2011 08:50:49 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=321550

Log:
Added an API call to return active output handler

Changed paths:
    U   php/php-src/branches/PHP_5_4/main/output.c
    U   php/php-src/branches/PHP_5_4/main/php_output.h
    U   php/php-src/trunk/main/output.c
    U   php/php-src/trunk/main/php_output.h

Modified: php/php-src/branches/PHP_5_4/main/output.c
===================================================================
--- php/php-src/branches/PHP_5_4/main/output.c	2011-12-30 07:52:04 UTC (rev 321549)
+++ php/php-src/branches/PHP_5_4/main/output.c	2011-12-30 08:50:49 UTC (rev 321550)
@@ -1502,6 +1502,14 @@
 }
 /* }}} */

+/* {{{ php_output_handler* php_get_active_output_handler(TSRMLS_D)
+ * Get active output handler */
+PHPAPI php_output_handler* php_get_active_output_handler(TSRMLS_D)
+{
+	return OG(active);
+}
+/* }}} */
+
 /*
  * Local variables:
  * tab-width: 4

Modified: php/php-src/branches/PHP_5_4/main/php_output.h
===================================================================
--- php/php-src/branches/PHP_5_4/main/php_output.h	2011-12-30 07:52:04 UTC (rev 321549)
+++ php/php-src/branches/PHP_5_4/main/php_output.h	2011-12-30 08:50:49 UTC (rev 321550)
@@ -242,6 +242,7 @@

 PHPAPI php_output_handler_alias_ctor_t *php_output_handler_alias(const char *handler_name, size_t
handler_name_len TSRMLS_DC);
 PHPAPI int php_output_handler_alias_register(const char *handler_name, size_t handler_name_len,
php_output_handler_alias_ctor_t func TSRMLS_DC);
+PHPAPI php_output_handler* php_get_active_output_handler(TSRMLS_D);

 END_EXTERN_C()


Modified: php/php-src/trunk/main/output.c
===================================================================
--- php/php-src/trunk/main/output.c	2011-12-30 07:52:04 UTC (rev 321549)
+++ php/php-src/trunk/main/output.c	2011-12-30 08:50:49 UTC (rev 321550)
@@ -1502,6 +1502,14 @@
 }
 /* }}} */

+/* {{{ php_output_handler* php_get_active_output_handler(TSRMLS_D)
+ * Get active output handler */
+PHPAPI php_output_handler* php_get_active_output_handler(TSRMLS_D)
+{
+	return OG(active);
+}
+/* }}} */
+
 /*
  * Local variables:
  * tab-width: 4

Modified: php/php-src/trunk/main/php_output.h
===================================================================
--- php/php-src/trunk/main/php_output.h	2011-12-30 07:52:04 UTC (rev 321549)
+++ php/php-src/trunk/main/php_output.h	2011-12-30 08:50:49 UTC (rev 321550)
@@ -242,6 +242,7 @@

 PHPAPI php_output_handler_alias_ctor_t *php_output_handler_alias(const char *handler_name, size_t
handler_name_len TSRMLS_DC);
 PHPAPI int php_output_handler_alias_register(const char *handler_name, size_t handler_name_len,
php_output_handler_alias_ctor_t func TSRMLS_DC);
+PHPAPI php_output_handler* php_get_active_output_handler(TSRMLS_D);

 END_EXTERN_C()



Thread (1 message)

  • Dmitry Stogov
« previous php.cvs (#67377) next »