Permalink
Browse files

* Windows build fix (swap #include)

* Windows SSL check and support in config.w32
* Typo in test name
  • Loading branch information...
1 parent af9d576 commit b814cd9bee98e3ea8ea475d5918383d1c5ae7e86 @KalleZ KalleZ committed Oct 31, 2009
Showing with 7 additions and 3 deletions.
  1. +4 −0 config.w32
  2. +0 −2 php_stomp.c
  3. +2 −0 php_stomp.h
  4. +1 −1 tests/003-connect/001.phpt
View
@@ -4,6 +4,10 @@
ARG_ENABLE("stomp", "enable stomp support", "no");
if (PHP_STOMP != "no") {
+ if (CHECK_LIB("ssleay32.lib", "stomp", PHP_STOMP) && CHECK_LIB("libeay32.lib", "stomp", PHP_STOMP)) {
+ ADD_FLAG("CFLAGS_STOMP", "/DHAVE_STOMP_SSL=1");
+ }
+
EXTENSION("stomp", "stomp.c php_stomp.c");
}
View
@@ -27,8 +27,6 @@
#include "zend_exceptions.h"
#include "ext/standard/info.h"
#include "ext/standard/url.h"
-#include "ext/standard/fsock.h"
-#include "stomp.h"
#include "php_stomp.h"
#include "ext/standard/php_smart_str.h"
View
@@ -21,6 +21,8 @@
#ifndef PHP_STOMP_H
#define PHP_STOMP_H
+#include "stomp.h"
+
typedef struct _stomp_object {
zend_object std;
stomp_t *stomp;
@@ -1,5 +1,5 @@
--TEST--
-Check stom_connect
+Check stomp_connect
--SKIPIF--
<?php if (!extension_loaded("stomp")) print "skip"; ?>
--FILE--

0 comments on commit b814cd9

Please sign in to comment.