« first day (1998 days earlier)      last day (3174 days later) » 

11:00
@Gordon actually is Narwhals
hello everyone
I've proposed those Final Properties
@Ocramius how did I not know these?!
well I'll come out of hiding, but I'm still invisible to @Ocramius ...
hi @brzuchal
@JoeWatkins if you unset() yourself, I'll know
magic ?
@brzuchal so I looked at the patch
if you scroll upward a little and run that code ^ ...
modifying std_write_property is not enough, also the VM must be modified in a few places ...
also, you must not allow references to be taken, and you must not allow get_property_ptr_ptr to return anything for final props ...
11:04
yes, i know that I haven't finished impl for this
I read about that in Zend/OBJECTS2_HOWTO
you want to use this rather than direct info table lookups
that was this morning
@Gordon You're one of today's luck 10,000.
I've run that code
```
sapi/cli/php test.php

object(Foo)#1 (1) {
["bar"]=>
int(10)
}

Warning: Cannot change final property: Foo::$bar which has already defined value in /home/mbrzuchalski/Workspace/php-src/test.php on line 11
object(Foo)#1 (1) {
["bar"]=>
int(10)
}
```
enable opcache
(enable_cli)
11:07
@Gordon LOL, I would feel even more sorry for the guys working there if that were to happen. :-)
@Oldskool we do have a programmable machine with touchscreen, too. I am very tempted
Guys, is there a way to parse a pdf file and extract all links from the TOC via php ?
Yes
i'll have to recompile it, because i've turned it off of while testing, give me a moment
35
Q: Is there a PDF parser for PHP?

elviejoHi I know about several PDF Generators for php (fpdf, dompdf, etc.) What I want to know is about a parser. For reasons beyond my control, certain information I need is only in a table inside a pdf and I need to extract that table and convert it to an array. Any suggestions?

