« first day (1825 days earlier)      last day (3132 days later) » 

2:00 PM
@ColinGillespie I would guess maybe if something is horribly misconfigured or just borked - e.g. if for some reason all caching was disabled.
 
What is the difference between get_header() and include function..
 
/me was about to have a good morning
 
"InnoDB: The InnoDB memory heap is disabled" in the log file i see now hmm
 
@SajjadKhan get_header() is a WordPress function codex.wordpress.org/Function_Reference/get_header , include() is a PHP function
 
2:03 PM
@ColinGillespie That is definitely within the "things are borked" category.
 
why it does not work? 3v4l.org/jKRLh
 
@Abe Ouch
 
@Sajad because PHP thinks that there are 109 characters in that string
 
Abe
2:11 PM
@Machavity it's not a gmail address
 
which is substantially less than 200
 
@Abe I know, but it highlights the inconsistency on the issue
 
Let's just brush the + under the carpet for now.
 
Abe
btw, what do you guys do about it? i normalize gmail addresses by removing dots, not sure if it's a good idea
 
Would have loved to use it to potentially find out where spam comes from but 99.9% of places online don't like + in email addresses.
 
2:16 PM
@Sean Create a catchall address
 
@Abe What's frustrating is I have firstname.lastname (signed up during beta years ago) and some other guy (I don't have a common name, mind you) has firstnamelastname and it's a crapshoot as to which of his emails I get
 
@bwoebi, ping
 
Abe
@Machavity lol, really? i thought dots were irrelevant in gmail :|
 
when we were testing our confirmation email system here, a guy derped and put @gmail.com at the end of the test email instead of @ourdomain.com, i think a lot of people got spammed that day
 
lol
 
2:27 PM
Hi
 
Hows life guys? :)
 
yay just got home for work
mornings
exciting RFC right there
 
2:50 PM
morning
\o/
 
guys i want to make a job portal website like naukri.com
is there any free script for tht purpose ?
 
@RizwanAhmed wordpress.org
 
my question is
will wordpress be able to serve this purpose
?
 
@RizwanAhmed That's for you to figure out. It hosts a lot of sites so it probably can
 
okay
buddy thanks !
:)
 
3:03 PM
@NullPoiиteя \o/
 
What is the Tornado (tornadoweb.org) alternative from PHP ?
 
> But, I would like to know that before doing this on the site, do the client need to buy any certificate of PCI compliance from any authority like trustware, symantec etc
 
@JoeWatkins Sounds like ZE is slowly but steadily succeeding at driving @Joe insane...
 
I heard rumors aerys will be public soon
@rdlowrey
 
I've got myself in such a mess ... also, it's all your fault @NikiC
 
3:15 PM
@rtheunissen If you really want to truncate the allocation, yes. If you only want to truncate the string, but don't care about the allocation, you can simply set ZSTR_LEN of s to a lower value
@JoeWatkins :P
 
@Bangash are you looking for something like amphp.org ?
3
 
I ditched the idea of disassembler from uopz and done this instead
 
'slowly'?
@Machavity you're obviously free to recommend anything you like, but for anything that is content related, Drupal is probably a better (aka less worse) recommendation than wordpress. It is at least designed around holding generic content, rather than being document focused.
 
@PeeHaa I had no idea you just needed to buy a certificate to be PCI compliant. What a nice shortcut.
 
@Danack Also, operating a wordpress site is just asking to get hit by bots.
and by hit by bots I mean HAMMERED by bots
I'm not sure if thats the same with Drupal
 
3:24 PM
I'm not sure either, but as Drupal has been able to see the mistakes that Wordpress made in relation to plugins, and has been able to make backward compatible breaks to improve security, it shouldn't be as bad.
 
Too many developers spoil the source and so forth
 
@sean which source are you referring to?
 
Wordpress development process:
 
ehm.. lol that is hilarious
 
lol... what did i just watch....
XD
 
3:29 PM
still watching... lol
 
Well that got dark fast
 
@Andrea "Being able to do return some_other_void_function(); is something I've desired in other languages." Ah, why?
 
it looks slightly nicer then the alternative ...
some_other_void_function();
return;
I don't think that's enough ...
 
3:44 PM
Can someone from internals give a look why memleak reported on PHP7 (latest master) in this example - github.com/pinepain/php-closure-share-leak?
while refcounting looks valid and gdb shows that fci.function_name refcount become 0 at the end of script, memleak still reporting
originally, it happened in my extension and after @JoeWatkins and @bwoebi recommendations I came to this example
 
