« first day (1568 days earlier)      last day (3380 days later) » 

6:01 PM
@PeeHaa I think maybe "When not set or empty there is no restriction in place."
The difference is probably tiny, and tbh it might not be worth mentioning.
 
So I made a method such that I can read this file: github.com/roots/roots/blob/8.0.0/bower.json and be able to do get_path('dependencies.jquery'). github.com/austinpray/roots/commit/…
am I doing anything dumb?
or even get_path('parent.child.child.child')
 
@Danack Fair enough. I will just leave it
 
user895378
Is it just me or is ext/date the most likely culprit in a travis build failure? grumble grumble date timezone warning grumble grumble
 
@marcio Depends. Frameworks will probably support older versions, but actual user code can use all new features. But PHP 5.6 is too slow anyway (at least compared to PHP 7), hopefully that will convince more people.
 
@rdlowrey every time they upgrade the travis box they forget to set the timezone xD then somebody open a github issue and they fix it
 
6:06 PM
@AustinPray I find it difficult to read code - you might find it helpful to post an example on 3v4l.org of what you're trying to do, and how it's going wrong. Also maybe use github.com/jmespath/jmespath.php
@marcio Bazinga!
 
@Danack it works properly
just asking for review
I don't really know php conventions
 
<!-- Force 2 spaces indentation -->
eeeeeeew :)
 
:D ^
 
6:14 PM
haha why is 4 space a thing?
 
@AustinPray go ask PHP FIG, they had an epic debate on that
 
@AustinPray Because 2 spaces are hard read read / scan
 
user895378
And because Drupal uses 2 spaces.
 
user895378
You don't want to use, "Drupal style," do you?
 
Single space indents or go home!
 
@rdlowrey In their defense. They have the habit of dumping all code in a single function so they kinda need it :P
 
we also should E_DEPRECATE tabs
 
user895378
decreased tab size == instant reduction in cyclomatic complexity!
 
... and life quality
 
user895378
... and testosterone levels
 
6:17 PM
more tab size = really hard to do split windows
don't they have a role about 80 character lines?
 
@AustinPray No, Synfony class names have 240 characters
 
you people make me want to use actual tabs
 
@marcio i need an adult
i don't feel comfortable
 
80 characters line limit is for python, it's not practical for PHP
 
It's totally practical for PHP, just not <insert framework who shall not be named>.
 
6:22 PM
it's totally practical for php
 
@salathe Meh 80 is kinda low
 
it's practical for all languages
 
hummm, don't think so
sometimes you have to extend and implement 2 interfaces
 
i mean how are you going to easily diff at a glance 200 character lines?
 
@AustinPray 80 -> 200 is a big jump... :)
 
6:24 PM
I usually set it to 120 characters and try to stay on 90~100 margin
 
Yeah that's reasonable
 
I am agree with @marcio
 
first time we agree :)
 
@PeeHaa I'm not saying I never write > 80 chars on a line, but I'd guess average is probably far, far, far less than that.
 
@marcio ;-)
@salathe True. Mostly some (perhaps too) large method signatures and exception texts :)
 
6:27 PM
sometimes you NEED:
class Something implements \ArrayAccess, \Countable, \IteratorAggregate, \JsonSerializable {}
 
looks like i missed a tabs v spaces chat. damn. i love those!
 
oh no no no no. Tabs are stupid everybody knows that
 
@PeeHaa you're just jealous of @rdlowrey's huge tabs…
 
@PhilSturgeon Nope, we all agree tabs suck
 
6:32 PM
lol @ wordpress uses tabs
 
If all my files were only 80 characters wide I wouldn't use tabs anymore because I could open all files next to each other :P
 
@salathe That guy has some huuuuge tabs indeed
 
thats a first!
ask that in any other PHP community and the server will crash
 
anhow, i've got a few hours to kill and i dont own an xbox. so, is this a valid bug? bugs.php.net/bug.php?id=68863
 
6:33 PM
80 characters is best characters B^)
 
picked a fairly simple one so I can just f**k around with it and fix it
 
...
 
@AustinPray for the sake of your argument you shouldn't have opened the same file 5 times
@AustinPray why is your screenshot 2663x1688??
 
user image
3
 
tabs should give a compile error
5
 
6:34 PM
@PhilSturgeon It's a bit confusing because expected and actual uses two different code samples...
 
yeah it doesnt help
 
@marcio I'd love that
 
/me creates RFC for that
 
no more search & replace everytime
@marcio I'd vote yes If I could
 
