I've installed APC 3.1.13 via PECL on CentOS 7. Everything seems OK.
php -i | grep apc output:
Additional .ini files parsed => /etc/php.d/apcu.ini,
apc
apcu
MMAP File Mask => /tmp/apc.XXXXXX
apc.coredump_unmap => Off => Off
apc.enable_cli => Off => Off
apc.enabled => On => On
apc.entries_hint => 4096 => 4096
apc.gc_ttl => 3600 => 3600
apc.mmap_file_mask => /tmp/apc.XXXXXX => /tmp/apc.XXXXXX
apc.preload_path => no value => no value
apc.rfc1867 => Off => Off
apc.rfc1867_freq => 0 => 0
apc.rfc1867_name => APC_UPLOAD_PROGRESS => APC_UPLOAD_PROGRESS
apc.rfc1867_prefix => upload_ => upload_
apc.rfc1867_ttl => 3600 => 3600
apc.serializer => php => php
apc.shm_segments => 1 => 1
apc.shm_size => 32M => 32M
apc.slam_defense => On => On
apc.smart => 0 => 0
apc.ttl => 0 => 0
apc.use_request_time => On => On
apc.writable => /tmp => /tmp
but Phabricator's issue lists still warn me: PHP Extension 'APC' Not Installed. Is it a false message? What can I do about it?
Make sure you have enabled it in your Apache config
On my box its:
/etc/php5/apache2/conf.d/20-apcu.ini
Running php -i is simply the command line interface, Apache loads it's own extensions.
Related
I made a simple "hello world" with Qt Designer and I compiled it with auto-py-to-exe. No error message during compilation but when I double click on the created executable then I have this in my terminal:
(venv) (base) saltz#saltz:~/Bureau/70 5 applications Qt/test/output$ ./main
qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""
This application failed to start because no Qt platform plugin could be initialized.
Reinstalling the application may fix this problem.
Abandon (core dumped)
I tried this after my research on the internet
root#saltz:/home/saltz/Bureau/70 5 applications Qt/test/output# export
QT_DEBUG_PLUGINS=1
root#saltz:/home/saltz/Bureau/70 5 applications Qt/test/output# ./main
QFactoryLoader::QFactoryLoader() checking directory path "/home/saltz/Bureau/70 5
applications Qt/test/output/platforms" ...
qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""
This application failed to start because no Qt platform plugin could be initialized.
Reinstalling the application may fix this problem.
Abandon (core dumped)
root#saltz:/home/saltz/Bureau/70 5 applications Qt/test/output# ln -sf
/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/ /usr/bin/
root#saltz:/home/saltz/Bureau/70 5 applications Qt/test/output# ./main
QFactoryLoader::QFactoryLoader() checking directory path "/home/saltz/Bureau/70 5
applications Qt/test/output/platforms" ...
qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""
This application failed to start because no Qt platform plugin could be initialized.
Reinstalling the application may fix this problem.
Abandon (core dumped)
root#saltz:/home/saltz/Bureau/70 5 applications Qt/test/output#
and this
base) saltz#saltz:~/Bureau/70 5 applications Qt/test/output$ cd /usr/lib/x86_64-
linux-gnu/qt5/plugins/platforms
(base) saltz#saltz:/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms$ ldd libqxcb.so
linux-vdso.so.1 (0x00007ffda8389000)
libQt5XcbQpa.so.5 => /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5 (0x00007ff6a38e6000)
libQt5Gui.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5 (0x00007ff6a32f6000)
libQt5Core.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 (0x00007ff6a2da6000)
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007ff6a2bbe000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007ff6a29c6000)
libfontconfig.so.1 => /usr/lib/x86_64-linux-gnu/libfontconfig.so.1
(0x00007ff6a297e000)
libfreetype.so.6 => /usr/lib/x86_64-linux-gnu/libfreetype.so.6 (0x00007ff6a28be000)
libQt5DBus.so.5 => /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5 (0x00007ff6a281e000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007ff6a27f6000)
libX11-xcb.so.1 => /usr/lib/x86_64-linux-gnu/libX11-xcb.so.1 (0x00007ff6a27ee000)
libxcb-xinput.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-xinput.so.0
(0x00007ff6a27c6000)
libxcb-icccm.so.4 => /usr/lib/x86_64-linux-gnu/libxcb-icccm.so.4 (0x00007ff6a27be000)
libxcb-image.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-image.so.0 (0x00007ff6a25b6000)
libxcb-shm.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-shm.so.0 (0x00007ff6a25ae000)
libxcb-keysyms.so.1 => /usr/lib/x86_64-linux-gnu/libxcb-keysyms.so.1
(0x00007ff6a25a6000)
libxcb-randr.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-randr.so.0 (0x00007ff6a258e000)
libxcb-render-util.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-render-util.so.0
(0x00007ff6a2586000)
libxcb-render.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-render.so.0
(0x00007ff6a2576000)
libxcb-shape.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-shape.so.0 (0x00007ff6a256e000)
libxcb-sync.so.1 => /usr/lib/x86_64-linux-gnu/libxcb-sync.so.1 (0x00007ff6a255e000)
libxcb-xfixes.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-xfixes.so.0
(0x00007ff6a254e000)
libxcb-xinerama.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-xinerama.so.0
(0x00007ff6a2546000)
libxcb-xkb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb-xkb.so.1 (0x00007ff6a2526000)
libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1 (0x00007ff6a24f6000)
libXrender.so.1 => /usr/lib/x86_64-linux-gnu/libXrender.so.1 (0x00007ff6a22e6000)
libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 (0x00007ff6a21a6000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007ff6a2056000)
libSM.so.6 => /usr/lib/x86_64-linux-gnu/libSM.so.6 (0x00007ff6a2046000)
libICE.so.6 => /usr/lib/x86_64-linux-gnu/libICE.so.6 (0x00007ff6a2026000)
libxkbcommon-x11.so.0 => /usr/lib/x86_64-linux-gnu/libxkbcommon-x11.so.0
(0x00007ff6a2016000)
libxkbcommon.so.0 => /usr/lib/x86_64-linux-gnu/libxkbcommon.so.0 (0x00007ff6a1fce000)
libglib-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007ff6a1e9e000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007ff6a1e7e000)
libGL.so.1 => /usr/lib/x86_64-linux-gnu/libGL.so.1 (0x00007ff6a1df6000)
libpng16.so.16 => /usr/lib/x86_64-linux-gnu/libpng16.so.16 (0x00007ff6a1dbe000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007ff6a1d9e000)
libharfbuzz.so.0 => /usr/lib/x86_64-linux-gnu/libharfbuzz.so.0 (0x00007ff6a1c96000)
libicui18n.so.66 => /usr/lib/x86_64-linux-gnu/libicui18n.so.66 (0x00007ff6a1996000)
libicuuc.so.66 => /usr/lib/x86_64-linux-gnu/libicuuc.so.66 (0x00007ff6a17ae000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007ff6a17a6000)
libpcre2-16.so.0 => /usr/lib/x86_64-linux-gnu/libpcre2-16.so.0 (0x00007ff6a171e000)
libdouble-conversion.so.3 => /usr/lib/x86_64-linux-gnu/libdouble-conversion.so.3
(0x00007ff6a1706000)
/lib64/ld-linux-x86-64.so.2 (0x00007ff6a3ac6000)
libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1 (0x00007ff6a16d6000)
libuuid.so.1 => /lib/x86_64-linux-gnu/libuuid.so.1 (0x00007ff6a16c6000)
libdbus-1.so.3 => /lib/x86_64-linux-gnu/libdbus-1.so.3 (0x00007ff6a166e000)
libxcb-util.so.1 => /usr/lib/x86_64-linux-gnu/libxcb-util.so.1 (0x00007ff6a1466000)
libXau.so.6 => /usr/lib/x86_64-linux-gnu/libXau.so.6 (0x00007ff6a145e000)
libXdmcp.so.6 => /usr/lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007ff6a1456000)
libbsd.so.0 => /usr/lib/x86_64-linux-gnu/libbsd.so.0 (0x00007ff6a1436000)
libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007ff6a13be000)
libGLdispatch.so.0 => /usr/lib/x86_64-linux-gnu/libGLdispatch.so.0
(0x00007ff6a1306000)
libGLX.so.0 => /usr/lib/x86_64-linux-gnu/libGLX.so.0 (0x00007ff6a12ce000)
libgraphite2.so.3 => /usr/lib/x86_64-linux-gnu/libgraphite2.so.3 (0x00007ff6a129e000)
libicudata.so.66 => /usr/lib/x86_64-linux-gnu/libicudata.so.66 (0x00007ff69f7d6000)
libsystemd.so.0 => /lib/x86_64-linux-gnu/libsystemd.so.0 (0x00007ff69f726000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007ff69f716000)
liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007ff69f6e6000)
liblz4.so.1 => /usr/lib/x86_64-linux-gnu/liblz4.so.1 (0x00007ff69f6be000)
libgcrypt.so.20 => /usr/lib/x86_64-linux-gnu/libgcrypt.so.20 (0x00007ff69f59e000)
libgpg-error.so.0 => /lib/x86_64-linux-gnu/libgpg-error.so.0 (0x00007ff69f576000)
(base) saltz#saltz:/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms$
But I don't understand the "ldd libxcb.so" command .
What can I do now ? My OS is lubuntu 20.04 .
i have the same problem with gambas3.
This application failed to start because it could not find or load the Qt platform plugin "xcb".
ldd the file /usr/lib/qt5/plugins/platforms/libqxcb.so
gaves missing libraries
libxcb-render-util.so.0 => not found
libxcb-image.so.0 => not found
libxcb-icccm.so.4 => not found
installing them fixes the problem.-
I'm getting an error such as this after updating Woocommerce to its latest version.
PayPal error (10002): An error (10002) occurred while processing your PayPal payment. Please contact the store owner for assistance.
This is my error log:
06-05-2020 # 15:33:45 - WC_Gateway_PPEC_Client::_request: remote request to https://api-3t.paypal.com/nvp with params: Array
(
[LOGOIMG] => https://public-health-safety.com/wp-content/uploads/2019/06/PHS-Logo-150x72.jpg
[HDRIMG] =>
[PAGESTYLE] =>
[BRANDNAME] => PHS
[RETURNURL] => https://public-health-safety.com/checkout/?woo-paypal-return=true
[CANCELURL] => https://public-health-safety.com/cart/?woo-paypal-cancel=true
[LANDINGPAGE] => Login
[SOLUTIONTYPE] => Sole
[PAYMENTREQUEST_0_PAYMENTACTION] => sale
[PAYMENTREQUEST_0_INSURANCEAMT] => 0
[PAYMENTREQUEST_0_HANDLINGAMT] => 0
[PAYMENTREQUEST_0_CUSTOM] =>
[PAYMENTREQUEST_0_INVNUM] =>
[PAYMENTREQUEST_0_CURRENCYCODE] => USD
[PAYMENTREQUEST_0_AMT] => 190
[PAYMENTREQUEST_0_ITEMAMT] => 190
[PAYMENTREQUEST_0_SHIPPINGAMT] => 0
[PAYMENTREQUEST_0_TAXAMT] => 0
[PAYMENTREQUEST_0_SHIPDISCAMT] => 0
[NOSHIPPING] => 0
[EMAIL] => phsinc33#yahoo.com
[PAYMENTREQUEST_0_SHIPTONAME] =>
[PAYMENTREQUEST_0_SHIPTOSTREET] => 1528 W Adams
[PAYMENTREQUEST_0_SHIPTOSTREET2] =>
[PAYMENTREQUEST_0_SHIPTOCITY] => Chicago
[PAYMENTREQUEST_0_SHIPTOSTATE] => IL
[PAYMENTREQUEST_0_SHIPTOZIP] => 60607
[PAYMENTREQUEST_0_SHIPTOCOUNTRYCODE] => US
[PAYMENTREQUEST_0_SHIPTOPHONENUM] => 3124910081
[L_PAYMENTREQUEST_0_NAME0] => AA 20-0608 - Asbestos Awareness 4-hour Training CAMICB
[L_PAYMENTREQUEST_0_DESC0] => ASBESTOS AWARENESS 4-HR TRAINING
Qualifies:
Per requirement of Community Association Managers International Certification
[L_PAYMENTREQUEST_0_QTY0] => 2
[L_PAYMENTREQUEST_0_AMT0] => 95
[L_PAYMENTREQUEST_0_NUMBER0] =>
[METHOD] => SetExpressCheckout
[VERSION] => 120.0
[USER] =>
[PWD] =>
[SIGNATURE] =>
)
06-05-2020 # 15:33:45 - WC_Gateway_PPEC_Client::_process_response: acknowleged response body: Array
(
[TIMESTAMP] => 2020-06-05T20:33:45Z
[CORRELATIONID] => ca25e49242d8a
[ACK] => Failure
[VERSION] => 120.0
[BUILD] => 54596016
[L_ERRORCODE0] => 10002
[L_SHORTMESSAGE0] => Authentication/Authorization Failed
[L_LONGMESSAGE0] => You do not have permissions to make this API call
[L_SEVERITYCODE0] => Error
)
Please help!
It appears as though you need to set your API credentials (User/Password/Signature).
They can be obtained via https://www.paypal.com/api
I am using the WP mail SMTP (0.11.2) plugin.
usingWordpress4.9.1
When I sent my email it gives me this error SMTP -> ERROR: Failed to connect to server or Could not authenticate.
How can I fix it?
C:\wamp64\www\wordpress\wp-content\plugins\wp-mail-smtp\wp_mail_smtp.php:258:boolean false
Here is my testmail debuging info:
PHPMailer Object
(
[Version] => 5.2.22
[Priority] =>
[CharSet] => UTF-8
[ContentType] => text/plain
[Encoding] => 8bit
[ErrorInfo] => SMTP connect() failed.
https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
[From] => xxxxxxxxxx#gmail.com
[FromName] => 搖滾俱樂部
[Sender] =>
[ReturnPath] =>
[Subject] => WP Mail SMTP: Test mail to bb5566123com#yahoo.com.tw
[Body] => 這封測試郵件由 WordPress 外掛 WP Mail SMTP 自動產生。
[AltBody] =>
[Ical] =>
[MIMEBody:protected] => 這封測試郵件由 WordPress 外掛 WP Mail SMTP 自動產生。
[MIMEHeader:protected] => Date: Fri, 8 Dec 2017 14:51:09 +0000
To: xxxxxxxxx#yahoo.com.tw
From: =?UTF-8?B?5pCW5ru+5L+x5qiC6YOo?=
Subject: WP Mail SMTP: Test mail to bb5566123com#yahoo.com.tw
Message-ID: <1d6e4a91953547c850de852e798ccbba#club3.idv.tw>
X-Mailer: PHPMailer 5.2.22 (https://github.com/PHPMailer/PHPMailer)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
[mailHeader:protected] =>
[WordWrap] => 0
[Mailer] => smtp
[Sendmail] => /usr/sbin/sendmail
[UseSendmailOptions] => 1
[PluginDir] =>
[ConfirmReadingTo] =>
[Hostname] =>
[MessageID] =>
[MessageDate] => Fri, 8 Dec 2017 14:51:09 +0000
[Host] => smtp.gmail.com
[Port] => 465
[Helo] =>
[SMTPSecure] => ssl
[SMTPAutoTLS] => 1
[SMTPAuth] => 1
[SMTPOptions] => Array
(
)
[Username] => xxxxxxxxxxx#gmail.com
[Password] => xxxxxxxxxxxx
[AuthType] =>
[Realm] =>
[Workstation] =>
[Timeout] => 300
[SMTPDebug] => 0
[Debugoutput] => echo
[SMTPKeepAlive] =>
[SingleTo] =>
[SingleToArray] => Array
(
)
[do_verp] =>
[AllowEmpty] =>
[LE] =>
[DKIM_selector] =>
[DKIM_identity] =>
[DKIM_passphrase] =>
[DKIM_domain] =>
[DKIM_private] =>
[DKIM_private_string] =>
[action_function] =>
[XMailer] =>
[smtp:protected] => SMTP Object
(
[Version] => 5.2.22
[SMTP_PORT] => 25
[CRLF] =>
[do_debug] => 0
[Debugoutput] => echo
[do_verp] =>
[Timeout] => 300
[Timelimit] => 300
[smtp_transaction_id_patterns:protected] => Array
(
[exim] => /[0-9]{3} OK id=(.*)/
[sendmail] => /[0-9]{3} 2.0.0 (.*) Message/
[postfix] => /[0-9]{3} 2.0.0 Ok: queued as (.*)/
)
[smtp_conn:protected] =>
[error:protected] => Array
(
[error] =>
[detail] =>
[smtp_code] =>
[smtp_code_ex] =>
)
[helo_rply:protected] =>
[server_caps:protected] =>
[last_reply:protected] =>
)
[to:protected] => Array
(
[0] => Array
(
[0] => xxxxxxxxxx#yahoo.com.tw
[1] =>
)
)
[cc:protected] => Array
(
)
[bcc:protected] => Array
(
)
[ReplyTo:protected] => Array
(
)
[all_recipients:protected] => Array
(
[xxxxxxxxxxx#yahoo.com.tw] => 1
)
[RecipientsQueue:protected] => Array
(
)
[ReplyToQueue:protected] => Array
(
)
[attachment:protected] => Array
(
)
[CustomHeader:protected] => Array
(
)
[lastMessageID:protected] => <1d6e4a91953547c850de852e798ccbba#club3.idv.tw>
[message_type:protected] => plain
[boundary:protected] => Array
(
[1] => b1_1d6e4a91953547c850de852e798ccbba
[2] => b2_1d6e4a91953547c850de852e798ccbba
[3] => b3_1d6e4a91953547c850de852e798ccbba
)
[language:protected] => Array
(
[authenticate] => SMTP Error: Could not authenticate.
[connect_host] => SMTP Error: Could not connect to SMTP host.
[data_not_accepted] => SMTP Error: data not accepted.
[empty_message] => Message body empty
[encoding] => Unknown encoding:
[execute] => Could not execute:
[file_access] => Could not access file:
[file_open] => File Error: Could not open file:
[from_failed] => The following From address failed:
[instantiate] => Could not instantiate mail function.
[invalid_address] => Invalid address:
[mailer_not_supported] => mailer is not supported.
[provide_address] => You must provide at least one recipient email address.
[recipients_failed] => SMTP Error: The following recipients failed:
[signing] => Signing Error:
[smtp_connect_failed] => SMTP connect() failed.
[smtp_error] => SMTP server error:
[variable_set] => Cannot set or reset variable:
[extension_missing] => Extension missing:
)
[error_count:protected] => 2
[sign_cert_file:protected] =>
[sign_key_file:protected] =>
[sign_extracerts_file:protected] =>
[sign_key_pass:protected] =>
[exceptions:protected] => 1
[uniqueid:protected] => 1d6e4a91953547c850de852e798ccbba
)
Heading
Connection: opening to ssl://smtp.gmail.com:465, timeout=300, options=array (
)
Connection: Failed to connect to server.
Error number 2. "Error notice: stream_socket_client():
SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failedConnection: Failed to connect to server.
Error number 2. "Error notice: stream_socket_client(): Failed to enable cryptoConnection: Failed to connect to server.
Error number 2. "Error notice: stream_socket_client(): unable to connect to ssl://smtp.gmail.com:465 (Unknown error)
SMTP ERROR: Failed to connect to server: (0)SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
Try this plugin https://wordpress.org/plugins/blastex and send email without local smtp server !
Probably self signed certificate on smtp server !!!
When using code-coverage my tests are terribly slow, so I want to generate code coverage only when I pass the --coverage-html=/tmp option to command like this:
phpunit --coverage-html=/tmp -c app/
I also tried changing the order of parameters:
phpunit -c app/ --coverage-html=/tmp
PHPUnit version is 3.7.28.
I have xdebug enabled in PHP CLI:
php -i | grep xdebug
/etc/php5/cli/conf.d/20-xdebug.ini,
xdebug
xdebug support => enabled
xdebug.auto_trace => Off => Off
xdebug.cli_color => 0 => 0
xdebug.collect_assignments => Off => Off
xdebug.collect_includes => On => On
xdebug.collect_params => 0 => 0
xdebug.collect_return => Off => Off
xdebug.collect_vars => Off => Off
xdebug.coverage_enable => On => On
xdebug.default_enable => On => On
xdebug.dump.COOKIE => no value => no value
xdebug.dump.ENV => no value => no value
xdebug.dump.FILES => no value => no value
xdebug.dump.GET => no value => no value
xdebug.dump.POST => no value => no value
xdebug.dump.REQUEST => no value => no value
xdebug.dump.SERVER => no value => no value
xdebug.dump.SESSION => no value => no value
xdebug.dump_globals => On => On
xdebug.dump_once => On => On
xdebug.dump_undefined => Off => Off
xdebug.extended_info => On => On
xdebug.file_link_format => no value => no value
xdebug.idekey => no value => no value
xdebug.max_nesting_level => 250 => 250
xdebug.overload_var_dump => On => On
xdebug.profiler_aggregate => Off => Off
xdebug.profiler_append => Off => Off
xdebug.profiler_enable => Off => Off
xdebug.profiler_enable_trigger => Off => Off
xdebug.profiler_output_dir => /tmp => /tmp
xdebug.profiler_output_name => cachegrind.out.%p => cachegrind.out.%p
xdebug.remote_autostart => Off => Off
xdebug.remote_connect_back => Off => Off
xdebug.remote_cookie_expire_time => 3600 => 3600
xdebug.remote_enable => Off => Off
xdebug.remote_handler => dbgp => dbgp
xdebug.remote_host => localhost => localhost
xdebug.remote_log => no value => no value
xdebug.remote_mode => req => req
xdebug.remote_port => 9000 => 9000
xdebug.scream => Off => Off
xdebug.show_exception_trace => Off => Off
xdebug.show_local_vars => Off => Off
xdebug.show_mem_delta => Off => Off
xdebug.trace_enable_trigger => Off => Off
xdebug.trace_format => 0 => 0
xdebug.trace_options => 0 => 0
xdebug.trace_output_dir => /tmp => /tmp
xdebug.trace_output_name => trace.%c => trace.%c
xdebug.var_display_max_children => 128 => 128
xdebug.var_display_max_data => 512 => 512
xdebug.var_display_max_depth => 3 => 3
I use the default Symfony2 phpunit.xml.dist:
<?xml version="1.0" encoding="UTF-8"?>
<!-- http://phpunit.de/manual/4.1/en/appendixes.configuration.html -->
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.1/phpunit.xsd"
backupGlobals="false"
colors="true"
bootstrap="bootstrap.php.cache"
>
<testsuites>
<testsuite name="Project Test Suite">
<directory>../src/*/*Bundle/Tests</directory>
<directory>../src/*/Bundle/*Bundle/Tests</directory>
</testsuite>
</testsuites>
<!--
<php>
<server name="KERNEL_DIR" value="/path/to/your/app/" />
</php>
-->
<filter>
<whitelist>
<directory>../src</directory>
<exclude>
<directory>../src/*/*Bundle/Resources</directory>
<directory>../src/*/*Bundle/Tests</directory>
<directory>../src/*/Bundle/*Bundle/Resources</directory>
<directory>../src/*/Bundle/*Bundle/Tests</directory>
</exclude>
</whitelist>
</filter>
</phpunit>
When I use phpunit --coverage-text -c app it outputs the results.
It only works when I add logging configuration in phpunit.xml.dist:
<logging>
<log type="coverage-html" target="/tmp/report" charset="UTF-8"
highlight="false" lowUpperBound="35" highLowerBound="70"/>
</logging>
When I do that, it always generates the code coverage report, which I don't want to because tests are slow.
I tried with PHPUnit version 4.0.17 and it works!
I don't know if it matters, but PHPUnit is now installed via PEAR.
$ phpunit -c app --coverage-html=/tmp
PHPUnit 4.0.17 by Sebastian Bergmann.
You have installed PHPUnit via PEAR. This installation method is no longer
supported and http://pear.phpunit.de/ will be shut down no later than
December, 31 2014.
Please read http://phpunit.de/manual/current/en/installation.html and
learn how to use PHPUnit from a PHAR or install it via Composer.
Configuration read from /home/usersetup/public_html/project/app/phpunit.xml.dist
..........................................
Time: 3.52 minutes, Memory: 45.00Mb
OK (42 tests, 121 assertions)
Generating code coverage report in HTML format ... done
Update
I also tried with PHPUnit 4.2.6 installed via composer and it works as well.
Every so often, one of the instances in our application will start throwing this error:
[Fri Aug 29 14:23:25.359848 2014] [:error] [pid 2759] [client 1.2.3.4:58627] PHP Fatal error: Zend OPcache class loading error, class FSC\\HateoasBundle\\Serializer\\EventSubscriber\\EmbedderEventSubscriber in /var/app/current/vendor/composer/ClassLoader.php on line 183
It happens when loading any page. I've tried composer dump-autoload, but that does nothing. Repeatedly restarting Apache is equally useless. This is PHP 5.5.7 running on Apache 2.4.6. Here's the opcache preferences:
[root#ip-1-2-3-4 html]# php -i | grep opc
/etc/php-5.5.d/opcache.ini,
opcache.blacklist_filename => /etc/php-5.5.d/opcache*.blacklist => /etc/php-5.5.d/opcache*.blacklist
opcache.consistency_checks => 0 => 0
opcache.dups_fix => Off => Off
opcache.enable => On => On
opcache.enable_cli => Off => Off
opcache.enable_file_override => Off => Off
opcache.error_log => no value => no value
opcache.fast_shutdown => 1 => 1
opcache.file_update_protection => 2 => 2
opcache.force_restart_timeout => 180 => 180
opcache.inherited_hack => On => On
opcache.interned_strings_buffer => 8 => 8
opcache.load_comments => 1 => 1
opcache.log_verbosity_level => 1 => 1
opcache.max_accelerated_files => 4000 => 4000
opcache.max_file_size => 0 => 0
opcache.max_wasted_percentage => 5 => 5
opcache.memory_consumption => 256 => 256
opcache.optimization_level => 0xFFFFFFFF => 0xFFFFFFFF
opcache.preferred_memory_model => no value => no value
opcache.protect_memory => 0 => 0
opcache.restrict_api => no value => no value
opcache.revalidate_freq => 2 => 2
opcache.revalidate_path => Off => Off
opcache.save_comments => 1 => 1
opcache.use_cwd => On => On
opcache.validate_timestamps => On => On
We're all at a loss as to what's going on. Anyone have any ideas?