« first day (1868 days earlier)      last day (3080 days later) » 

3:00 PM
The fix is straightforward, but now I'm wondering why the bug existed anyway
Oh. Right... I get it now.
It's a case of me not carefully thinking through how that struct would be populated
Fix committed.
 
Anonymous
@tereško a game?
 
@samayo audiobook. Second one in a series.
 
@Sjon I've reported the second RC8 bug and closed the first ^^
 
ThW
@tereško I have read the books :-)
 
@ThW just "the books" in general?
 
3:14 PM
I know "we don't care about the API anymore", but would it be so much to have the Reflection API make sense? ReflectionParameter::hasClass() to compliment getClass(), and ReflectionParameter::isDefaultValueAvailable() changed to hasDefaultValue().
 
ThW
@tereško The Alex Verus series
 
what were your impressions?
 
Like, I'm sick of proxying shit just so that the code doesn't read like potatoes.
 
ThW
Good read, waiting for the next book
 
heh
 
Abe
3:15 PM
@DanLugg i just finished complaining about reflection naming :D
 
ThW
Really interesting approach to the magic
 
@Abe It's good to know I'm not alone in this otherwise dark, cold, and brooding poorly named universe.
 
Abe
@DanLugg chat.stackoverflow.com/transcript/message/27153485#27153485 this is very indecipherable to me
 
Eh, isInstance is fine IMO.
 
@ThW this series is kinda similar: goodreads.com/series/165297-mindspace-investigations, but lately my "favourite series" has bee this one
 
Abe
3:17 PM
better than $class->classifies($object) ?
 
But the getX/hasX departure with isDefaultValueAvailable is fucking stupid, also IMO.
@Abe Yes.
classifies sounds like Ruby-speak for turning an instance into some anonymous class.
 
Abe
classOf then.
 
@DanLugg we could add method aliases and deprecate the old names
 
instanceOf
 
Abe
i read it "class is instance of $object"
 
3:18 PM
@Andrea That's what I'd like to do/see done.
 
@DanLugg write a patch and see if you can get it in ^^
 
Abe
no,it's the opposite @DanLugg it's the object being an instance of class :P
not the class being an instance of the object :D
 
this would be a very simple change, adding aliases
 
@Andrea Aliasing and macro functions.
 
@DanLugg macro functions???
 
3:19 PM
lol
 
@tereško Thank you very much :*
 
@Andrea merge
 
Oh
Right, yeah, I forgot
 
if ($r->getClass() === null) --> if ($r->hasClass())
 
Done.
 
Abe
3:22 PM
php should try fix some very old naming imho. provide aliases and say that in the next major release (read: you have time a decade to fix your code) previous names will be removed
 
I like that it was me who found that bug and fixed it
 
Abe
i hope this will start with php8
 
So often it's others clearing up after me and my lack of due diligence
 
@Andrea Just wanted to note about called_scope and you fixed it already :-P
 
@Abe Screw 8, do it in 7.1 and deprecate in 8.
 
3:23 PM
@bwoebi hehehe
 
I have a table with around 50k job listings. I want to use the titles to create a sorted list of 10 most common listings...can I do this without learning and training a NLP library?
 
Honestly, I'd like to see all functions proxied by namespaced versions, with rhyme-and-reason behind naming and parameter ordering.
 
This specific bug was 100% my fault. It somehow must not have clicked with me that the function isn't going to have populated called_scope for me, since it's looking at an unbound closure.
 
Abe
@DanLugg at current speed php8 will be a thing in few years. so not much time to wait
 
Though that's assuming I knew what I was doing, and I don't remember that. What I do remember is not bothering to set those two struct members because nothing broke if I didn't...
hangs head in shame
 
