« first day (1716 days earlier)      last day (3245 days later) » 
02:00 - 21:0021:00 - 00:00

9:00 PM
@NikiC what's actually the best way to get the file/line from an exception? I'm not sure why everything in zend_exception.c is static… like zend_get_exception_base, which prevents me direct access of the property…
 
@AaronHarding I normally start swearing at whichever library is trying to use English as a programming paradigm. And having something be misspelt should never be used if at all possible, so "category".
 
@Olli are you certain you're only using numbers in the url?
 
Quick poll, which PHP framework are you currently using?

Me - Codeigniter
 
@kaleeway used to be codeigniter but now i've been looking into laravel and it's been so smooth recently
@kaleeway actually it was CodeIgniter with FuelCMS
@Danack haha okay, fair enough. i can't find any more information so i guess i'll just go with category and see if Laravel puts up a fuss :c
@Olli also try RewriteRule ^animal/([0-9]+)$ /~olli/animals/animal.php?id=$1 [L] just in case
 
@kaleeway none
 
9:06 PM
@kaleeway a mix of Broadway, Doctrine ORM and React PHP
 
@bwoebi Because it is a .c file and not a .h
 
@NikiC I know, but I am not sure if I'll make it better
 
@LeviMorrison That was not the question… one could quickly create a wrapper and export it in .h file. … I'm rather asking why, or if there's a more idiomatic way \cc @NikiC
 
@NikiC yeah, that's the catch
Cool that you tried it btw
 
euugh so Laravel wants "categorie" when the model name is "categories"
3
Y?
tear
no wait, i take that back
 
9:11 PM
s/model/active record blob taken back just to be politically correct-ish
 
@bwoebi the usual approach is "keep things static unless someone complains"
Just like you always default to private visibility in PHP
 
yeah okay… putting into header then…
 
@AaronHarding that is so awesome.......ly representative of Laravel.
 
@Danack but it's so magic!
@Jimbo happy birthday man
THAT IS ALL THE NICE THINGS I'LL HAVE SAID TO YOU THIS YEAR!!!one
 
@Danack ah i think it's actually kind of working
 
9:23 PM
yes, and that's the quality people look for in projects "hey, it's kind of working!".
 
@Danack lol, i'm on the verge of giving up though. i'm not sure if it's me not being familiar with the framework's syntax or i'm making a mistake
i'm watched a lot laracasts, especially the introduction to many-to-many relationships between models, but it's just not clicking
it seems that laravel is not using the pivot table that i've told it to use
trying to add the "category_id" onto the photo entry itself
which is ignoring the pivot table and defeating the whole point of all this heavy lifting it does for you lols
 
@LeviMorrison Hrmm.. yea, after reviewing the RFC I agree with you. Have you submitted this to the ML yet? Do you think this is something we'll see implemented?
 
Anonymous
@LeviMorrison doesn't it kinda defeat the purpose of type declarations if you want to implement mixed types? Sounds like back to square one ..
 
Does anyone in here want to build a test-result-auto-updater?
Which shows you current, diff and new
and asks you to insert new output into expect section (with lines and file names replaced by %d and %s respectively)
would make changes which fail a lot of tests easier
 
@bwoebi don't understand
what does it do?
 
9:32 PM
@Danack actually, it's because i'm not that familiar with laravel yet .. it's actually now working v smoothly
 
replace incorrect assertions?
 
@Ocramius talking about .phpt
@Ocramius and as you know, phpt tests work based on output…
 
Yes? And I usually use EXPECTF
 
yeah
 
so you are talking about EXPECT?
 
9:34 PM
point is now, when I do a change in C source
many tests will fail
because output is now intentionally slightly different
in error messages
 
Yeap
can't you grep replace?
it's usually easier
 
no :-(
not in this case
 
@samaYo I think not because mixed implies anything while array|Traversavle explicitly is an array or Traversable; not mixed because you couldn't pass in anything. I think a type|some_other_type is common enough use case to support.
And if you find your return type looking like string|int|float|array then you probably just shouldn't be using return types at all
 
@Ocramius having to manually fix each test, one by one
 
9:48 PM
Bobs-MacBook-Pro-2:php-src-7.0x bob$ ./sapi/cli/php -r 'function a(integer $b) {} a(1);'

Fatal error: Uncaught TypeError: Argument 1 passed to a() must be an instance of integer, integer given, called in Command line code on line 1 and defined in Command line code:1
 
btw, I could need it too
 
should we also allow integer or rename it to int in the error message? … @LeviMorrison has maybe an opinion on that?
 
having the same exact problem on StrictPhp and ProxyManager atm
also no idea how to keep it PHP7 AND PHP5 compatible without using regexes
 
@RonaldUlyssesSwanson yo
 
9:54 PM
how's the "new" project going?
 
Have been drinking beer today instead
 
that's the most important project :P
 
:)
 
