summaryrefslogtreecommitdiff
path: root/tests/php/php_alias.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/php/php_alias.sh')
-rwxr-xr-xtests/php/php_alias.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/php/php_alias.sh b/tests/php/php_alias.sh
new file mode 100755
index 0000000..2c028ca
--- /dev/null
+++ b/tests/php/php_alias.sh
@@ -0,0 +1,16 @@
+#!/bin/bash
+#!/bin/bash
+#
+# this only alias to comand "/usr/bin/php -d enable_dl=On -d extension_dir=../ext_dir -d extension=extfortest.so"
+# Designed to simplify debugging of tests
+# You can get the same thing using normal aliases: `alias php_alias="php -d enable_dl=On -d extension_dir=../ext_dir -d extension=extfortest.so"`
+# Exemlple toese: $ ./php_alias.sh dbg.php
+#
+
+if [ ! $1 ]
+then
+ echo "Required the path to php file"
+ exit;
+fi
+
+/usr/bin/php -d enable_dl=On -d extension_dir=../ext_dir -d extension=extfortest.so $1