summaryrefslogtreecommitdiff
path: root/tests/php/php_alias.sh
blob: 439317296591c8399ab1ae01e4efd5ea4512dfcf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/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

LD_LIBRARY_PATH="$(cd $PWD/../.. && echo $PWD):${LD_LIBRARY_PATH}"
export LD_LIBRARY_PATH

/usr/bin/php -d extension_dir=../ext_dir -d extension=extfortest.so -d ini7=47 -d ini1=ReValIni1 -d ini2=ReValIni2 $1 $2 $3 $4 $5