Someone
public text v1 · immutable#!/usr/bin/php
<?
class mystream {
function stream_open($path, $mode, $options, &$opened_path) {
return true;
}
function dir_opendir($url, $options) {
return true;
}
}
if(!stream_wrapper_register("test", "mystream"))
{
die("test wrapper registration failed");
}
mkdir("test://a");
$dir = opendir("test://a"); //here occur segment fault.