@Danack I tend to view most of the CMS systems as equally bad. While Drupal is more CMS-y than WP, it's also not quite as easy to install or work with (not worked with it in a while)
 
user895378
@zaq178miami what did valgrind say about it?
 
user895378
also, are you running a debug build?
 
it says that no leaks
 
Also, some people are just gluttons for punishment
 
3:46 PM
debug zts
 
@zaq178miami did you disable the zend memory manager? Otherwise valgrind can't 'see' the allocations.
 
run-tests did that
in my example there might by memleak reported by valgrind, but that is due to fprintf() statements
@Danack, with valgrind and disable debug fprintf() statements, no memleaks reported, just double-checked that again
i normally do b php_closure_leak_handler.cc:119 and then n and print &php_closure_leak_handlers->bucket->bucket[0]->fci.function_name->value.counted-‌​>gc.refcount and add watch to that refcount memory space
 
Morning all, any WP devs in here? I'm trying to include some CSS into my plugin, this is sort of working. When adding the plugin to a blog alot of the styles overwrite. So i'm looking to push my css to be the last to load so i dont get this.
I dont really want to have to class each element and then have to css each part.
would be an arse
 
@Andy That sounds like the wrong solution. Making a plugin only work dependent on the loading order is horrible. Why can't you just use a descendent selector in the CSS?
 
i know right! It's shite. Do you mean: #idtop tr { something }
 
well because the theme i'm using has lots of inline that is loaded after my styles and it has stuff like: #article tr {background: blue; } as it's inline and after the load it means it overwrites it.
no matter how many !importants i use or what not. It's always overwritten. If i could get it loading last then i could at least stop that issue from happening --- might cause others mind.
e.g. i have this: .wls-wp-plugin-results tr { border: none; background: white !important; }
but the theme has this: #omc-full-article table tr:nth-of-type(even)
both apply to the tag, but because the theme is loaded after the plugin stylesheet the second css rules apply
in this case it's setting the background of the tr to #ccc which makes my plugin look shite. I bet i'm doing something fundamentally wrong ... ? But i cant see what it could be
my "best" solution atm is to think about changing the HTML to have most of the styles on the HTML tag ... that way ensuring the CSS doesnt fuck up. But ... gawd ... i dont want to do that, seems too stressful
 
@JoeWatkins @NikiC exactly
 
@Andrea ugh
 
That said I don't think return foo(); should work (no guarantee it'll keep working)
 
@zaq178miami It doesn't build.
Your PHP version check does not work
 
4:04 PM
@NikiC I removed that check, was done for testing purposes
 
> configure: error: Your system seems to lack POSIX threads.
How ... where did that come from ?!
 
posted on October 15, 2015 by nlecointre

/* by Cubus */

 
@NikiC is it on my ext?
 
@NikiC lol
your sethandler is causing the leak @zaq178miami
the code is a mess, I can't figure it out ...
 
@rdlowrey Aerys is still private, today is the 15th ;-)
 
4:08 PM
@zaq178miami yes
Or rather, in TSRM if I enable your ext
Maybe some side-effect of using c++?
 
it can be
I built it successfully on Rasmus php7dev vagrant box and on OS X 10.11 without problems
 
you are addref'ing a closure and not destroying it at the right time ...
 
@zaq178miami The AC_LANG_CPLUSPLUS is probably wrong
intl doesn't use it, at least
@zaq178miami You're likely not doing a static build
 
@NikiC yes, i'll look into intl config.m4 file
 
yep, without that line it works
but looks like @JoeWatkins already found the problem
 
4:12 PM
@JoeWatkins, i add and delref properly, even had to fprintf() refcount to see it with my eyes that one time after i'm doing delref, outside my code fci.function_name get incremented
 
@kelunik look at the other chat.
 
@bwoebi already seen.
 
if you want, i can share my gdb output
with bt on every change
 
@tereško yes you are right, but please take a look at this. why the Output for 5.4.8 - 5.5.30 is empty?
 
@kelunik I thought it was suppose to be next month.
 
4:19 PM
@Sajad because there were multiple changes in how PHP handles multibyte strings in PHP 5.6
 
@tereško look, there is two case: 1. IF condition is true and string will be shorten. 2. IF condition is false and string will not change. but really I don't know why the output is just this: "..."
 
because pre-5.6 PHP does not know how to count multibyte characters
see this variation: 3v4l.org/3vWtQ
 
yeah, correct
 
btw, isn't that text supposed to be read from right to left?
 
@tereško probably the default encoding changed
 
4:24 PM
yes, Persian characters read from right to left
 