Abe
3:25 PM
@DanLugg i know that feel mate :(
 
@DanLugg I wouldn't.
 
array_map(callable $c, array $a...) --> \php\array_map(array $a, callable $c)
 
We already have this big mess anyway and a lot of these functions are awful
Scrap it all and start again. Scalar methods or w/e, I don't care
 
ThW
@tereško I just read this one goodreads.com/series/161972-a-witch-p-i-mystery .. the story is a little flat, but the snarky style is a lot fun. Some of the situations are just absurd (in a good way)
 
Prototype EVERYTHING in userland. Check that it works well. Get users to find the rough edges. Create a new API that's genuinely usable and well-tested.
 
Abe
3:26 PM
@DanLugg string and array functions should work like objects directly
 
@DanLugg You mean array_map(callable $c, array $a...) --> \php\map(Mappable $a, callable $c) :P
 
@salathe Sure, actually.
 
@salathe you mean $a->map($c)
 
Rather, Traversable $t
 
Also, the function should come first in map(), because currying
 
3:27 PM
iterator_map(Iterator $i, callable $c)
 
Abe
btw, check nikic's scalar_objects on github @DanLugg
 
@DanLugg Haha, not being serious :P
 
@salathe I totally am.
 
That reminds me, I still need to do Closure::partial
 
And FFS, array should be Traversable
 
Abe
3:27 PM
@DanLugg totes
 
[] instanceof Traversable === true
 
@DanLugg Have fun with that *backs away from the OMG-teh-API-is-Tehribble discussion*
 
@DanLugg I have a plan for this
 
@salathe I know, right? I hate this discussion, but it really bugs me.
 
~~~ THE SHADOW CLASS HIERARCHY ~~~
 
3:28 PM
@Andrea I AM FUCKING ON BOARD WITH THIS AND NOT JUST BECAUSE CAPITAL ASTERISK TILDES!
 
Abe
@Andrea [drama squirrel gif]
 
It's all well and good picking individual examples of things you would rename/reorder/whatever. But that's going to be the mother of all tasks to apply that to the whole language.
 
plan: we make a hidden class for each of the primitive types. instanceof, ->, etc. will check against that class.
 
@salathe Which is why we should've started yesterday.
 
the primitive types don't become objects. but they do get a lot of objects' features
 
3:29 PM
@DanLugg Ahh crap, I knew I was meant to be doing something yesterday.
 
^^^^
 
so it rewrites 123 instanceof Number to \php\int instanceof Number, for example
 
@Andrea Please. In the end, it doesn't really matter whether they're "true" objects. It's the manner with which we interact with them that determines that.
 
or [7,3,4]->sort() becomes, uh, Closure::bind([\php\array::class, 'sort'], [7, 3, 4])()... kinda
@DanLugg sure
 
Abe
@salathe @salathe why not one at once. alias something only if you are 100% sure it's gonna work. would be risky (read: alias something with something else that is just as bad) and an huge amount of work doing that indeed
 
3:32 PM
Actually it'd be cool to make all types objects from a user perspective
 
Hi .is there a svg parser for php?
 
Internally primitives would still be primitive, but
 
@Andrea Agreed.
 
@zohreh SVG is XML-based, use an XML parser (or do you want to do SVG rendering? that's a different task)
 
yes
I need convert svg tags to png
 
3:33 PM
@Abe because no-one would be down for that, my bet is that the smallest unit of change would be an extension.
 
ahh, hmm. I think Cairo might support that. Not sure.
 
Abe
@Andrea for bool int float string would be super simple
 
SVG rendering in PHP is going to be interesting with all the CSS parsing…
 
@Abe for all of them it would
 
@zohreh imagemagick
 
3:34 PM
@salathe it can handle SVG?
 
maybe
 
Abe
and with that i don't mean removing scalars, just hiding them behind wrappers. for example (100)->toInt() // here is the primitive
 
@salathe how up to date is it with CSS etc.?
 
no I cant use imagemagick and batik
 
@bwoebi I have no idea, I haven't used it in maybe a decade :P
 
3:35 PM
:-P
 
Abe
@Andrea i actually meant that the change wouldn't break anything (apart $string[0] = "x"; offset set)
 
@Abe no no, I'm not going to change the semantics of primitives
 
@zohreh why not?
 
they'll retain their pass-by-value behaviour
 
My host dont support it
 
3:36 PM
Oh.
 
Abe
@Andrea so do what was suggesting levi yesterday, value classes
 
@Abe the primitives shouldn't become objects
 
Hi @Shafizadeh
 
if only because we'd have to rewrite, like, everything
 
Hello to all great people around the globe
 
3:37 PM
@zohreh don't support what, imagemagick or the PHP extension for it?
 
hope all are doing good in their life
somebody please help me in my issue
0
Q: What and where I need to make a change in a file '/etc/php5/apache2/php.ini' in order to display errors and how should I save the changes made?

user2839497I'm using Ubuntu Linux 12.04 LTS on my machine. I'm using Apache Web Server and PHP 5.5.29. Now whenever something goes wrong in code I always see a white screen with no output. So I googled for the solution and come to know that I have to turn the error reporting on in order to get the detaile...

 
Abe
@Andrea i don't care how internally, i like @NikiC's scalar_objects solution just as fine
 
somebody please save my life
0
Q: What and where I need to make a change in a file '/etc/php5/apache2/php.ini' in order to display errors and how should I save the changes made?

user2839497I'm using Ubuntu Linux 12.04 LTS on my machine. I'm using Apache Web Server and PHP 5.5.29. Now whenever something goes wrong in code I always see a white screen with no output. So I googled for the solution and come to know that I have to turn the error reporting on in order to get the detaile...

 
don't support PHP extension for it?@salathe
 
@zohreh then don't use it :)
@user2839497 seriously ಠ_ಠ
 
3:38 PM
@zohreh hey ..!
 
what can i do?@salathe
Hi @Shafizadeh
 
@zohreh I'm beginning to think, not a lot.
 
@salathe they're not an ubuntu user and thus confused
 
can you help me?@Shafizadeh
 
windows users don't know 'bout sudo
 
3:40 PM
@user2839497 - hit the windows key, type cmd, right-click open as administrator (or do this for notepad) edit the file and save
 
@zohreh I don't know, maybe ..! what is your question?
 
@Andrea life-threateningly confused, apparently :P
 
@zohreh does your host support gd?
 
(if not win 10, winkey + r)
 
@SuperNoob they're not on Windows
 
3:41 PM
@zohreh personally, I'd just shell out to convert (from the imagemagick command line tools) but that's just me
 
@SuperNoob:Nothing happened after hitting windows key and typing in cmd. Nothing happened on my ubuntu machine. Ubuntu really sucks.
 
what is gd? @Andrea
 
@andrea
I got confused by this comment: * I simply right clicked the file with my mouse and selected the option 'Open With Sublime Text 2' just I do on Windows.*
 
@SuperNoob ah, yeah, that confused me as well
 
PLus, hangovers and stuff
 
3:43 PM
@zohreh it's a PHP extension for drawing things. it doesn't support SVG though
 
@SuperNoob:What's the confusin here?
 
I want convert svg to png but my host dont support imagemagick and java @Shafizadeh
 
Don't you use your mouse clicks to open up the files?
 
Ignore me--you need to sudo to edit as root, or get stupid and chmod the file, or chown root:yourusername
 
or select the file by navigating using arrow keys and press enter when you select the desired file
 
3:44 PM
do ls -l -a and see who owns the file
 
@SuperNoob:I didn't get what you are saying. How to sudo? How to edit as root? etc.etc.
 
@zohreh as you said, you have to use imagemagick. Well, why your host doesn't support it?
 
@user2839497 you should learn the basics of Linux before hosting your site on it
 
@user2839497 Okay, so how are you accessing your server's php.ini file?
Like
 
@Andrea: Previously when I was using Windows I never had this much headache in configuring and using PHP on it.
 
@Sean they used the graphical browser
@user2839497 yes because you know how to use Windows
you clearly don't know how to use Linux, and there's your problem
there is nothing wrong with Ubuntu here or PHP
 
@Andrea: But the purpose of Ubuntu is to use the features in graphical way just like Windows. Isn't it?
 
yeah! =) finally home from work
now to enjoy the weekend.
Happy frydai everyone
 
@user2839497 it has a GUI like Windows does, but web servers aren't graphical
 
That's right. But what you're doing is modifying important files.
@RonniSkansing Happy friday!
 
3:47 PM
Thanks man! =)
 