11:10
@Gordon Hahahaha, you should definitely do that.
@Joseph also pdfparser.org
@bwoebi assuming you haven't done anything with this so far, can I write the RFC now for [] list()?
please call it the rhombuncious list operator T_RHOMBUNCIOUS_LIST
it's a fun word to say, no other reason ...
lol
@JoeWatkins thats not a word. but there is rambunctious apparently
11:20
why not just T_WRONG_THING
I know it's not a word :D
@MadaraUchiha can you please romanize לֹא מְמוּשׁמַע for us? we need it for a new php token
@Gordon undisciplined
Curious about the context
no, the romanized version. not the translation. btw it translates to rambunctious
LO MEMOOSH'MA
11:23
are you serious ?
there you go @JoeWatkins: T_LOMEMOOSHMA
that sounds totally awesome
I love it ...
Although I wouldn't say that rambunctious translates to לא ממושמע
11:24
Madara are you japanese???
rambunctious is basically hyperactive, uncontrollable, right?
@Saitama No, Israeli :)
@MadaraUchiha idk, teh interweb said so.
oh i see ;)
@Gordon Google translate was wrong
unless the correct romanized word is even more awesome than T_LOMEMOOSHMA I'll just pretend Google was right ;)
11:29
@Gordon In what context is this used for?
Do you think I can s/mysql_/mysqli_/g and everything will just work?
13 mins ago, by Joe Watkins
please call it the rhombuncious list operator T_RHOMBUNCIOUS_LIST
@Leigh no, args are different
/me cries
[] list()?
11:31
@MadaraUchiha yes
You mean this? [$foo, $bar] = [1, 2]?
@MadaraUchiha IDK, I just felt its more appropriate to use a hebrew named token
you could whip up a thing, php-ast or php-parser ...
@Gordon Yeah, but at least use the correct Hebrew word :D
@Leigh If the coding is consistent you might get away with some creative regex search/replacing.
11:32
there might be one already
לא ממושמע is better translated as "undisciplined", which isn't what you want
@Leigh Nope
@MadaraUchiha well, @JoeWatkins suggested a word that even isnt a word in english, so I am not sure it's a requirement that it's proper in hebrew ;)
@BenjaminGruenbaum how would you translate the word "rambunctious"?
To Hebrew?
No idea really, not sure I can describe it in one word.
user5992646
11:39
I'm told to enter some code into post loop in WordPress. What is the "post loop"?
@TodoPertin rtfm
user5992646
@BenjaminGruenbaum sorry if I offended you.
tbf the entire concept of something called "the loop" is full retard
@brzuchal did you see yet ?
11:41
You didn't offend me, you asked a question and I told you to read the manual.
@PeeHaa why? I think it's fine
@BenjaminGruenbaum Magically chaning context is terribad imo
user5992646
@BenjaminGruenbaum what if I happened to be a noob and cannot get a thing?
For a programming language? Sure, but in WordPress you treat php like a templating language.
Dynamic context is super common in templating languages - it's a dsl.
user5992646
@Gordon Thanks for the link.
It actually magically changes stuff other functions return
11:43
@TodoPertin noob or not, you know how to use google, do you? because it will tell you what the loop is if you ask it what the loop is
Their whole concept of the_foo and accessing things through implicit globals is terrible, but useful in something like wordpress.
@TodoPertin you're welcome
@BenjaminGruenbaum Yeah that was kinda my related point
Sorry I can't type
Wordpress is retarded in a good way, as in - "so easy that retards can config it" :D
user5992646
@Gordon I did google but again I happened to be too much of a noob for the stuff that came up
11:43
As a programmer it makes me want to vomit :D
user5992646
@BenjaminGruenbaum wow ok.
@TodoPertin so go read an introduction to wordpress tutorial, or a video tutorial
@TodoPertin that was a reference to the discussion I'm having with PeeHaa, not you.
user5992646
@BenjaminGruenbaum ....
@TodoPertin It's true. It makes people cry
About wordpress's internal architecture.
user5992646
11:45
Ok
@BenjaminGruenbaum wordpress has an architecture?
@TodoPertin what did you google then? I just selected your very own question and put it into Google and got this:
I think it's plausible to assume that people even committed suicide over WordPress.
@Ocramius yes, a very battle tested one :P
user5992646
11:45
@Gordon got what?
@Oldskool last time we did a joke like that, it exploded in a shitstorm
see if you can find the similarities in the architecture of that pile of crap ...
@JoeWatkins it surely is pressed
@Ocramius That's why I'm being careful with words like plausible and assume ;-)
I actually think WordPress has pretty solid architecture for what it's designed for.
11:46
But if anyone's offended, let 'em flag.
2 mins ago, by Benjamin Gruenbaum
Wordpress is retarded in a good way, as in - "so easy that retards can config it" :D
@BenjaminGruenbaum I strongly disagree
@JoeWatkins not yet, still compiling, i need to compile without debug to enable opcache, smth like that
user5992646
@JoeWatkins the similarity is "randomness"
11:46
The entire "architecture" makes doing thing right really hard
@PeeHaa then why do you use PHP? It has the same principles of approachable is better than simple.
@Gordon those other tabs, what you working on? :)
Changing things in WP is super easy - that's why it's so popular.
@BenjaminGruenbaum PHP is worknig on getting better al the time
It's super easy to setup, super easy to use, and virtually everywhere.
11:47
@brzuchal shouldn't need too ... you might need to make install, if you have 7 installed right now ... maybe trying to load wrong opcache.so ...
@PeeHaa yeah, I think the problems with PHP are a lot more fundamental than what you can fix at this point.
Wordpress is just adding crap and/or trying to move to node because that makes everything magiucally better
If you're looking at it as a general purpose language.
As php, php does a good job.
user5992646
@Gordon I think I do not know what to say to you.
@PeeHaa Wordpress isn't moving to Node. I'm also not a big Node fan.
user5992646
11:48
Thanks though
(Ironic, coming from a core member, but you're not all php fans and you're php core so that makes us even)
That calypso thing?
Or did I remember that wrong
Meh, that's not really wordpress, it's just some stuff in the admin panel, and fwiw I think doing Node there is stupid.
Wordpress needs more stability as a platform not less.
It's terrible, but it's easy and very approachable, that counts.
@TodoPertin that's one of the things that continues to amaze me. People saying they are noobs and couldnt find things in Google. Yet, they are able to ask a concise question here, which, when entered verbatim into Google, gives exactly what they are looking for. You are certainly not the first person for which that happens. It just always makes we wonder what people searched for. Or where. Maybe they put it into Cornhub…
11:49
Like PHP, I used to strongly dislike it, but I have an appreciation for it again now.
Idiot :P
user5992646
@Gordon ok amazing guy
@Leigh on building up my php c fu ;)
That was a new years revelation for me for 2016, simple is better than easy but approachable is better than simple.
You should totally put that on a tile
11:50
having appreciation for it is understandable ...
@Gordon I gathered that, wondered if you had anything interesting you wanted to work on :)
saying that it's architecture is good ... is really bizarre ...
@TodoPertin I am not saying that to belittle you, else I wouldnt have given you the link to the docs as the first response. like I said, just wondering
@PeeHaa I printed it and hanged it in my office :D
Awesomsauce
11:51
That, and a poster of @tereško
I'm glad it exists, but wouldn't use it and wouldn't tell anyone that they should look to wp for any kind of inspiration when writing their own comparable systems ...
user5992646
@Gordon I'm grateful to you. I never felt you belittled me. You could belittle me though if you want. I love getting belittled. Belittling doesn't bother me.
huh?
@Leigh well, I need to distributed tracing with php and I need an extension for that
@TodoPertin lol
user5992646
11:52
@littlepootis hello
I would really like to avoid becoming a mascot
@TodoPertin nah, I am not the kind of guy to belittle people. ask @tere… uh, nvm
@tereško how did the interview go?
pretty well, I think
@JoeWatkins here it is:
➜ php-final-properties git:(final-properties) ✗ sapi/cli/php -d extension_dir=$( pwd )/ext/opcache/.libs/ -d zend_extension=opcache.so -d opcache.enable_cli=On --rz "Zend OPcache"
Zend Extension [ Zend OPcache 7.0.6-dev Copyright (c) 1999-2016 by Zend Technologies <http://www.zend.com/> ]

➜ php-final-properties git:(final-properties) ✗ sapi/cli/php -d extension_dir=$( pwd )/ext/opcache/.libs/ -d zend_extension=opcache.so -d opcache.enable_cli=On test.php
object(Foo)#1 (1) {
["bar"]=>
int(10)
I will know the results by Thursday
11:54
@tereško awesome
NSFW: like the most WTF movie I've seen in a couple of years: Swiss Army Man starring Daniel Radcliffe
@brzuchal yeah .. look at ZEND_ASSIGN_OBJ handler in zend_vm_def.h
@SergeyTelshevsky meh. I am at work
user5992646
@Gordon Ok I'm going to ask you something that the manuals do not tell. What is the filename version of "the loop"?
@JoeWatkins thi one ZEND_VM_HANDLER(136, ZEND_ASSIGN_OBJ, VAR|UNUSED|THIS|CV, CONST|TMPVAR|CV, SPEC(OP_DATA=CONST|TMP|VAR|CV)) ?
11:55
yes
@Gordon I'm at work and I skimmed through it, no nudity, it's on YT
@SergeyTelshevsky wtf????
@BenjaminGruenbaum yeah
but not really appropriate :)
@TodoPertin just control click on the function in your IDE and it will take you to the file
Z_OBJCE_P(object) == CACHED_PTR(Z_CACHE_SLOT_P(property_name)))
@brzuchal around there ... you can see the fast assign path
11:58
I see porn at work semi-regularly... hazard of the job
user5992646
@Gordon thank you.
@TodoPertin judging by the manual page I just linked you, it's probably in core.trac.wordpress.org/browser/tags/4.4.2/src/wp-includes/… - depending on which function you want exactly
user5992646
@Gordon thank you.
@JoeWatkins so this is the place where need to check if property->flags is final from zobj->ce->properties_info right? and skip assigning with proprietary Warning
yeah
not sure about a warning, by the way ...
12:05
yeah it's just temporary
for now
cool ... holla when you got that sorted and I'll tell you about the next bit that needs fixing ...
@Leigh what do you work with?
@Danack cool idea? :-)
@Jimbo no for Auryn and yes for user code
Why? Lazy instantiation is already working, but you can't instantiate recursively within a delegated factory, that's the issue
12:23
oh sh. I've got it wrong the first time
Hey Guys! Maybe I'm overthinking this but is there a difference between GMT and UTC in PHP? UTC have leap seconds and may result in 00:00:61 once every 4/5 years, is this accounted for using the datetime object?
@Daniel php doesnt care for these things. All it cares for is that you set the correct default timezone
And you MUST do that.
else Unicorn Narwhal Kittens will die
but seriously, Idk
Yes, of course, the thing im thinking about though is timestamps having "60"/"61" seconds in them, and then being presented as such when formatted
12:29
@Gordon Is that the next version of Ubuntu?
anyway, it might be easy to test. thanks
@SergeyTelshevsky piracy
@Leigh which side you're on?:)
@SergeyTelshevsky the lawful
interesting indeed
who's expert in laravel here?
@StormSpirit Who doesn't want to further their career in here?
I need help how to separate the errors on laravel cause I have the same page for login and register
0
Q: How to display error separately on Laravel