yeah, well it looks like mb_substr() is cutting it off wrong
@Sajad this actually is something that you would be better off asking about to your local developers, because in the west we have almost no experience with this type of internationalization problems
 
@NikiC I believe this is the case, as this works: 3v4l.org/Y0aOl /cc @tereško
 
@NikiC, while @JoeWatkins point makes sense, under the hood it is not clear why suddenly refcount get incremented (ok gdb has answer for that) and not properly decremented
 
0
Q: PHP preg_replace_callback is there a way to break the search?

JohnnyQIs there a way to break the search for preg_replace_callback when it reaches a certain index?

 
@Trowski that seems like a bug
 
4:28 PM
@tereško you told you know 4 languages, so all of them read from left to right ?
 
yes
 
ah! alright
 
@RonniSkansing May be, does it run on top of apache ? or its a server in itself ?
 
@tereško The default encoding prior to 5.6 was ISO-8859-1 I think.
 
^correct
 
4:29 PM
@RonniSkansing Because I heard that Apache consumes too much memory while keeping the connections alive for SSE etc.
 
@tereško also this word "internationalization" is the biggest word (in English) that I have seen so far
 
anyway, @Sajad, this is the solutions for your issue
6 mins ago, by Trowski
@NikiC I believe this is the case, as this works: https://3v4l.org/Y0aOl /cc @tereško
 
@Sajad That's why we write i18n instead
 
@Trowski what did you do? what is difference this code with mine?
 
the encoding (the "utf-8" bit there)
 
4:36 PM
ahaaa!!
@Trowski thanks
 
@Sajad No problem. I've done a lot of research into character sets.
 
@Trowski yes, with this solution, I understood you are profesional in this field
 
@Trowski what?! Why does an american know anything about other languages?
I had the impression that you knew only one language: bad english
 
for helping to people (like now) ;)
 
@tereško I can't fault you for that assumption... it's a reasonable one to make.
 
4:43 PM
what? what is that mean? " a reasonable one to make"
"one" means "a person" or "first number" ?
 
Both
 
@DanLugg I meant was in the above sentence
 
"one" in that sentence refers to an assumption
 
@Sajad pneumonoultramicroscopicsilicovolcanoconiosis
 
@PaulCrovella ah I see
 
4:46 PM
Would supporting json_encode with expressions (framework.zend.com/manual/1.12/en/zend.json.advanced.html) be something good for Php 7?
 
@Sajad
 
@Bangash what the hell is that?
 
@Sajad I wanted to know if that amphp.org runs on top of apache of nginx type of servers, or its a server itself ?
 
@Bangash sounds like some disease
 
@Bangash I still prefer hippopotomonstrosesquippedaliophobia (can you imagine I had a typo in that?)
 
4:48 PM
@tereško yes its a disease :) it's a medical term.
 
@Bangash I don't get it ...
@Bangash 3 "of" in one sentence ... "top of apache of nginx type of servers"
google can not translate it ...
 
if I had to guess, some lung disease
 
@Sajad I was looking for a PHP alternative to Python's tornado, someone suggested me amphp.org, I don't know much about it.
 
Sorry, here's a better link on the zend JSON expressions: framework.zend.com/manual/current/en/modules/…
 
@Bangash ah, why would you want to migrate from PHP ?
 
4:50 PM
Do you guys think this is useful for php 7 (next release)?
 
@Sajad I wanna develop an application in Laravel or CodeIgniter, but I wanted to have real-time capabilities in the application and Apache doesn't handle it the right way, that's why I wanted to use something PHP based but as powerful as Python's Tornado or Node's socket.io
 
@Bangash ah i see
 
@Sajad Apache's memory footprint is very huge, so you can't serve even some hundreds users if you're keeping the connection open.
 
@Bangash Shameless plug for my project: github.com/icicleio/icicle
 
Anonymous
ok, just spend 5 hours watching youtube :/
 
4:54 PM
Anyone want to recommend me a code syntax highlighter written in PHP?
 
Anonymous
time to find that firefox plugin :
 
Anonymous
@Danack use the native function
 
Anonymous
otherwise, prism.js is ok
 
@Trowski Let me read it, it looks cool.
 
@samayo Since that was written, CSS has been invented. I would like to be able to change the color by changing the stylesheet.
 
Anonymous
4:56 PM
@Danack there is a PHP lib in github that allows you to only change the style
 
@Danack Wow, that seriously needs to be updated then.
 
Anonymous
not sure if I can find it
 
@Trowski Or just removed from core....because why the heck is that in core?
 