@MarcelBurkhard I use this, it works github.com/FriendsOfPHP/PHP-CS-Fixer
 
6:37 PM
@MarcelBurkhard Setup your texteditor / ide to do it automagically
 
@PhilSturgeon What would the "fixed" behaviour be?
 
@marcio while you're at it create an rfc that everything aside utf 8 gives a compiler error too
 
And let it remove trailing spaces while you are at it
 
@salathe dunno im bailing on that one
 
@PhilSturgeon do want PHP bugs to solve?
 
6:39 PM
vertical tabs?
 
@PeeHaa thx but no, search & replace takes me 3 seconds and I only need to it once after someone else ( who shall not be named cuz this chat is fkn google indexed) has finished his/her work
 
@marcio im looking to get one or two insanely simple ones done yes
something like this bugs.php.net/bug.php?id=68669
 
@marcio thx but no, see above :D
 
@MarcelBurkhard I don't see why you wouldn't do it automagically
 
ahh that one has been fixed. there is a passing test for it in master
 
6:41 PM
@PeeHaa got other more pressing ToDos
 
if i spot a bug which has been fixed but is still listed as open, what does that mean?
 
Instead of spending the 3 seconds to search and replace set it up :|
 
@PeeHaa aaaaand, I still use eclipse and I'm going to replace that in due time
 
@PhilSturgeon most bugs are very poorly reported, I tend to find valid bugs by myself running random projects test suites with PHP7 (from master)
 
@MarcelBurkhard I'm sure eclipse would also able to do it
 
6:42 PM
fair. im gonna run pyrocms through the ringer
or CodeIgniter. bahaha
 
@PeeHaa It's going to take up to 120 seconds for me to set it up, I don't think I can justify that :D
 
@PhilSturgeon Most usually, someone forgot to close it or saw the bug, fixed it, and didn't know about the relevant bug report.
 
@PhilSturgeon probably will segfault :P (seriously, master segfaults a lot)
 
@PeeHaa yeah been there done that (when I was still using eclipse for java) but I'm really lazy...
 
@PhilSturgeon if you're looking for easy bugs, there's plenty of those for the documentation
 
6:44 PM
How do you PHP people handle PRs. Do I wait for somebody to look at it. Do I bug you? Do I have to do my magic "review and merge meh shit" dance?
 
@PeeHaa The PHP project does not currently accept PRs. Or so it seems.
 
@PeeHaa First step should be to contact the maintainers of whatever extension the PR affects
 
@Danack of course it does
 
@PeeHaa Isn't it just a mirror?
 
@PeeHaa Ping
=p
 
6:46 PM
people send bugfixes through PRs and they merge it (no need for RFCs lol)
 
@MarcelBurkhard The GitHub repos are mirrors, yes, but we can still merge PRs
 
@salathe So just give a shout out on internals?
 
@PeeHaa do it here
 
@marcio The evidence is against you - github.com/php/php-src/pulls/Danack
 
@PeeHaa I'd email individuals first
 
6:47 PM
@Danack mine got like 10 days to get merged
 
Contradicting advice \o/
 
Could also point them at qa.php.net/pulls/ ... still not sure how many folks know/use that
 
at least one more now :P
 
@PeeHaa Mine was contradicting?
 
Yes. See two lines above you :D
brb going to make some food and stuff
 
6:49 PM
*isn't sure where to look*
 
TWO LINES UP =p
 
3 mins ago, by marcio
@PeeHaa do it here
3 mins ago, by salathe
@PeeHaa I'd email individuals first
 
Oh, ignore @marcio :)
 
opcache is zeev right?
 
dmitry and laruence
 
6:51 PM
ty
 
I think you should send a telegram. Nobody sends telegrams anymore.
 
@salathe graci
@PaulCrovella It that still possible?
 
Both of them know how to merge a PR so contacting them should be enough. :)
 
awesomesauce
brb 4 reals now
 
6:54 PM
@PeeHaa mention the github user called "@laruence" on your PR, he reviews and merges really quick
 
@marcio are you working on the tab-rfc now?
 
No, my patch is segfaulting and I'm procrastinating before open gdb
 
tab rfc? Do you propose to make tab characters illegal?
 
@NikiC it's not a real thing, don't worry
xD
 
^^
@NikiC Would be awesome though, right?
 
7:03 PM
seriously, what's with the tabs hate?
 
@NikiC I'm actually working on this gist.github.com/pcrov/6138044ea4f5eb21f186
just a working patch first, and maybe a RFC if @AndreaFaulds 's one goes wrong.
 
