Rbac migration script does not pause for an input

Can someone tell me what I am doing wrong? I am using windows 10 professional, PHP 7.4 and MySQL 8. When I run the RBAC migration script, it does not pause for a (Yes|No) input so it can create the tables. It goes straight to the c:\ prompt.

PS C:\projects\www\test> .\yii migrate --migrationPath=@yii/rbac/migrations
Yii Migration Tool (based on Yii v2.0.34)

Total 3 new migrations to be applied:
m140506_102106_rbac_init
m170907_052038_rbac_add_index_on_auth_assignment_user_id
m180523_151638_rbac_updates_indexes_without_prefix

Apply the above migrations? (yes|no) [no]:
PS C:\projects\www\test>_

I found a bug report on this problem for php 7.4. Seems to be fixed.

https://bugs.php.net/bug.php?id=78883

2 Likes

Thanks @tri! Really appreciate your help. I had other debugging issues as well with xdebug and php 7.4. The debugger kept firing without any debug session being triggered. I have reverted back to php 7.2 and everything works normal again. Thanks again!

ok same problem as mine go and view this

Well I am using Windows 10 Wampserver version 3.2.0 - 64bit - services PHP version 7.2 there’s a problem with initialization I cant input [0] for development or [1] for production. It Just Quits the initialization and i am back to square one.

I have used windows CMD and also gitBash CMD

Installing Yii2 Not Working

Seems the problem cannot be resolved.