@Danack Good point, that's even better.
 
5:02 PM
Hi @NikiC, do you know if anyone has written a semi-decent PHP code syntax highlighter based on PHP-parser?
 
@Sajad what's strange, you can replace "good lord" with "for fuck sake" in that sentence will have exactly the same meaning
this might help to understand that expression: urbandictionary.com/define.php?term=good+lord
 
user895378
@Bangash memory isn't the problem ... it's the requirement of keeping a process or thread open for the life of each client connection.
 
user895378
so if you have thousands of long-lived clients connected it becomes problematic very quickly
 
user895378
(e.g. in a websocket chat)
 
@rdlowrey But if you have a server which have a small memory footprint like socket.io or tornado, than you can easily support thousands of open connections on a normal server.
@rdlowrey Its very easy using Node's Express or Meteor, but I want to do it inside PHP.
 
5:10 PM
Does anyone know 'Pedro Cordeiro'? and able to take away the hallucinogenic drugs from him?
 
Hey, with a REST API when doing a PUT to update a resource I know you should provide the whole resource but does that include all its internal relations too? That would seem a bit crazy and inefficient. Is sending the ID of the related resource okay?
 
@Danack I would love to take his hallucinogens away from him. What's he look like?
 
Purple monkey dishwasher.
No idea.
 
should be easy to spot then
 
> This happens not because the function returns NULL, but because the = operator casts <nothing> to NULL silently.
$bar = foo();
would be the same as
$bar = <nothing>;
 
5:12 PM
@tibanez you are looking at it in the wrong way. The difference between PUT and POST is that the servers state should not change, no matter how many times you call the same PUT request Well .. my wording suck. What I meant was that after the PUT request is called the, the server should be always in the same state.
 
user895378
@Bangash I'm talking about php here -- the memory isn't an issue
 
user895378
And I understand what you're asking ... just emphasizing that memory is not the bottleneck to keeping open tens of thousands of connections
 
@rdlowrey If memory isn't a problem, than why isn't PHP a good option for creating real-time websockets based applications?
 
@tereško Yeah it is idempotent but I have seen around that when doing a put you should provide the whole resource. I'm wondering does that include all/any relationships it has
 
@rdlowrey I think websockets can easily be implemented using socketo.me
 
5:14 PM
Yes people. It's almost rebecaa time! \o/
 
@rdlowrey Than why it isn't considered a good option?
 
@tibanez lets say you are saving user's profile.
 
For example a an order has multiple products. I want to update the order. Am I expected to supply all the products too
 
@Bangash Can you wait like 24 hours?
 
@Danack Yes, for what?
 
5:15 PM
{"name": "Foo"}

{"surname": "Bar", "name": "Rofl"}
 
:P
 
@Bangash it's because the current 'SAPI's (that are the things that actually accept and handle requests) are a bit shite at dealing with IO. And someone might be releasing a much better thing for handling requests very soon.
 
@tibanez see those two request? The result of PUT requests should not change based on order in which the requests are called.
 
@Danack Seriously ? Afer 24 hours ?
 
5:18 PM
@tereško Yeah I get you
 
@tereško ok tnx :-) ! how ever I think "good lord" is for when you are surprised but "for god sake" is for when you are surprised + having a request begging
however *
 
the former is just a bit more polite way to express the same emotion: surprise
 
@LeviMorrison will you talk about this on the mailing list, as you're the RFC owner? void is a bad design decision.
 
@marcio I already mentioned it.
 
@Danack not aware of that
 
5:26 PM
@Danack About the only SAPI that anyone should be using with WebSockets would be CLI, and implementing IO with either the socket_* family (aka, the BSD sockets, though it's really the PHP wrapper) or the stream sockets... But I'm curious, what's the better way to handle requests?
 
why do you even need a parser for that?
 
Hrmm... while ($row = mysqli_fetch_array($result) && strlen($row['url_key']) > 4) throws "Undefined variable: row"...
 
@NikiC maybe he wants it for non live code editing purposes
 
live online syntax highlighting sucks ass imo
I would love to find a decent lib for that though
 
@PeeHaa lol, but but text editors
 
5:29 PM
butt butt text editors right :P
 
As said I would love to find a decent one @marcio :)
Wrong m
 
Errant pings :P
 
:-)
 
@NikiC to know that function foo($function) { return $function("function"); } should be displaying the word function as 3 different colors/styles.
 
5:35 PM
@Danack For that the tokens are enough
 
Oh, yeah I guess.
 
@Machavity well, he's honest
 
