Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 74f4b772aa
Fetching contributors…

Cannot retrieve contributors at this time

21 lines (20 sloc) 0.736 kb
--TEST--
Runkit_Sandbox_Parent Class -- Locked Access
--SKIPIF--
<?php if(!extension_loaded("runkit") || !RUNKIT_FEATURE_SANDBOX) print "skip";
/* May not be available due to lack of TSRM interpreter support */
if(!function_exists("runkit_lint")) print "skip"; ?>
--FILE--
<?php
$one = 1;
$php = new Runkit_Sandbox();
/* read == true is useless without parent_access set */
$php['parent_read'] = true;
$php->ini_set('html_errors',false);
$php->ini_set('display_errors',true);
$php->error_reporting(E_ALL);
$php->eval('$PARENT = new Runkit_Sandbox_Parent;
var_dump($PARENT->one);');
--EXPECTF--
Warning: Unknown: Access to read parent's symbol table is disallowed in Unknown(0) : Runkit_Sandbox Eval Code on line %d
NULL
Jump to Line
Something went wrong with that request. Please try again.