Skip to content

Conversation

@dg
Copy link
Member

@dg dg commented May 28, 2015

[Closes #229]

@dg dg changed the title ZendPhpInterpreter: throws exception on PHP startup errors [Closes #229] ZendPhpInterpreter: throws exception on PHP startup errors May 28, 2015
@dg dg changed the title ZendPhpInterpreter: throws exception on PHP startup errors ZendPhpInterpreter: throws exception on PHP startup errors [WIP] May 28, 2015
@milo
Copy link
Member

milo commented Jun 10, 2015

👍 Tested on Windows and Debian. Maybe replace \r\n by ' ' and trim.

One "problem" is, that with php-cgi.exe on Windows, the error message I get with php.ini extension="foo.bar.dll" is:

$ Tester/tester -c php.ini tests/
 _____ ___  ___ _____ ___  ___
|_   _/ __)( __/_   _/ __)| _ )
  |_| \___ /___) |_| \___ |_|_\  v1.4.0


Error: PHP startup errors: PHP Warning:  PHP Startup:  in Unknown on line 0
.

With php.exe it works fine with appropriate message, on Debian CGI and CLI works fine.

$ Tester/tester -p php -c php.ini tests/
 _____ ___  ___ _____ ___  ___
|_   _/ __)( __/_   _/ __)| _ )
  |_| \___ /___) |_| \___ |_|_\  v1.4.0


Error: PHP startup errors: PHP Warning:  PHP Startup: Unable to load dynamic library 'ext\foo.bar.dll' - Uvedenř modul nebyl nalezen.
 in Unknown on line 0
.

IMHO nothing we can do with it since php-cgi.exe -c php.ini produces the same.

@dg dg force-pushed the pull-php-errors branch from 77f7a45 to 2e852a3 Compare July 13, 2015 09:40
dg added a commit that referenced this pull request Jul 13, 2015
ZendPhpInterpreter: throws exception on PHP startup errors [WIP]
@dg dg merged commit 3bea49d into nette:master Jul 13, 2015
@dg dg deleted the pull-php-errors branch July 13, 2015 09:42
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

Successfully merging this pull request may close these issues.

Somehow inform user that PHP extension cannot be loaded

2 participants