does php have any functions for converting byte offsets to codepoint offsets to grapheme cluster offsets?
For byte->cp the only thing I see is doing an mb_strcut followed by mb_strlen. But no idea for graphemes
Ah, grapheme_extract with GRAPHEME_EXTR_MAXBYTES/CHARS with grapheme_strlen might do
But do you have some more elegant methods?
@PhilSturgeon If you want to fix substr, do something less controversial: Make a 0-length substr at the end of the string return "" instead of false
Being stricter about out-of-bounds substr args may not be popular, you know ^^
 
...and somebody found an use case for grapheme_strlen...
 
@Narf spaces are always same width, tabs depend on env.
 
Anyone here got Code Coverage working with PhpStorm + Vagrant? I get a realloc() error :D
 
7:13 PM
@BenjaminDiele having another lovely evening ? :D
 
@MarcelBurkhard You don't know half of it! I spent most of the day setting up vagrant and phpstorm with silex frustrations.
 
@RonniSkansing that alone might even be a selling point for tabs
 
how do you folks use your custom php builds to run things like phpunit?
~/src/php-src/sapi/cli/php phpunit.phar -c tests/phpunit.xml
 
@BenjaminDiele :D
 
@MarcelBurkhard yea.. =] I just really like spaces..
 
7:14 PM
@PhilSturgeon I do exactly what you just did
 
(sorry bout the edit ping)
 
got errors?
 
@RonniSkansing that's the only reason I can think of myself aswell, I like spaces.
@RonniSkansing others might like trains ^^
 
user895378
@PhilSturgeon First I do this so I don't have to type so much, but yes:
 
user895378
$ ln -s ~/src/php-src/sapi/cli/php /usr/local/bin/phpdev
 
7:15 PM
@MarcelBurkhard nothing wrong in that... I like trains also..
 
I actually don't like trains
 
I HATE YOU
=P
 
user895378
So whatever the current build I'm testing is I can always just use phpdev to reference it.
 
@MarcelBurkhard That is the selling point for tabs. :)
 
@rdlowrey nice, thanks. if i was doing it right I figured I could make it quicker. i need to enable the ohar extension then im good
 
7:17 PM
@PhilSturgeon u will also need to ./configure with --enable-phar option
yes, exactly
 
tadaaa
 
... and you will also need --enable-mbstring option because phpunit requires it
 
Hey guys, I have a workflow question. We're making a server-side program that extracts SQL records every 10 minutes into a CSV file, then runs programs that do stuff with that CSV data. What's the best way to extract the SQL records? It seems like a bad idea to do it based on a date value in the database... I was thinking of making it a scheduled task, but I'm concerned it might 'miss' values. Ideas?
 
@CCInc You can have a queue and delete items from the queue once handled
 
... and if you get the date timezone error, try "/sapi/cli/php -d date.timezone=UTC phpunit.phar ..."
 
@PaulCrovella bookmarked! :P
 
@PeeHaa hm, alright, thanks
 
@RonniSkansing Do I need to take that personal? Because it was personal... ;D
 
@RonniSkansing bug fixed in amp-chat.
 
is there something like a "xampp launcher"? It should replace php/apache conf and then start apache and mysql, so I can use xampp for multiple document roots
I know It would be rather simple to create that on my own but maybe I don't have to?
 
7:30 PM
@MarcelBurkhard Why don't you just setup multiple vhosts?
 
trying to make on PHP 5.6 branch gives me make: *** No rule to make target
are things a bit different there?
 
@PhilSturgeon don't forget buildconf
 
ahh yes
 
if you switch versions you'll certainly need it
If this isn't a one-off thing, I recommen using git workdirs
I have something like 15 dirs of different branches with different configs to avoid rebuilds
 
yeah that makes a lot of sense. i'll split them up
 
7:34 PM
@PeeHaa well because I think APC or opcache wouldn't really work If I run multiple projects at once
 
waiting for builds seems to be happening a lot right now
 
@MarcelBurkhard Why wouldn't it?
 
@PeeHaa ummm dunno, not enough space in buffer or smth? :P
 
@MarcelBurkhard The size of the cache is defined by you. So no matter whether there is 1 or 100 projects running
 
@PeeHaa well you got a point, and I can't really argue that 16GB is not going to be sufficient so I'll just go with multiple vhosts (although I really hate editing my hosts file)
 
7:36 PM
Also using opcache when developing is a serious PITA and should be disabled (on development machines)
 
@PeeHaa true ^^
I don't even have xampp yet I'm just thinking what I should do, because I now have git and such..
so I need a local server etc.
 
Just install your webserver yourself
It only takes a couple of minutes
 
oooh whats this now
In file included from /Users/phil/src/php-src/Zend/zend_indent.c:27:
In file included from Zend/zend_compile.h:431:
In file included from Zend/zend_globals.h:28:
Zend/zend_globals_macros.h:35:5: error: conflicting types for 'zendparse'
int zendparse(void *compiler_globals);
 
@PeeHaa on windows? Last time I checked (like 6 years ago) you're stuck with a windows service for both apache and mysql, I'd rather not.... I usually use xampp portable...
 
+1 to disabling opcache locally. big nope on having that there
its lead to some rather nutty issues for me in the past, even on a VM
 
7:42 PM
yeah I was overthinking this
as in to stupid
 
@PhilSturgeon Remember that and now ask yourself what it must be like to develop something that needs opcache :P
 
/me hides under the bed
 
Been there. Done that. Didn't help. :)
 
@marcio Please don't propose that even if my scalar hints RFC fails
Wrappers and explicit conversions are fine...
 
You people in here seriously suck and are proper assholes. I told myself to fix 13 things today of which I have done a solid 0
6
:(
 
7:45 PM
Well done
 
E_TOO_MUCH_DISTRACTION
 
It (c)saturday =]
 
@PeeHaa Well, at least you fixed one yesterday. :P
 
:D
 
i'll get going solo at some point, just need a bit of help getting started out
 
7:47 PM
I have to add some "do not distract" mode to dev.kelunik.com that just hides new messages for a certain period of time (maybe even one that can't be disabled once enabled). /cc @rdlowrey :P
 
i've got about 1 hour before a girl gets here, so better get the f**k on with this bug
 
i got 1 1/2 h hours before I head to the cinema
 
i've got about 1 hour before I am drunk of this wine..
 
i gotta drive ^^
@RonniSkansing "i've got about 1 hour before I drown in this wine.."
 
@MarcelBurkhard what are you going to watch?
 
7:50 PM
hahaha Ronni
 
@RonniSkansing funny story actually, wanted to watch Unbroken, accidentally booked the imitation game
never happened to me before..
 
Marcel imitation game is awesome though so its not a bad result
 
@PhilSturgeon I expect it to be good aswell, that's why I didn't bother calling to change the tickets.
 
I cant believe the dog dies at the end.
 
7:53 PM
@PhilSturgeon looks like some zts issue
or not
dunno
you have a compatible bison version, right? ^^
 
which bison do i need? compile was failing, i shoved 3.0.2 in there and compile worked.
maybe 5.6 needs me to roll it back
checking for bison version... invalid
configure: WARNING: This bison version is not supported for regeneration of the Zend/PHP parsers (found: 2.3, min: 204, excluded: ).
oh bison
ok, that's twice now
 
user895378
@kelunik oh, Do not disturb mode would be great.
 
user895378
Or, just let people artificially set their activity state to "away" for lurker mode.
 
user895378
Because, you know, I might not want you to know that I've read your message and am ignoring it ;)
 
oh motherf**ker /Library/Developer/CommandLineTools/usr/bin/bison --version == 2.3
sneaky
 
7:59 PM
@PhilSturgeon I fixed that with brew link bison --force and /usr/local/bin in front of /usr/bin in my path.
 
yay .. two beers
 
@tereško cheers
 
@JeremiahWinsley I have that. 7 was building ok, 5.6 seems to care. no idea how that happened
I'ved moved the /Library/Developer/CommandLineTools/usr/bin/bison out the way, and now im trying to brew install bison 2.7.1 instad of 3, because PHP 5.6 doesnt like 3.0 apparently
 
at least I don't have to change app_dev.php anymore now that I run a local server
 
8:18 PM
hi
 
@Irtizashahid hi
 
@Irtizashahid hi
 
@Irtizashahid hi
 
@Irtizashahid hi
 
@Irtizashahid hi
 
8:25 PM
@Irtizashahid hi
 
@Irtizashahid hi
 
combobreaker
 
@Irtizashahid hi
 
@MarcelBurkhard you fucked it up
 
/me starts to cry
 
8:27 PM
if(isset($_POST['name'])) {
    $value = $_POST['name'];
    $arr = array('data' => $value);
} else {
    $arr = array('data' => 'false');
}
 
@jkaufman which php version are you on?
 
5.4 I think?
 
considered using ['data' => $value] instead =]
 
Huh?
 
array literal
 
8:29 PM
Ah.
 
