summaryrefslogtreecommitdiff
path: root/tests/php
diff options
context:
space:
mode:
authorvalmat <ufabiz@gmail.com>2014-04-08 08:53:35 +0600
committervalmat <ufabiz@gmail.com>2014-04-08 08:53:35 +0600
commit08ed8866a5bba0b23a8d5587116a968512df2568 (patch)
treef42438c1963982db43e0e232c8e9610ff912fba1 /tests/php
parent7ca2d3f9e4d584d8990e4e33eb3b531a06dc2474 (diff)
Ini entries emplemented (issues #64)
Diffstat (limited to 'tests/php')
-rw-r--r--tests/php/dbg.php54
-rwxr-xr-xtests/php/php_alias.sh2
2 files changed, 44 insertions, 12 deletions
diff --git a/tests/php/dbg.php b/tests/php/dbg.php
index 003c494..8de0bb8 100644
--- a/tests/php/dbg.php
+++ b/tests/php/dbg.php
@@ -13,14 +13,46 @@
-var_dump( TestBaseClass\MyClass::CONSTANT1 );
-var_dump( TestBaseClass\MyClass::EXP );
-var_dump( TestBaseClass\MyClass::CONSTANT2 );
-var_dump( TestBaseClass\MyClass::CONSTANT3 );
-
-var_dump( TestBaseClass\MyClass::$StatProp1 );
-var_dump( TestBaseClass\MyClass::$Exp );
-var_dump( TestBaseClass\MyClass::$StatProp2 );
-var_dump( TestBaseClass\MyClass::$StatProp3 );
-TestBaseClass\MyClass::$StatProp2 = "otherval";
-var_dump( TestBaseClass\MyClass::$StatProp2 );
+echo "\x1b[1;31m";
+(new ReflectionExtension('extension_for_tests') )->info();
+echo "\x1b[0m";
+echo "\x1b[0;34m";
+var_export( ini_get_all ( 'extension_for_tests' ) );
+echo "\x1b[0m", PHP_EOL;
+exit;
+
+TestIniEntries\iniTest1();
+
+//ini_set("extension_for_tests.some_string3", 'RFVBGT') ;
+echo PHP_EOL;
+echo "extension_for_tests.some_string ={{" , ini_get("extension_for_tests.some_string") , "}}", PHP_EOL;
+echo "extension_for_tests.some_string2 ={{" , ini_get("extension_for_tests.some_string2") , "}}", PHP_EOL;
+echo "extension_for_tests.some_string3 ={{" , ini_get("extension_for_tests.some_string3") , "}}", PHP_EOL;
+echo "extension_for_tests.some_string3 ={{" , ini_get("extension_for_tests.some_bool") , "}}", PHP_EOL;
+
+
+echo "\x1b[1;31m";
+(new ReflectionExtension('extension_for_tests') )->info();
+echo "\x1b[0m";
+
+echo "\x1b[0;34m";
+var_export( ini_get_all ( 'extension_for_tests' ) );
+echo "\x1b[0m", PHP_EOL;
+
+ini_set("extension_for_tests.some_string3", 'RFVBGT') ;
+echo "extension_for_tests.some_string3 ={{" , ini_get("extension_for_tests.some_string3") , "}}", PHP_EOL;
+ini_restore ( 'extension_for_tests.some_string3' );
+echo "extension_for_tests.some_string3 ={{" , ini_get("extension_for_tests.some_string3") , "}}", PHP_EOL;
+
+
+echo "extension_for_tests.some_bool :";
+var_dump(ini_get("extension_for_tests.some_bool"));
+echo PHP_EOL;
+
+ini_set("extension_for_tests.some_bool", 'off');
+
+echo "extension_for_tests.some_bool :";
+var_dump(ini_get("extension_for_tests.some_bool"));
+echo PHP_EOL;
+
+//var_export(php_sapi_name());
diff --git a/tests/php/php_alias.sh b/tests/php/php_alias.sh
index f4c7f8f..6947325 100755
--- a/tests/php/php_alias.sh
+++ b/tests/php/php_alias.sh
@@ -16,4 +16,4 @@ 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 $1
+/usr/bin/php -d extension_dir=../ext_dir -d extension=extfortest.so -d ini7=47 -d extension_for_tests.frcli=frcli $1 $2 $3 $4 $5