FileReader bug #73

Closed
Asp3ctus opened this Issue Jul 9, 2012 · 3 comments

Projects

None yet

3 participants

@Asp3ctus
Asp3ctus commented Jul 9, 2012

PHP Notice:  Use of undefined constant EIO_READDIR_STAT_ORDER - assumed 'EIO_READDIR_STAT_ORDER' in /var/www/phpDtest/phpdaemon/app-web/FileReader.php on line 99
PHP Notice:  Use of undefined constant EIO_READDIR_DENTS - assumed 'EIO_READDIR_DENTS' in /var/www/phpDtest/phpdaemon/app-web/FileReader.php on line 99
PHP Notice:  Undefined index: dents in /var/www/phpDtest/phpdaemon/app-web/FileReader.php on line 81
PHP Warning:  Invalid argument supplied for foreach() in /var/www/phpDtest/phpdaemon/app-web/FileReader.php on line 81
PHP Fatal error:  Using $this when not in object context in /var/www/phpDtest/phpdaemon/app-web/FileReader.php on line 92
[PHPD] W#28596 crashed by error 'Using $this when not in object context' at /var/www/phpDtest/phpdaemon/app-web/FileReader.php:92

I have changeg $this to $req and it fixed this errors and i got the new ones ...

I have configured FileReader as this:
AppResolver
if (preg_match('^/(Test)/', $req->attrs->server['DOCUMENT_URI'], $m)) {
Daemon::log($m[1]);
$req->attrs->server['FR_PATH'] = "file:///"; <--- i have tried with file:: and with
$req->attrs->server['FR_AUTOINDEX'] = TRUE;
return "FileReader";
}

AND got new errors displayed to console, and in browser empty page:


PHP Notice:  Use of undefined constant EIO_READDIR_STAT_ORDER - assumed 'EIO_READDIR_STAT_ORDER' in /var/www/phpDtest/phpdaemon/app-web/FileReader.php on line 99
PHP Notice:  Use of undefined constant EIO_READDIR_DENTS - assumed 'EIO_READDIR_DENTS' in /var/www/phpDtest/phpdaemon/app-web/FileReader.php on line 99
PHP Notice:  Undefined index: dents in /var/www/phpDtest/phpdaemon/app-web/FileReader.php on line 81
PHP Warning:  Invalid argument supplied for foreach() in /var/www/phpDtest/phpdaemon/app-web/FileReader.php on line 81
PHP Notice:  Undefined index: dents in /var/www/phpDtest/phpdaemon/app-web/FileReader.php on line 164
PHP Warning:  Invalid argument supplied for foreach() in /var/www/phpDtest/phpdaemon/app-web/FileReader.php on line 164
[PHPD] Unexcepted output (len. 1265): ' 
 
 
<title>Index of /</title> 
<style type="text/css"> 
a, a:active {text-decoration: none; color: blue;}
a:visited {color: #48468F;}
a:hover, a:focus {text-decoration: underline; color: red;}
body {background-color: #F5F5F5;}
h2 {margin-bottom: 12px;}
table {margin-left: 12px;}
th, td { font: 90% monospace; text-align: left;}
th { font-weight: bold; padding-right: 14px; padding-bottom: 3px;}
td {padding-right: 14px;}
td.s, th.s {text-align: right;}
div.list { background-color: white; border-top: 1px solid #646464; border-bottom: 1px solid #646464; padding-top: 10px; padding-bottom: 14px;}
div.foot { font: 90% monospace; color: #787878; padding-top: 4px;}
</style> 
 
 
Welcome!

Index of /

Name Type
Parent Directory/ Directory
phpDaemon/0.6.0
' [PHPD] appInstantiate() failed. Class not exists. PHP Notice: Undefined property: HTTPServerConnection::$req in /var/www/phpDtest/phpdaemon/lib/HTTPServerConnection.php on line 71 [PHPD] Unexpected input (HTTP request)

AND any HTTP request is folowed this errors in console, for Example the localhost/Example/ works but this error in console


[PHPD] appInstantiate() failed. Class not exists.
PHP Notice:  Undefined property: HTTPServerConnection::$req in /var/www/phpDtest/phpdaemon/lib/HTTPServerConnection.php on line 71
[PHPD] Unexpected input (HTTP request).

@kakserpom
Owner

It happens because you have not installed peci-eio. I'm gonna fix it.

@dgonlv
dgonlv commented Aug 31, 2012

i have the same problem:
PHP Notice: Undefined property: HTTPServerConnection::$req in /var/www/phpDtest/phpdaemon/lib/HTTPServerConnection.php on line 71
[PHPD] Unexpected input (HTTP request). But i just install eio library. How can i solve the problem?

@kakserpom
Owner

Obsolete. New code does not have these problems.

@kakserpom kakserpom closed this Jul 12, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment