PHP

Support group for those afflicted with PHP. Don't ask to ask, ...
Jun 5, 2018 12:38
@pmmaga ok thanks for the info!
Jun 5, 2018 12:20
@Leigh just encountered this error in a library my project uses
Jun 5, 2018 12:04
Hi, I have a question, is this: 3v4l.org/T4Wco an intentional BC break in php 7.2?
Jul 27, 2016 16:35
@bwoebi maybe under different circumstances and environment it would have been faster ;)
Jul 27, 2016 10:23
@PeeHaa sounds like fun, isn't it? ;)
Jul 27, 2016 10:17
@bwoebi so if you want, you can play with that segfault ;)
Jul 27, 2016 10:11
@bwoebi hi
Jul 27, 2016 07:47
well, safari? As I said, I don't know about latest iOS 9 (because I don't own an apple device) but in older iOS versions file upload in safari was limited to camera (taking a picture) and photo gallery
Jul 27, 2016 07:43
@ako but telegram is an app, right? And here you are talking about a webpage
Jul 27, 2016 07:41
"As Far As I Remember"
Jul 27, 2016 07:38
@ako AFAIR ios allows only image uploads, nothing you can do about it
Jul 26, 2016 18:34
ok :)
Jul 26, 2016 18:21
well, from 9 UTC to 22 UTC I guess, so maybe in this window
Jul 26, 2016 18:18
I should be at 9 UTC
Jul 26, 2016 18:18
yeah ;) what UTC time will you be available?
Jul 26, 2016 18:17
I had to go out to a remote location and couldn't set up all the stuff
Jul 26, 2016 18:16
@bwoebi Hi, I'm right now ;)
Jul 25, 2016 11:42
@bwoebi no probl, I will just halt it and then start it later and send you connection details and you will do whatever you want ;)
Jul 25, 2016 11:38
hi @bwoebi I have a new instance set up for debugging that segfault, if you still want ;)
Jul 22, 2016 21:09
from me, its jacek.jedrzejewski @ youknowhat .com ;)
Jul 22, 2016 21:06
no no voice chat, just share plain/text :p
Jul 22, 2016 21:03
@bwoebi is google hangout secure for this?
Jul 22, 2016 21:00
So yeah segfaults happens with the test which suppose to mock forking manager and works with this test being skipped
Jul 22, 2016 20:59
@bwoebi well just a minute but.. Jeez you somehow made me realize that my test skipping didn't actually work because I did it in the different folder
Jul 22, 2016 20:53
@bwoebi well, I'm able, do you want an access? Can we contact privately?
Jul 22, 2016 20:49
@bwoebi I still can't make the test suite fail on individual folders fails, segfaults and produce anything more than just valgrind stats comparing to running valgrind with whole test suite and failing as in the gist I provided :\
Jul 22, 2016 20:37
It's strange however as it is almost the same machine setup in the ci server as in my vagrant VM as I mentioned in the beginning, and the VM does not sefault, just the ci server. And I don't want to try the prod/staging server ;)
Jul 22, 2016 20:36
@bwoebi ok I will try with imagick enabled
Jul 22, 2016 20:33
@Danack Well, imagick version, latest from ubuntu 14.04, I've just run once again update/upgrade, but yes, disabling imagick make the test suite NOT segfault, just fail on my media manipulation controllers fail because imagick is not enabled :p
Jul 22, 2016 20:25
Jul 22, 2016 20:24
no, making it skipped does not help :p so it can't be that "mocked" forking stuff
Jul 22, 2016 20:21
I will make it skip and test
Jul 22, 2016 20:21
but mentioning child processes it made me realize that I have a test which covers a command which forks but the fork manager is mock so it shouldn't do anything
Jul 22, 2016 20:20
@bwoebi oook soo running it with valgrind makes some strange results, I will post them in a minute, it reports some libMagicCore stuff there
Jul 22, 2016 20:15
hmmmmmmm
Jul 22, 2016 20:12
but in the middle of phpunit output there is "[New LWP 20780] [LWP 20780 exited]" so it look like it would be like.. 262 test of a test after this.. How to know which one it is? Anyone know how to debug it?
Jul 22, 2016 20:10
but as a whole, it segfaults
Jul 22, 2016 20:10
OK so I have my test suite separated into 5 directories covering different parts of the app and the test suite run over each of these directories works fine ... :)
Jul 22, 2016 20:08
Ok I will try to narrow it down
Jul 22, 2016 20:07
@Danack I just added some units to my test suite..
Jul 22, 2016 20:03
so... what does it say? because I don't understand
Jul 22, 2016 20:01
PHPUnit 5.4.6 by Sebastian Bergmann and contributors.

Testing
...............................................................  63 / 415 ( 15%)
............................................................... 126 / 415 ( 30%)
............................................................... 189 / 415 ( 45%)
............................................................... 252 / 415 ( 60%)
........[New LWP 20780]
[LWP 20780 exited]
....................................................... 315 / 415 ( 75%)
Jul 22, 2016 20:01
here's the output I get:
Jul 22, 2016 20:01
BUT
Jul 22, 2016 20:01
@Danack oh thanks, it's not travis but my own aws instance set up for gitlab ci multirunner
Jul 22, 2016 19:56
for what I understand I need php compile from source with --enable-debug
Jul 22, 2016 19:56
@Danack I mean.. I know some cli stuff but I want to debug why there it is a segfault, maybe it's a PHP bug or something but I can't find a useful guide how to debug such segfault
Jul 22, 2016 19:47
How to do it safely without braking "the official" php?
Jul 22, 2016 19:46
And I will probably need all required extensions
Jul 22, 2016 19:45
But I don't want to mess up the version installed from ondrej's ppa because the CI server is running also for other projects