some warning when installing PHP #696
Answered
by
shivammathur
mimmi20
asked this question in
Q&A / Help
-
In my tests in one project I get these warnings when installing PHP. Run shivammathur/setup-php@2.24.0
with:
php-version: 8.1
extensions: none, phar, json, opcache, dom, iconv, intl, mbstring, simplexml, tokenizer, xml, xmlwriter :openssl, :mongodb, :amqp, :sockets, :curl
ini-values: opcache.enable=1, opcache.fast_shutdown=0, zend.assertions=1, assert.exception=On, intl.default_locale=de, intl.use_exceptions=1, zend.exception_ignore_args=0
coverage: none
tools: composer:v2
ini-file: production
/usr/bin/bash /home/runner/work/_actions/shivammathur/setup-php/2.24.0/src/scripts/run.sh
==> Setup PHP
✓ PHP Found PHP 8.1.14
==> Setup Extensions
✓ none Disabled all shared extensions
✓ phar Enabled
✓ json Enabled
✓ opcache Enabled
✓ dom Enabled
✓ iconv Enabled
✓ intl Enabled
✓ mbstring Enabled
✓ simplexml Enabled
✓ tokenizer Enabled
✓ xml Enabled
Cannot load Zend OPcache - it was already loaded
PHP Warning: Module "dom" is already loaded in Unknown on line 0
PHP Warning: Module "iconv" is already loaded in Unknown on line 0
PHP Warning: Module "intl" is already loaded in Unknown on line 0
PHP Warning: Module "mbstring" is already loaded in Unknown on line 0
PHP Warning: Module "SimpleXML" is already loaded in Unknown on line 0
PHP Warning: Module "tokenizer" is already loaded in Unknown on line 0
PHP Warning: Module "xml" is already loaded in Unknown on line 0
✓ xmlwriter Installed and enabled
Cannot load Zend OPcache - it was already loaded
PHP Warning: Module "dom" is already loaded in Unknown on line 0
PHP Warning: Module "iconv" is already loaded in Unknown on line 0
PHP Warning: Module "intl" is already loaded in Unknown on line 0
PHP Warning: Module "mbstring" is already loaded in Unknown on line 0
PHP Warning: Module "SimpleXML" is already loaded in Unknown on line 0
PHP Warning: Module "tokenizer" is already loaded in Unknown on line 0
PHP Warning: Module "xml" is already loaded in Unknown on line 0
Cannot load Zend OPcache - it was already loaded
PHP Warning: Module "dom" is already loaded in Unknown on line 0
PHP Warning: Module "iconv" is already loaded in Unknown on line 0
PHP Warning: Module "intl" is already loaded in Unknown on line 0
PHP Warning: Module "mbstring" is already loaded in Unknown on line 0
PHP Warning: Module "SimpleXML" is already loaded in Unknown on line 0
PHP Warning: Module "tokenizer" is already loaded in Unknown on line 0
PHP Warning: Module "tokenizer" is already loaded in Unknown on line 0
PHP Warning: Module "xml" is already loaded in Unknown on line 0
Cannot load Zend OPcache - it was already loaded
PHP Warning: Module "dom" is already loaded in Unknown on line 0
PHP Warning: Module "iconv" is already loaded in Unknown on line 0
PHP Warning: Module "intl" is already loaded in Unknown on line 0
PHP Warning: Module "mbstring" is already loaded in Unknown on line 0
PHP Warning: Module "SimpleXML" is already loaded in Unknown on line 0
PHP Warning: Module "tokenizer" is already loaded in Unknown on line 0
PHP Warning: Module "xml" is already loaded in Unknown on line 0
✓ :curl Disabled
==> Setup Tools
Cannot load Zend OPcache - it was already loaded
PHP Warning: Module "dom" is already loaded in Unknown on line 0
PHP Warning: Module "iconv" is already loaded in Unknown on line 0
PHP Warning: Module "intl" is already loaded in Unknown on line 0
PHP Warning: Module "mbstring" is already loaded in Unknown on line 0
PHP Warning: Module "SimpleXML" is already loaded in Unknown on line 0
PHP Warning: Module "tokenizer" is already loaded in Unknown on line 0
PHP Warning: Module "xml" is already loaded in Unknown on line 0
✓ composer Added composer 2.[5](https://github.com/mimmi20/monolog-factory/actions/runs/4095850504/jobs/7063137133#step:5:5).2
==> Setup Coverage
✓ none Disabled Xdebug and PCOV
==> Add php.ini values
✓ opcache.enable=1 Added to php.ini
✓ opcache.fast_shutdown=0 Added to php.ini
✓ zend.assertions=1 Added to php.ini
✓ assert.exception=On Added to php.ini
✓ intl.default_locale=de Added to php.ini
✓ intl.use_exceptions=1 Added to php.ini
✓ zend.exception_ignore_args=0 Added to php.ini
==> #StandWithUkraine
✓ read-more https://setup-php.com/support-ukraine
...
Run composer require --no-update psr/log:^[2](https://github.com/mimmi20/monolog-factory/actions/runs/4095850504/jobs/7063137133#step:6:2)
composer require --no-update psr/log:^2
shell: /usr/bin/bash -e {0}
env:
COMPOSER_PROCESS_TIMEOUT: 0
COMPOSER_NO_INTERACTION: 1
COMPOSER_NO_AUDIT: 1
Cannot load Zend OPcache - it was already loaded
PHP Warning: Module "dom" is already loaded in Unknown on line 0
PHP Warning: Module "iconv" is already loaded in Unknown on line 0
PHP Warning: Module "intl" is already loaded in Unknown on line 0
PHP Warning: Module "mbstring" is already loaded in Unknown on line 0
PHP Warning: Module "SimpleXML" is already loaded in Unknown on line 0
PHP Warning: Module "tokenizer" is already loaded in Unknown on line 0
PHP Warning: Module "xml" is already loaded in Unknown on line 0
./composer.json has been updated
...
Run vendor/bin/phpunit -c phpunit.xml --no-coverage
vendor/bin/phpunit -c phpunit.xml --no-coverage
shell: /usr/bin/bash -e {0}
env:
COMPOSER_PROCESS_TIMEOUT: 0
COMPOSER_NO_INTERACTION: 1
COMPOSER_NO_AUDIT: 1
CACHE_RESTORE_KEY: Linux-php-8.1.14-composer---optimize-autoloader---prefer-dist---prefer-stable--v-highest-
MSYS: winsymlinks:nativestrict
Cannot load Zend OPcache - it was already loaded
PHP Warning: Module "dom" is already loaded in Unknown on line 0
PHP Warning: Module "iconv" is already loaded in Unknown on line 0
PHP Warning: Module "intl" is already loaded in Unknown on line 0
PHP Warning: Module "mbstring" is already loaded in Unknown on line 0
PHP Warning: Module "SimpleXML" is already loaded in Unknown on line 0
PHP Warning: Module "tokenizer" is already loaded in Unknown on line 0
PHP Warning: Module "xml" is already loaded in Unknown on line 0
Typed property DOMDocument::$documentElement must not be accessed before initialization
Error: Process completed with exit code 1. The pipeline is defined as
Is something wrong with my configuration? |
Beta Was this translation helpful? Give feedback.
Answered by
shivammathur
Feb 5, 2023
Replies: 1 comment
-
@mimmi20 It is trying to enable extensions twice. I will fix this in the next release |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
mimmi20
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@mimmi20 It is trying to enable extensions twice. I will fix this in the next release