Commits

Ruslan Osmanov committed 295ce6d

Fix: evthread_use_pthreads call skept due to a macro magic(PHP_EVENT_ASSERT)

Comments (0)

Files changed (2)

     <email>osmanov@php.net</email>
     <active>yes</active>
   </lead>
-  <date>2013-07-26</date>
+  <date>2013-07-28</date>
   <!--{{{ Current version -->
   <version>
     <release>1.7.2</release>
   Fix: bug #65320 where we got build errors in attempts to compile event statically(thanks to florin)
   Fix: bug #65319 where config.m4 used <php_version.h> to detect current PHP version
   Fix: config.m4 included -levent_pthreads into LDFLAGS even --without-event-pthreads configuration
+  Fix: evthread_use_pthreads() call skept due to a "macro magic"(PHP_EVENT_ASSERT)
   ]]></notes>
   <!--}}}-->
   <!--{{{ Contents -->
   Fix: bug #65320 where we got build errors in attempts to compile event statically(thanks to florin)
   Fix: bug #65319 where config.m4 used <php_version.h> to detect current PHP version
   Fix: config.m4 included -levent_pthreads into LDFLAGS even --without-event-pthreads configuration
+  Fix: evthread_use_pthreads() call skept due to a "macro magic"(PHP_EVENT_ASSERT)
   ]]></notes>
     </release>
     <!--}}}-->
 # error "Windows is not supported right now"
 	evthread_use_windows_threads();
 # else
-	PHP_EVENT_ASSERT(evthread_use_pthreads() == 0);
+	if (evthread_use_pthreads()) {
+		php_error_docref(NULL TSRMLS_CC, E_ERROR,
+				"evthread_use_pthreads failed, submit a bug");
+	}
 # endif
 #endif