anyways [= what was the question
 
/me hopes It was a silent rant about someone elses code
 
I cannot decide what should I play , whole listening to an audiobook
 
@tereško ever had phpunit not find your tests in a symfony project?
"Configuration read from /var/www/html/btadmin/app/phpunit.xml.dist

No tests executed!"
I just don't get it
 
you are probably doing it wrong
 
8:32 PM
I figured.. but where
 
how are you executing phpunit
and from where
 
This block is being used for an iOS application. I've set up a multipart/form content header, and I send with it a string named 'name' and a file named 'profile_img'. When I change $value to 'true' in the array, I receive that dictionary. If I try to use the $_POST data, it returns nil.
 
well I tried it from cmd, got that "no tests executed" and now I'm trying it from /var/www/html/btadmin ...
"phpunit -c app/"
 
where is the phpunit.xml.dist or phpunit.xml file located ?
 
@MarcelBurkhard The minus c flag is to tell it which config xml file to read....I doubt a directory is a file.
 
8:35 PM
@Danack normally just works fine this way :) That's from the symfony docs btw..
@tereško in app folder
it's actually read that's not the issue
"Configuration read from /var/www/html/btadmin/app/phpunit.xml.dist"
 
what's in it ?
 
Just look at how it's executed in travis file
It's the easiest way usually
 
@PeeHaa what are you coding on lately?
 
@tereško default symfony phpunit configuration... pastebin.com/27486ip9
 
@RonniSkansing Personal or business?
 
8:37 PM
Personal
 
@nikita2206 thx but no travis (yet)
 
The limited time left in a week I try to spend on opcache gui to get new features in
 
uhh
 
@MarcelBurkhard aren't you trying to invoke symfony tests?
 
It is all business lately?
 
8:38 PM
that looks like a mess
 
@RonniSkansing Yeah haven been trying to work for the entire day. Same tomorrow probably
 
But it's the weekendz
=]
Ill stop pinging you now [= have fun working
 
what should I play, while listening to an audiobook: steamcommunity.com/id/teresko/games/?tab=all
 
@RonniSkansing It is. But it's ok. Once I send my invoices I forget all the missed weekends :-)
 
8:40 PM
@tereško well what should I say... it usually works and I haven't changed that file
 
@tereško borderlands 2
 
@MarcelBurkhard do you have any tests =P
 
meh
 
@RonniSkansing yes actually
hold on a minute I'll try composer update, clearing cache etc.
ah goddamn
actually I don't have any tests ... sadtrombone.com/?play=true
I added those locally
and run phpunit on another machine
/me is so stupid -.-
 
karma for the combobreaker
4
 
8:45 PM
^^
 
tereško Mass Effect or FTL
 
I guess I will try FTL
because Mass Effect requires access to the language-processing
 
@tereško for playing while listening to an audiobook I'd choose Edge
 
@PhilSturgeon Mac OS X provides an inadequate version of Bison/Yacc. I am fairly certain this is your issue.
 
@MarcelBurkhard naah, that one really sucked (I bought it for €0.19 and it wasnt worth it)
 
8:51 PM
@LeviMorrison yeah, I got there. thank you :)
 
@tereško ok I only saw the screenshots
 
I have to do something like: ./configure YACC=~/Applications/bison/2.6.4/bin/yacc
Sorry it wasn't sooner; I could have jumped right to it. I've just been busy.
 
actually strange
 
That Dont Starve was a cute game
 
I cannot use "english" while listening to an audiobook, but "latvian" causes no interference
 
8:53 PM
I enjoyed playing it for a while
Always died in the winter.. =[
 
yeah
 
wanted to play dont starve together with the gf.. but she just said meh
 
@tereško just get hooked on one of those online games. wow or dota maybe. I'm hooked on WoT although I know there are not many people who like it
 
hmm ... I have Starcraft2 too
 
yeah waste your time with minecraft
 
8:56 PM
lol
 
@LeviMorrison you're good! Somebody has been able to answer all my questions quickly, its just different people. some of it im working out myself.
 
enough for today... cu
 
yeah im out. cya
 
Phil... have fun
/me pours moar wine..
 
9:18 PM
@PhilSturgeon So, are you our newest internals dev? :p
 
$cat[$c][$l0][$c][$l1][$c][$l2][$c][$l3][$c][$l4][$i] <--- make sure a guy who will maintain this after you does not know where you live. — zerkms 11 mins ago
 
@AndreaFaulds no baker cat today?
 
 
1 hour later…

« first day (1568 days earlier)      last day (3380 days later) »