Ruslan Osmanov avatar Ruslan Osmanov committed 783febf

Fix: error with pecl build via package.xml
Tiny changes

Comments (0)

Files changed (4)

   PHP_ADD_BUILD_DIR($ext_builddir/src)
   PHP_ADD_BUILD_DIR($ext_builddir/classes)
   PHP_ADD_INCLUDE($ext_builddir/src)
+  PHP_ADD_INCLUDE($ext_builddir/classes)
   PHP_ADD_EXTENSION_DEP(event, sockets, true)
-  dnl We have this dep only because of the need of ssl transports defined in
-  dnl openssl ext.
-  PHP_ADD_EXTENSION_DEP(event, openssl, true)
+  dnl PHP_ADD_EXTENSION_DEP(event, openssl, true)
   PHP_SUBST(EVENT_SHARED_LIBADD)
   PHP_SUBST(CFLAGS)
 fi

examples/ssl_echo_server.php

 }
 
 function ssl_event_cb($bev, $events, $ctx) {
-	if ($events & EventBufferEvent::ERROR)
-		echo "Error from bufferevent\n";
+	if ($events & EventBufferEvent::ERROR) {
+		while ($err = $bev->sslError()) {
+			fprintf(STDERR, "Bufferevent error %s.\n", $err);
+		}
+	}
 
 	if ($events & (EventBufferEvent::EOF | EventBufferEvent::ERROR)) {
 		$bev->free();
         <file role="src" name="http.c"/>
         <file role="src" name="http_connection.c"/>
         <file role="src" name="listener.c"/>
+        <file role="src" name="ssl_context.h"/>
         <file role="src" name="ssl_context.c"/>
       </dir>
       <dir name="examples">
 
 static const zend_module_dep event_deps[] = {
 	ZEND_MOD_OPTIONAL("sockets")
-	ZEND_MOD_OPTIONAL("openssl")
+	/*ZEND_MOD_OPTIONAL("openssl")*/
 	{NULL, NULL, NULL}
 };
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.