php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #62324
Patch Simple-patch revision 2012-06-18 15:38 UTC by jpauli@php.net

Patch Simple-patch for amqp Bug #62324

Patch version 2012-06-18 15:38 UTC

Return to Bug #62324 | Download this patch
Patch Revisions:

Developer: jpauli@php.net

Index: trunk/amqp.c
===================================================================
--- trunk/amqp.c	(révision 326218)
+++ trunk/amqp.c	(copie de travail)
@@ -749,15 +749,10 @@
 */
 PHP_MINFO_FUNCTION(amqp)
 {
-	/* Build date time from compiler macros */
-	char datetime[32];
-	char **pstr = (char **)&datetime;
-	spprintf(pstr, 0, "%s @ %s", __DATE__, __TIME__);
-
 	php_info_print_table_start();
 	php_info_print_table_header(2, "Version",					"1.0.2");
 	php_info_print_table_header(2, "Revision",					"$Revision$");
-	php_info_print_table_header(2, "Compiled",					*pstr);
+	php_info_print_table_header(2, "Compiled",					__DATE__ " @ " __TIME__);
 	php_info_print_table_header(2, "AMQP protocol version", 	"0-9-1");
 	DISPLAY_INI_ENTRIES();

 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Mon Nov 29 10:03:14 2021 UTC