summaryrefslogtreecommitdiff
path: root/ext/libxml/tests/bug61367-write.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/libxml/tests/bug61367-write.phpt')
-rw-r--r--ext/libxml/tests/bug61367-write.phpt20
1 files changed, 10 insertions, 10 deletions
diff --git a/ext/libxml/tests/bug61367-write.phpt b/ext/libxml/tests/bug61367-write.phpt
index 155c9aba9d..f84de1076b 100644
--- a/ext/libxml/tests/bug61367-write.phpt
+++ b/ext/libxml/tests/bug61367-write.phpt
@@ -1,22 +1,22 @@
--TEST--
Bug #61367: open_basedir bypass in libxml RSHUTDOWN: write test
--SKIPIF--
-<?php if(!extension_loaded('dom')) echo 'skip'; ?>
+<?php if(!extension_loaded('dom')) echo 'skip dom extension not available'; ?>
--INI--
open_basedir=.
--FILE--
<?php
class StreamExploiter {
- public function stream_close ( ) {
- $doc = new DOMDocument;
- $doc->appendChild($doc->createTextNode('hello'));
- var_dump($doc->save(dirname(getcwd()) . '/bad'));
- }
+ public function stream_close ( ) {
+ $doc = new DOMDocument;
+ $doc->appendChild($doc->createTextNode('hello'));
+ var_dump($doc->save(dirname(getcwd()) . '/bad'));
+ }
- public function stream_open ( $path , $mode , $options , &$opened_path ) {
- return true;
- }
+ public function stream_open ( $path , $mode , $options , &$opened_path ) {
+ return true;
+ }
}
var_dump(mkdir('test_bug_61367-write'));
@@ -42,5 +42,5 @@ bool(true)
Warning: DOMDocument::save(): open_basedir restriction in effect. File(%s) is not within the allowed path(s): (.) in %s on line %d
-Warning: DOMDocument::save(%s): failed to open stream: Operation not permitted in %s on line %d
+Warning: DOMDocument::save(%s): Failed to open stream: Operation not permitted in %s on line %d
bool(false)