Author: 永夜
-
Post Views: 18 1. Run Composer in Laravel 5.4 and report an error: RuntimeException.[运行时异常]require-dev.mikey179/vfsstream is invalid and should not contain uppercase characters. Please use mikey179/vfsstrea instead. as shown in Figure 1 2. Check composer.json. Contains: “mikey179/vfsstream”: “v1.5.0”,. 3. Check the URL:https://packagist.org/packages/mikey179/vfsstream. A virtual file system that simulates a real file system in unit tests. 4. Check composer.json. Modification: “mikey179/vfsstream”: “v1.5.0”,.…
-
Post Views: 16 1. URL:https://www.php.net/manual/zh/features.commandline.introduction.php. The file name of the CGI version is php-cli.exe. It should be modified to: the file name of the CGI version is php-cgi.exe. as shown in Figure 1 2. Switch to the English page, the CGI version is Distributed as php-cgi.exe. Therefore, you can determine the Chinese page error. as shown in Figure 2 3.…
-
Post Views: 18 1. Composer installs Workerman successfully. as shown in Figure 1 2. The Linux system can use the following script to test whether the local PHP environment meets the workerman operation requirements. curl-sshttp://www.workerman.net/check.php| PHP. All display OK, it means that the Workerman requirements are met. as shown in Figure 2 3. Refer to the implementation of colleagues, edit…
-
Post Views: 19 1. Execute the command line in Windows 10 and report an error: Call to undefined function App\Console\Commands\POSIX_Getpid(). as shown in Figure 1 2. Reference URL:https://www.php.net/manual/zh/intro.posix.php. This extension is not available on Windows platforms. You can also try using getMyPid() instead. as shown in Figure 2 3. POSIX_GETPID — Returns the current process ID. Decide to replace with:…
-
Post Views: 21 1. In Yii 2.0, create a primary key column based on database migration. $this->primaryKey() is used by default. The created primary key column is int(11) by default. as shown in Figure 1 2. Some colleagues plan to create a primary key column of type VARCHAR(32). as shown in Figure 2 3. Method primaryKey() only supports passing in…
-
Post Views: 19 1. In the channel release, an error is reported: sqlstate[01000]: Warning: 1265 data truncatedPUB_LOG_CODEat row 1. as shown in Figure 1 2. SQL error, the root is the table: cpa_pre_pub_log field: pub_log_code type: int(11), but the inserted value is a string: 42s22. as shown in Figure 2 3. Value: 42s22 is taken from: $e->getCode(). as shown in…