@Danack just out of curiosity, which syntax highlighter is not capable to distinguish that?
 
@marcio All(?) of the javascript ones. They just get stuff wrong.
 
How can I detect a question/answer has how many up/down vote? (I don't want the number of total)
 
5:38 PM
@Sajad Click the vote total. You have enough rep it will show you the breakdown
 
ah, although seems I have not enough rep, anyway tnx
@Machavity If I have enough rep I can see who gave those votes ?
 
How to tell PHP is an older language; a lot of the search results for "php tokenizer syntax highlighting" lead to pages that have code, but no link to github to download the code.
 
@Sajad No. Just shows the total
 
ok
 
@Danack Does hljs also screw up?
 
5:41 PM
 
@Andrea I'm thinking about that notice for using result of void function
 
(I'm still busy installing some things on my machine so cannot test for you right now)
 
@PeeHaa dunno. I want a PHP one for other reasons.
 
Assuming we exclude dynamic calls, maybe we could actually do that...
 
kk
 
5:41 PM
@Machavity very well, I just need to 50 rep more ;-)
 
This is my day in a nutshell.
 
@DanLugg When did you get a tricorn hat?
 
@DanLugg So... AWESOME!
 
@Machavity When I boarded this sinking ship.
 
@Andrea My main concern previously was that we'd have to introduce a runtime check after every single function call -- whether it's a void function or not. However, I just realized that we could integrate this check into the return operation of the void function instead. Check whether the return value is used in the parent frame from there...
 
5:44 PM
@DanLugg You knew it was sinking when you got a php job...
 
@PeeHaa Legacy PHP job.
 
@DanLugg Same thing :P
 
So... maybe s/sinking/sunk/ is a tad better.
 
Though the distinction whether or not it's a dynamic call might be hard to do from there. Hm...
 
@DanLugg what's the worst (if you could just pick one) thing that you encounter as a problem in php code you work with?
 
5:46 PM
@Danack this one did the job right prismjs.com/test.html
 
@prograhammer That it's php probably
 
@prograhammer global. Everywhere. Literally everywhere. And perhaps a close second would be some_function_XX_v132()
 
May somone please tell me this question has how many up/down votes?
 
@Sajad +5 -1
 
tnx
 
5:49 PM
@DanLugg ooooh
People do that?
Mind, I do that as well, but the ten different implementations usually get dropped after profiling is done
 
The other day, I took part of the application and bootstrapped it with error_reporting(-1), running XDebug with scream; the number of notices on one of the pages broke FF.
@NikiC Yea no, this is an ongoing thing.
 
@DanLugg oh, so use of global and also use of random functions with no cohesive encapsuation/oop? Are those random functions just helpers? Or are they make up a whole procedural codebase?
 
@prograhammer Whole. Damn. Application.
 
^ ugh
@DanLugg the reason I ask is I think developers in general tend to be too quick to just rip on a previous developer or existing codebase. But you sound like you are definitely in a sinking ship there.
 
Yea, I was quick to judge, but my judgement isn't without merit.
 
5:52 PM
Hi guys, I wanted to advertize my question here: softwarerecs.stackexchange.com/questions/25735/…
I am looking for a tool which shows email threads as a chat
 
That rant about programmers letting Satan dine out of their open skull just so they can patch a few critical components together with chewing gum and bits of string... yea, that's a reality.
 
@zaq178miami How long are you on that closure leak already?
 
Hope I won't get killed :P
 
@marcio k thanks.
 
@NikiC it was the free_obj vs. dtor_obj callback thing.
feels like that's a really common mistake though…
 
5:55 PM
Ah, already done?
great
 
yup
 
@DanLugg So... no PHP7 migration in Nov then?
 
so, what was the issue @bwoebi? Not sure I understand what you meant by that last comment
 
@NikiC free_obj doesn't efree() the object when refcount drops to zero...
 
@DanLugg I honestly can't be happy working like that.
 
5:58 PM
@tereško WTF, you told me an approach for finding all questions from a removed account. I can not find it in this room, can you please tell me again? (I remember it was related to encrypt and using google
 
“The only way to make the deadline - the only way to go fast - is to keep the code as clean as possible at all times.” - @UncleBobMartin
 
@bwoebi so?
free_obj doesn't, but the engine does
 
@Machavity Well, curiously, a consultant has suggested that be our target: I promptly told him to suck on an exhaust pipe because at best we're targeting 5.6
 
@NikiC hmm?
 
@DanLugg Wow. I was being unserious. I never expected someone would be that stupid
 

« first day (1825 days earlier)      last day (3132 days later) »