phinx icon indicating copy to clipboard operation
phinx copied to clipboard

PHP7 Weird bug

Open frazr opened this issue 10 years ago • 4 comments

Getting glob_brace error running phinx 0.5.3 which is default version in CakePHP 3 on first server, if i fix the issue in Manager.php the migrations goes through without errors.

On second server there is no error in Manager.php with the same PHP version as you can see in the link below. Instead the migration crashes on a MigrationFile which is also included in the gist below.

https://gist.github.com/anonymous/a54c4fb2dd52b1ec2541878da84394e0

frazr avatar Sep 30 '16 15:09 frazr

What kind of a server are you using? According to PHP docs:

Note: The GLOB_BRACE flag is not available on some non GNU systems, like Solaris.

shadowhand avatar Oct 15 '16 12:10 shadowhand

https://github.com/robmorgan/phinx/commit/b4cc87eee3d398539c48c39a546438ece85ddb71

This has been fixed. Can you try upgrading Phinx?

rquadling avatar Oct 28 '16 15:10 rquadling

If you do upgrade, please read https://github.com/robmorgan/phinx/blob/0.6.x-dev/UPGRADE_0.6.md

rquadling avatar Oct 28 '16 15:10 rquadling

Closing issue as resolved. Please re-open with additional details if you still experience the problem once you've upgraded.

rquadling avatar Nov 16 '16 18:11 rquadling