Annotation of embedaddon/php/ext/oci8/tests/oci8safemode.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Test functionality disabled in safe mode
! 3: --SKIPIF--
! 4: <?php if (!extension_loaded('oci8')) die("skip no oci8 extension"); ?>
! 5: --INI--
! 6: safe_mode=On
! 7: oci8.privileged_connect=On
! 8: --FILE--
! 9: <?php
! 10:
! 11: $c = oci_connect("hr", "hrpwd", "//localhost/XE", null, OCI_SYSDBA);
! 12:
! 13: $r = oci_password_change($c, "hr", "hrpwd", "hrpwd");
! 14:
! 15: echo "Done\n";
! 16: ?>
! 17: --EXPECTF--
! 18: %s: Directive 'safe_mode' is deprecated in PHP 5.3 and greater in Unknown on line 0
! 19:
! 20: Warning: oci_connect(): Privileged connect is disabled in Safe Mode in %s on line %d
! 21:
! 22: Warning: oci_password_change(): is disabled in Safe Mode in %s on line %d
! 23: Done
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>