diff --git a/OpenSQLManager.c b/OpenSQLManager.c index 288e64a..3af9bcb 100644 --- a/OpenSQLManager.c +++ b/OpenSQLManager.c @@ -14,12 +14,16 @@ * Wrapper program for embeded php */ +#include #include int main(int argc, char *argv[]) -{ +{ PHP_EMBED_START_BLOCK(argc,argv) - zend_eval_string("include ('./OpenSQLManager.php');", NULL, "TEST" TSRMLS_CC); + zend_eval_string(" \ + chdir(dirname($argv[0])); \ + require ('OpenSQLManager.php'); \ + ", NULL, "TEST" TSRMLS_CC); PHP_EMBED_END_BLOCK() return 0; diff --git a/makefile b/makefile index 12b9bb1..b8ead0f 100644 --- a/makefile +++ b/makefile @@ -4,5 +4,5 @@ CFLAGS = -c `/opt/php-embed/bin/php-config --includes` -Wall -g LDFLAGS = -L/Library/Frameworks/Firebird.framework/Libraries -L/opt/php-embed/lib -lphp5 `/opt/php-embed/bin/php-config --libs` all: OpenSQLManager.c - ${CC} -o OpenSQLManager.o OpenSQLManager.c ${CFLAGS} - ${CC} -o OpenSQLManager OpenSQLManager.o ${LDFLAGS} \ No newline at end of file + ${CC} -O0 -o OpenSQLManager.o OpenSQLManager.c ${CFLAGS} + ${CC} -O0 -o OpenSQLManager OpenSQLManager.o ${LDFLAGS} \ No newline at end of file diff --git a/sys/widgets/connection_sidebar.php b/sys/widgets/connection_sidebar.php index b777f7a..d6325e4 100644 --- a/sys/widgets/connection_sidebar.php +++ b/sys/widgets/connection_sidebar.php @@ -211,7 +211,7 @@ class Connection_Sidebar extends \wxPanel { // Add Images to the Image list foreach(glob(OSM_RESOURCE_DIR.'/images/*.xpm') as $path) { - //$img = new \wxBitmap($path); + //$img = new \wxBitmap(file_get_contents($path)); //$this->img_list->Add($img); }