Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

5.4 compatibility

  • Loading branch information...
commit 457aec837a50ffefd3d13ec34ebc2206f454f03d 1 parent 7b8f377
piotras authored

Showing 1 changed file with 7 additions and 3 deletions. Show diff stats Hide diff stats

  1. +7 3 php_midgard__helpers.h
10 php_midgard__helpers.h
@@ -49,6 +49,10 @@ zend_class_entry *php_date_get_timezone_ce(void);
49 49 void php_midgard_docs_add_class (const gchar *classname);
50 50 void php_midgard_docs_add_method_comment (const char *classname, const char *method, const char *comment);
51 51 const gchar *php_midgard_docs_get_method_comment (const gchar *classname, const gchar *method);
52   -
53   -#define php_mgd_register_auto_global(name) \
54   - zend_register_auto_global(#name, sizeof(#name)-1, NULL TSRMLS_CC);
  52 +#if (PHP_MAJOR_VERSION == 5 && PHP_MINOR_VERSION >= 3)
  53 +# define php_mgd_register_auto_global(name) \
  54 +# zend_register_auto_global(#name, sizeof(#name)-1, 0, NULL TSRMLS_CC);
  55 +#else
  56 +# define php_mgd_register_auto_global(name) \
  57 +# zend_register_auto_global(#name, sizeof(#name)-1, NULL TSRMLS_CC);
  58 +#endif

0 comments on commit 457aec8

Please sign in to comment.
Something went wrong with that request. Please try again.