Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

多个项目的漏洞导出时会报错(急) #20

Closed
1n7erface opened this issue Jan 10, 2023 · 1 comment
Closed

多个项目的漏洞导出时会报错(急) #20

1n7erface opened this issue Jan 10, 2023 · 1 comment

Comments

@1n7erface
Copy link

Fatal error: Uncaught Error: Class 'ZipArchive' not found in /var/www/index/controllers/ProductsControllers.php:745 Stack trace: #0 /var/www/index.php(195): ProductsControllers->download_index() #1 {main} thrown in /var/www/index/controllers/ProductsControllers.php on line 745
image
image

@1n7erface
Copy link
Author

`FROM bugrepoter/php-7.3:1.0

Arguments defined in docker-compose.y

RUN apt-get install -y
libzip-dev
&& docker-php-ext-install zip

Clear cache

RUN apt-get clean && rm -rf /var/lib/apt/lists/*

Install PHP extensions

RUN docker-php-ext-install pdo_mysql mbstring exif pcntl bcmath gd
`

解决了,修改php的dockerfile为上面的,重新启动就好了

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

No branches or pull requests

1 participant