1

I'm unable to replicate the bug on anything other than Chrome running linux (14.04), but it has a 100% rate while Chrome/Ubuntu.

Using PHP built in server (PHP -S localhost:43594)

The error is:

Invalid request (Unexpected EOF)

The code I'm executing is this (although it does it with any PHP I run through the local server)

<?php namespace CMS\classes\user;
    require_once "User.php";
    class UserFactory {
        public function create($username, $password = null, $rights = 0) {
            return new User($username, $password, $rights);
        }

        public function delete($username) {

        }

        public function get($username) {

        }
    }
?>

It's important to note that the error occurs about 20 seconds after the scripts execution.

Jack hardcastle
  • 2,748
  • 4
  • 22
  • 40
  • 1
    https://bugs.php.net/bug.php?id=60471 might help – code-jaff Feb 12 '15 at 17:23
  • 1
    possible duplicate of [PHP local server Invalid request (Unexpected EOF)](http://stackoverflow.com/questions/29141240/php-local-server-invalid-request-unexpected-eof) – kenorb Mar 19 '15 at 10:54

0 Answers0