I mean, if you want a friendly GUI, you could use Microsoft's IIS
You've chosen Apache, which has no GUI
Well, I guess there's cPanel or something.
 
@Andrea:I'm not talking about web servers. I'm asking if I can't modify the files using my editor then what's the use of the graphical UI? The file might be a word file or excel file too
 
@user2839497 you can modify the file using your editor
you need to run the editor as root
either by logging in as root, or using sudo (sudo is the better option)
Windows has exactly the same problem if you modify a file that only administrators can. Notepad won't let you. You have to run Notepad as administrator.
 
who gives a crap about shift/reduce right?
./sapi/cli/php -r 'class A{function foo(){}} new A<A>(1);'
[Fri Nov 27 18:49:14 2015] Script: '-'
/home/nikita/projects/php-src/Zend/zend_string.h(121) : Freeing 0x7F8E1BE73600 (32 bytes), script=-
=== Total 1 memory leaks detected ===
 
@Andrea: When I mouse click on a file and open up the file I 'm not understanding where should I do this logging in process with root?
 
3:50 PM
@user2839497 er, you probably shouldn't try to log in as root because Ubuntu won't let you. Use sudo instead.
 
@user2839497 You need to open up your terminal and use sudo
 
@Sean, @Andrea : If anyone of you or both of you can give your answer in step by step manner it would be of great help to me. Could you please do the needful for me?
 
