Open Gasol opened 7 years ago
Try it on the lastest FreeBSD, works as expected.
Uname
$uname -a
FreeBSD freebsd.shiva.arena.mo47.com 11.0-RELEASE-p1 FreeBSD 11.0-RELEASE-p1 #0 r306420: Thu Sep 29 01:43:23 UTC 2016 root@releng2.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64
Screenshot
So, could you re-produce it? using these snippets below.
extend whole cost time
php -r 'for ($i = 0; $i < 20; $i++) usleep(50000);' &
phptrace -p $!
Specified pid
php -r 'for ($i = 0; $i < 100000; $i++) { usleep(50000); echo getmypid()."\n"; }'
# PID will be displayed by PHP, and phptrace -p $pid
Hi, I'm ports maintainer of pecl-trace 1, I has been updated phptrace to 1.0.0 and encounter this problem.
Run commands described in README as following show error message like
ERROR: Invalid process id "54000" "No such file or directory(2)"
But it's ok withphptrace -p all
OS
PHP