Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined offset in AcceptMediaRange.php #281

Open
jlbooker opened this issue Jan 13, 2017 · 2 comments
Open

Undefined offset in AcceptMediaRange.php #281

jlbooker opened this issue Jan 13, 2017 · 2 comments
Assignees

Comments

@jlbooker
Copy link
Contributor

[2017-01-12 16:40]Undefined offset: 1 in /var/www/phpwebsite/src/phpws2/src/Http/AcceptMediaRange.php on line 24

@jlbooker jlbooker self-assigned this Jan 13, 2017
@jlbooker
Copy link
Contributor Author

This could be a php7 compatibility issue. The offending line is:
list($this->type, $this->subtype) = explode(self::TYPESEP, $contentType);

The list() method had significant changes in php7, but need to research that more to see if it's the cause.

@jlbooker
Copy link
Contributor Author

Just kidding. This came from the production logs, and production is not running php7.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant