Wind River Support Network

HomeDefectsLIN6-429
Not to be fixed

LIN6-429 : "xdebug" test cases failed

Created: Aug 27, 2013    Updated: Apr 19, 2018
Resolved Date: Apr 17, 2018
Found In Version: 6.0
Severity: Severe
Applicable for: Wind River Linux 6
Component/s: Userspace

Description

Problem Description
======================
xdebug test failed. After configured xdebug for php and restart apache service, the xdebug info still could not be caputured.


Expected Behavior
======================
Test passed without error, there are additional xdebug info outputted

Observed Behavior
======================
root@qemu0:/etc/php# tail /etc/php/apache2-php5/php.ini

[dba]
;dba.default_handler=

; Local Variables:
; tab-width: 4
; End:
;

zend_extension="/usr/lib64/php5/extensions/no-debug-zts-20100525/xdebug.so"
root@qemu0:/etc/php# ls /usr/lib64/php5/extensions/no-debug-zts-20100525
xdebug.so
root@qemu0:/etc/php# cat /usr/share/apache2/default-site/htdocs/phpinfo.php
<?php 
phpinfo(); 
?>
root@qemu0:/etc/php# 
root@qemu0:/etc/php# curl http://localhost/phpinfo.php |grep xdebug
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 42014    0 42014    0     0  69981      0 --:--:-- --:--:-- --:--:-- 93991
root@qemu0:/etc/php# curl http://localhost/phpinfo.php |grep extens
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0<tr><td class="e">extension_dir</td><td class="v">/usr/lib64/php5/extensions/no-debug-zts-20100525</td><td class="v">/usr/lib64/php5/extensions/no-debug-zts-20100525</td></tr>
<tr class="h"><th>mbstring extension makes use of "streamable kanji code filter and converter", which is distributed under the GNU Lesser General Public License version 2.1.</th></tr>
<tr><td class="e">sqlite3.extension_dir</td><td class="v"><i>no value</i></td><td class="v"><i>no value</i></td></tr>
100 42013    0 42013    0     0   239k      0 --:--:-- --:--:-- --:--:--  313k
root@qemu0:/etc/php# 

Steps to Reproduce

configure --enable-board=qemux86-64 --enable-kernel=standard --enable-rootfs=glibc-std --with-layer=../wr-testing/userspace/,/lpg-build/cdc/fast_prod/wrlinux60/wrlinux-x/addons/wr-cgp/layers/wr-security,meta-selinux --enable-jobs=8 --enable-parallel-pkgbuilds=8


make fs

On the board run:
- Edit /etc/php/apache2-php5/php.ini to add path of xdebug 

zend_extension="/usr/lib64/php5/extensions/no-debug-zts-20100525/xdebug.so"

- restart apach servise

/etc/init.d/apache2 restart

- Add file phpinfo.php
root@qemu0:/etc/php# cat /usr/share/apache2/default-site/htdocs/phpinfo.php
<?php 
phpinfo(); 
?>

- Check the xdebug info
curl http://localhost/phpinfo.php |grep xdebug

Live chat
Online