@bwoebi integer must not be allowed there (it's a feature)
If you want to clarify the error message, I'd suggest inserting a "class"
@bwoebi I don't want to build one, but I wouldn't say no to having one :P
 
@NikiC hehe… same here
@NikiC any reason why we disallowed integer?
at least…
 
10:04 PM
@bwoebi Because aliases in general suck
There should be one way, and preferably one way only, to do something
 
Bobs-MacBook-Pro-2:php-src-7.0x bob$ ./sapi/cli/php -r 'class a { function x(int $b) {} } class b extends a { function x() {} }'

Warning: Declaration of b::x() should be compatible with a::x(integer $b) in Command line code on line 1
that's just wrong… because it actually just takes zval_get_type()
@NikiC Not having aliases makes everything more complicated in this specific case
 
@bwoebi Yes, that's wrong
@bwoebi Doesn't matter. Not having aliases was an explicit choice of the RFC.
Also, don't forget that supporting them now would be a major BC break in a beta 1 release
 
@NikiC I know. And I'm wondering now if that really was a wise choice.
 
@bwoebi Yes, it was
 
@NikiC Major BC break? not really. a small one? yes.
 
Anonymous
10:12 PM
@cspray it's just something that promotes a bad habit.
 
I don't want to see foo(real $x) in any code
 
But well, I won't continue arguing that now.
@NikiC no, not real. just boolean and integer
 
@bwoebi In my experience the name reservation was the only BC break worth mentioning in PHP 7 (and I have this vague memory of some projects "fixing" it by just renaming Int to Integer and String to Str ^^)
 
do we support (real)?
 
@bwoebi yes
 
10:12 PM
Kill it :-(
 
@samaYo I've never really given much credit to the "but somebody can write bad code with it" because no programming language is gonna stop people from doing stupid things.
Can you do something good with it is a far more interesting question imo
And in this case I would say that you can
 
These timeout-testing tests are annoying. Is there any way to disable tests which by default take longer than 500 ms?
 
@bwoebi like Hack did :)
 
@bwoebi There is SKIP_SLOW_TESTS and I think SKIP_ONLINE_TESTS
 
@AaronHarding Laravel? Lolavel.
 
10:20 PM
@bwoebi I'm agree
 
@NikiC oh, indeed. Thanks :-)
 
@bwoebi I have that one in .profile
 
added just now
 
@cspray So much this. There have been several emails on internals (and even some in this room) where people have suggested making PHP less powerful, just to make coding be "safer" for people who are bad at programming....
 
@Danack I'm okay with restricting the standard tools in some ways if it makes sense as long as we still have another more powerful way (like via Reflection, Closure rebinding, whatever)
 
10:27 PM
...but not things like not being able to throw \Exception.
 
39 files changed, 56 insertions(+), 47 deletions(-)

38 phpt files -.-
@Danack because, actually, there is no other way to throw a raw exception then.
 
Hey all, how do I report a bug on stackoverflow? I just broke stackoverflow careers
 
@kaleeway screenshot and big red circle, posted on meta.
 
s/big red circle/hand drawn big red circle
 
If you can find someone with Parkinson's all the better...
 
10:45 PM
wondering what's the purpose of this php.net/manual/en/splobjectstorage.setinfo.php
 
@RonaldUlyssesSwanson When iterating, setInfo() will set the data associated with the object at the current iterator position.
Yes, setInfo() was a poor name choice.
 
yes, but, how is that different from $x->attach($k, $v); ?
 
@PeeHaa ideally with a few unicorns?
 
Yes. Very much yes
 
11:03 PM
@RonaldUlyssesSwanson It's based on the internal iterator pointer. Otherwise it's no different.
 
@Trowski Premature Generalization
i would have much preferred few things but well designed
 
git.php.net/… … this really had me annoyed so much, I needed to do it.
 
@bwoebi Much better. That will matter more with type declarations.
Am I the only one that found it odd that an argument against updating the output of phpinfo() is that people are parsing it? Does that really happen?!
 
@Trowski AFAIK, only to get the configure line.
never saw it for anything else.
 
@bwoebi Then lets add a function like get_configure_line() and call it a day. Or add a better way to discover the build options.
 
11:12 PM
@Trowski feel free to ;-D
 
Adds to todo list
 
what's your todo list looking like?
 
@Trowski yes, for server monitoring probably.
 
@Danack o_O?
 
There's a lot more scraping of webpages going on in professional businesses than you would expect.
 
11:18 PM
@bwoebi Long, but only a couple things related to PHP src right now: Learn how the parser works, learn how the execution stack works, RFC to add callable() for making references to functions that can be passed as callbacks, and what I just mentioned.
 
@Trowski How the parser works you learn best by failing with more complicated fun in parser^^
… like … rewrites of parser, adding keywords_as_identifiers etc. ^^
@Trowski but when you want a learning exercise…
 
@bwoebi Would be great if you could show me a few things to get me started.
Not today though, I have too much stuff that needs to be done in the next couple weeks.
 
@Trowski github.com/php/php-src/blob/… try getting rid of the shift/reduce conflicts and set it to %expect 0. Fix the conflicts and have a sane behavior with traits ^^
(it's fixed via the next commit)
just in case you want to really try something…
 
@bwoebi Alright, I'll save that for later.
 
I know, it won't be easy, and it will make you dive into zend_language_parser.output, understand it, understand logic of parser and understand how you could fix it.
You will have questions. But only by asking you'll really understand.
I doubt that you'll solve that without any prior knowledge.
 
11:30 PM
blah
 
@ircmaxell evening
 
sitting on a train
 
to/from where?
 
from home to Philadelphia
about an hour ride
and on a "fast train"
 
at least you have wifi
 
11:37 PM
/me types "t", enter… Oh shiiiiiit...
 
@RonaldUlyssesSwanson yeah
 
02:00 - 21:0021:00 - 00:00

« first day (1716 days earlier)      last day (3245 days later) »