Storm SpiritI clicked on login, but the right side of register the errors shows up. this is my view <!-- REGISTER AREA LEFT SIDE --> <div class="col-md-6"> <h3>Member Login</h3> @if (count($errors) > 0) <div class="alert alert-danger"> <strong>Whoops!</strong> There were some ...

@Jimbo tbh, seen quite a few senior jobs lately requiring laravel, with decent pay
12:37
@Jimbo cucumber, butter, inserts
@Leigh It's a step backwards, and you sell your soul :P
not that pay necessarily == career advancement
^---
Wes
Wes
christ some people really are skilled in work avoidance... waited 6 days to get an email answered... what i got is "yes". 3 letters. 6 days.
@Gordon dammit!
12:37
it shows errors on side cause it's the same $error->all()
i need a way how to separate it on return in controller
@Jimbo What's a soul?
need help guys, please
@StormSpirit You asked your question 2 minutes ago, some patience would be nice.
sorry, it's yesterday and no one sees it. so I asked here. sorry sir.
Anonymous
Ignore that >:l
12:40
@StormSpirit It's OK, just give people some time to actually read the question and think about it.
@StormSpirit Tip: add the generic Laravel tag as well. Adding the specific version tag won't help people who watch the generic tag find your question. I've already edited it in for you
Anybody has an idea how to tweet messages with a link in it using the !!tweet command?
{Rest of message} {Link URI} - {Link text} {Rest of message}?
#YDOESNTTWITTERJUSTSUPPORTMD
strip html, it will auto-detect the link?
Yes but here in chat we can actually add custom lin texts instead of the uri
12:44
right, wasn't clear that's what you meant :p
can you even do that on twatter?
Yeah I suck at splainin
@Leigh Nope you can't
@PeeHaa parse markdown
And do what with it?
blah blah link_text (href) blah blah ?
12:45
Although tempting doubt it's going to help me case @FlorianMargaine
@PeeHaa What language is Jeeves written in?
Wes
Wes
transform it to soap
@Oldskool peehaapee
@Oldskool php8
Hi can anyone tell me how to redirect from a page to another with some id values
12:46
@Leigh Looks ok
@astrosixer GET parameters. Append ?param=value to the end of your url
@FlorianMargaine PHP 11
@Jimbo Nope, nothing wrong with dodging agencies
The company might feel a little guilt, but they'll save money
12:46
@PeeHaa LOL. Well, maybe just regex the URL out of <a href> and then strip_tags?
@Leigh Just making sure
@Oldskool But that would mean losing possible context
need help guys?
@jimbo I am using header() function... i tried to append but the syntax showing is wrong
@Jimbo My opinion is based on my own moral code, not the law. /disclaimer
12:48
@PeeHaa Well you can specifically strip <a> tags only?
And leave the rest as is.
@Oldskool you get markdown, not html, afaik
@astrosixer header('Location: example.com?id=your_id');
@FlorianMargaine Oh, OK :(
Ok let me check..
@Oldskool I cannot just strip because I lose content
Wes
Wes
12:49
@PeeHaa is that the origin of your nick? i always imagined you as cowboy shouting peeee haaa! while using an urinal and rotating a lasso
14
ok that worked for me ..thank you @Jimbo
Wes
Wes
the cowboy using a urinal is hella funny though
True that
Let's just keep it as that
anyone expert in laravel? need help here guys stackoverflow.com/questions/36408720/…
@StormSpirit we dont know the answer. check the laravel manual and or github to find out how flash messages work. now please stop spamming your question. thanks.
Wes
Wes
12:51
haha
@jimbo is there any problem with redirection using javascript
I mean can anyone modify it with another javascript? @Jimbo
@astrosixer Yes, anyone can modify it, just by changing the javascript as it'll look like this: window.location.href = 'yoursite.com?id=your_id';
why people downvote without explaining why?
@jimbo can i write another javascript to change the redirection to another page..actually a hacker can do this?
@PeeHaa But does the chat API return markdown or HTML?
12:55
@StormSpirit there is like one person in the entire room,. who has any regular dealings with laravel at all, and that person is not online
@Oldskool html
@astrosixer Any JavaScript you write, is not to be trusted, that's why you perform all your security checks server-side where you control the code and can perform your checks securely
@Jimbo Especially server side JS cannot be trusted :-)
@PeeHaa Absolutely!
@jimbo that means echoing the above javascript is good method.
12:57
(That's not what I meant, but I put an emphasis on any, so I'll own it lol)
@Andrea you can … :-)
@astrosixer You know, it's okay to pass an id through from a javascript redirect. Your server side php code will check whether or not the current user is allowed to use that ID

« first day (1998 days earlier)      last day (3174 days later) »