indeyets / appserver-in-php

Generic HTTP applications approach for PHP5.3+ (inspired by Rack and WSGI)
BSD 3-Clause "New" or "Revised" License
291 stars 23 forks source link

Middleware/HTTPParser: Cannot re-assign auto-global variable _POST #28

Closed feri closed 12 years ago

feri commented 12 years ago

AiP in MeeGo Apps produces a fatal error when starting: Fatal error: Cannot re-assign auto-global variable _POST in /usr/share/php/AiP/Middleware/HTTPParser.php on line 91

Environment: Debian unstable (x86_64 arch)

$ php -v PHP 5.4.4-7 (cli) (built: Aug 30 2012 08:57:09) Copyright (c) 1997-2012 The PHP Group Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies with Xdebug v2.2.1, Copyright (c) 2002-2012, by Derick Rethans

indeyets commented 12 years ago

@feri looks like you use some old version. Code https://github.com/indeyets/appserver-in-php/blob/master/AiP/Middleware/HTTPParser.php#L91 was fixed long time ago by @bergie

recent version of AiP can be easily installed via composer: http://packagist.org/packages/aip/aip