^ this
 
@user2839497 open the terminal, first
 
3:52 PM
@Sean, @Andrea : Please!!!!
 
I just told you what to do
open the terminal
the terminal is an application. find it. open it.
open it the same way you would sublime text.
or, say, a web browser
or the calculator
 
Then:
Actually, that seems different.
 
oh well
./sapi/cli/php -r 'class A{function foo(){}} new A<A<A>>(1);'

Parse error: syntax error, unexpected '>>' (T_SR), expecting ',' or '>' in Command line code on line 1
 
@Sean we both have no idea how or where @user2839497 has installed sublime text
@nikita2206 hehehe
 
@Andrea Yup.
 
3:55 PM
though they're probably fine with gedit
so we should just tell them to do sudo gedit ...
@user2839497 are you still there?
god I really need to eat something. I'll leave this in your capable hands, @Sean
 
I feel like I bring this up too often...but this seems like an XY problem. What is user2839497 trying to actually do?
 
@SuperNoob get their Apache server to display errors
to do that, they need to edit php.ini
...wait, you probably shouldn't use display_errors anyway, should you?
 
Right, so why? IS the real issue "how do I configure apache"?
 
@user2839497 needs to know how to look at the error log
 
If there would a way to disable some tokens inside certain rules...
 
3:57 PM
displaying errors to users is a bad idea
 
Abe
@nikita2206 if($rawToken[0] === T_SR){
                    $tokens[] = new Token(null, '>', null);
                    $tokens[] = new Token(null, '>', null);
                }
 
Yeah, but if it's on a dev or local box..
 
nano /etc/bin/apache/error.log ?
 
tail -f
 
@SuperNoob you'll need to tell them how to do that graphically, but yes :)
 
3:58 PM
or nano for the full thing, yeah
 
@Sean Or that.
 
@Abe oh, a parser pre-processor
 
Abe
lol :P
 
@nikita2206 yeah but you need to know what circumstances you can use that in
 
well he has sublime text...so navigate there and open the log
 
Abe
3:58 PM
levi suggested we could use [] instead
 
It should change on-screen as sublime updates files live
 
Abe
so also you working on generics @nikita2206 rofl
 
@Abe nope it's even more problematic than <>
 
@Abe why not brackets, even?
 
Abe
at least i started a trend
 
3:59 PM
oh, right
 
@Abe was just poking around in spite of today's discussions here
 
@nikita2206 how?
 

« first day (1868 days earlier)      last day (3080 days later) »