Composer crash on ZS 8.0.2 PHP 5.6 (Windows)

General discussion forum for the Zend Server
Post Reply
bran5109
Posts: 1
Joined: Wed Mar 04, 2015 7:31 pm

Composer crash on ZS 8.0.2 PHP 5.6 (Windows)

Post by bran5109 » Wed Mar 04, 2015 8:29 pm

Has anybody else run into this? I installed ZS 8.0.2 w/PHP 5.6 and composer crashes with this message:

[Zend Utils 2015-03-04T11:45:09] Process 2608 has exited unexpectedly. Minidump is at [snip]

It seems to work fine on ZS 8.0.2 with PHP 5.5 or XAMPP with PHP 5.6. Attached is a screen shot. All I have to do to reproduce is in a temp directory "composer init" and "composer require slim/slim".

Thanks!
Brandon

Version that does not work:

Code: Select all

PHP 5.6.5 (cli) (built: Jan 29 2015 08:58:28) 
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2014 Zend Technologies
    with Zend OPcache v7.0.4-dev, Copyright (c) 1999-2014, by Zend Technologies
    with Zend Extension Manager v8.0.0, Copyright (c) 2003-2014, by Zend Technologies
    - with Zend Data Cache v8.0.0, Copyright (c) 2004-2014, by Zend Technologies [loaded] [licensed] [disabled]
    - with Zend Job Queue v8.0.0, Copyright (c) 2004-2014, by Zend Technologies [loaded] [licensed] [enabled]
    - with Zend Session Clustering v8.0.0, Copyright (c) 2004-2014, by Zend Technologies [loaded] [licensed] [disabled]
    - with Zend Utils v8.0.0, Copyright (c) 2004-2014, by Zend Technologies [loaded] [licensed] [enabled]
    - with Zend Code Tracing v8.0.0, Copyright (c) 2009-2014, by Zend Technologies [loaded] [licensed] [enabled]
    - with Zend Server Z-Ray v8.0.0, Copyright (c) 1999-2014, by Zend Technologies [loaded] [licensed] [enabled]
    - with Zend Monitor v8.0.0, Copyright (c) 1999-2014, by Zend Technologies [loaded] [licensed] [disabled]
    - with Zend Debugger v8.0.0, Copyright (c) 1999-2014, by Zend Technologies [loaded] [licensed] [enabled]
    - with Zend Page Cache v8.0.0, Copyright (c) 2004-2014, by Zend Technologies [loaded] [licensed] [disabled]
    - with Zend Monitor UI v8.0.0, Copyright (c) 2004-2014, by Zend Technologies [loaded] [licensed] [enabled]
Working version:

Code: Select all

PHP 5.5.21 (cli) (built: Jan 29 2015 09:04:18) 
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
    with Zend OPcache v7.0.4-dev, Copyright (c) 1999-2014, by Zend Technologies
    with Zend Extension Manager v8.0.0, Copyright (c) 2003-2014, by Zend Technologies
    - with Zend Data Cache v8.0.0, Copyright (c) 2004-2014, by Zend Technologies [loaded] [licensed] [disabled]
    - with Zend Job Queue v8.0.0, Copyright (c) 2004-2014, by Zend Technologies [loaded] [licensed] [enabled]
    - with Zend Session Clustering v8.0.0, Copyright (c) 2004-2014, by Zend Technologies [loaded] [licensed] [disabled]
    - with Zend Utils v8.0.0, Copyright (c) 2004-2014, by Zend Technologies [loaded] [licensed] [enabled]
    - with Zend Code Tracing v8.0.0, Copyright (c) 2009-2014, by Zend Technologies [loaded] [licensed] [enabled]
    - with Zend Server Z-Ray v8.0.0, Copyright (c) 1999-2014, by Zend Technologies [loaded] [licensed] [enabled]
    - with Zend Monitor v8.0.0, Copyright (c) 1999-2014, by Zend Technologies [loaded] [licensed] [disabled]
    - with Zend Debugger v8.0.0, Copyright (c) 1999-2014, by Zend Technologies [loaded] [licensed] [enabled]
    - with Zend Page Cache v8.0.0, Copyright (c) 2004-2014, by Zend Technologies [loaded] [licensed] [disabled]
    - with Zend Monitor UI v8.0.0, Copyright (c) 2004-2014, by Zend Technologies [loaded] [licensed] [enabled]
XAMPP working version:

Code: Select all

PHP 5.6.3 (cli) (built: Nov 12 2014 17:18:08) 
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2014 Zend Technologies
Attachments
composer crash.PNG
composer crash.PNG (153.88 KiB) Viewed 6056 times

User avatar
zend_eyalt
Posts: 285
Joined: Thu Jan 22, 2009 3:16 pm

Re: Composer crash on ZS 8.0.2 PHP 5.6 (Windows)

Post by zend_eyalt » Fri Mar 06, 2015 2:51 pm

Hi there,

Thank you for the detailed report about this problem - we have indeed found a bug lately with Zend Server 8.x, PHP 5.6 and composer running on Windows.

I very much hope it would be fixed as part of the next Zend Server release - will update here once there's any news about this issue.

Regards
Eyal

brun133
Posts: 1
Joined: Fri Mar 13, 2015 8:40 am

Re: Composer crash on ZS 8.0.2 PHP 5.6 (Windows)

Post by brun133 » Fri Mar 13, 2015 8:43 am

Hi!

Any news anout that? I have the same problem here.

kind regards.

chielsen
Posts: 17
Joined: Sat Aug 01, 2009 10:53 pm

Re: Composer crash on ZS 8.0.2 PHP 5.6 (Windows)

Post by chielsen » Tue Mar 24, 2015 3:46 pm

Same here. It's a joke.. This highly tested piece of software breaks on one of the most common scenarios.

User avatar
zend_eyalt
Posts: 285
Joined: Thu Jan 22, 2009 3:16 pm

Re: Composer crash on ZS 8.0.2 PHP 5.6 (Windows)

Post by zend_eyalt » Wed Apr 01, 2015 9:18 am

Some good news!

We have found the problem, and it has to do with a PHP garbage collection bug which is exposed in certain PHP environments.
This PHP fix will be part of Zend Server 8.0.x hotfix which will be released during April.

Meanwhile, as an immediate workaround to make composer working, you can edit your composer batch file ( say "C:\ProgramData\ComposerSetup\bin\composer.bat"), and add to it the zend.enable_gc=0 option as in:

Code: Select all

@ECHO OFF
php -d zend.enable_gc=0 "%~dp0composer.phar" %*
Alternatively, you might turn off PHP garbage collection all together, by setting:

Code: Select all

zend.enable_gc=Off
(preferably do so from the Zend Server UI "PHP extensions" page).

User avatar
zend_eyalt
Posts: 285
Joined: Thu Jan 22, 2009 3:16 pm

Re: Composer crash on ZS 8.0.2 PHP 5.6 (Windows)

Post by zend_eyalt » Thu Apr 30, 2015 9:58 am

Some more good news:
Latest release of ZS 8.0 (8.0.2 upgrade 1) which was released recently, includes the PHP fix for this problem - you can download the upgrade from here.

el6942
Posts: 1
Joined: Thu Dec 10, 2015 7:01 pm

Re: Composer crash on ZS 8.0.2 PHP 5.6 (Windows)

Post by el6942 » Thu Dec 10, 2015 7:05 pm

zend_eyalt answer seems definitely to be the right one

Post Reply