« first day (1893 days earlier)      last day (3279 days later) » 

12:09
11 answers to that question
What.
1
A: Editing a starred post in chat breaks display for user who starred it

balphaThis is fixed now, editing events will no longer overwrite the star displays. You can come back from Yahoo! Answers.

@QuolonelQuestions Morning
@bwoebi We allow passing object non-ref VARs by ref (without even a notice...)
Presumably as some kind of BC for PHP 4 new by ref
@NikiC well, then we should fix that bug.
12:28
> asked Apr 30 '13 at 11:54
lol
@bwoebi I suspect it's a feature, not a buf
But I'm in favor of you writing a mail to internals to change remove that special check :P
@NikiC IMO, it's a bug that it wasn't removed along with object by-value semantics.
@NikiC Do we support c99 features, like long doubles?
Never mind, looks like we do :)
12:52
:^)
Senpai noticed me
That's a pretty tasteless avatar even if Jobs wasn't a great guy.
WI-28283 PHP 7 Support: wrong "Argument type does not match" and "Return type does not match" errors for scalar types inside a namespace (https://youtrack.jetbrains.com/issue/WI-28283)

Resolved Issue was resolved.
State In Progress → Fixed
Fix versions 10.x.x, Next EAP
\o/
@Fabor Thanks!
So's yours :^)
posted on December 22, 2015 by nlecointre

/* by Dpz */

Where does the feed come from?
13:13
@NikiC 3v4l.org/LItEB we have a normal notice here… am I missing anything?
only PHP 4 didn't throw a notice…
5.0.5 had the right idea
@bwoebi and "Output for 5.0.0 - 5.0.4, hhvm-3.6.1 - 3.11.0"
cc @Sara btw, there's a bug in hhvm ^^^
hehe
@QuolonelQuestions the only sane thing to do, is to convert all errors/notices to exceptions, with an appropriate error handler, and then handle it as an exception.
@Danack How does one convert errors to exceptions in an object-oriented way without side-effects?
13:22
@QuolonelQuestions Look at the functions that are called from here, they're defined in the same file.
(I only stole those, and haven't checked that they are best practice).
@JoeWatkins I don't particularly like giving people advice about pets, but you really ought to consider going to an animal shelter to find one, rather than buying one from 'breeders'. As you're finding, it's not exactly a reputable business.
I feared it may require set_error_handler(). It seems hard to use that without impacting other parts of an application
well there's one branch of RSPCA on the island, and one other rescue shelter, neither have anything suitable ... we rang a few in southampton and portsmouth but they won't come over the water to do house check ...
I suspect they might in a couple of weeks....
yeah, maybe ... not having any luck anyway
@QuolonelQuestions imo, applications shouldn't have any unexpected / unhandled errors. And yes this means that I use error suppression/squelching wherever it is needed in the app (e.g. $fileHandle = @fopen("foo.txt", "w+").
13:29
I can't write a library that has side-effects on someone elses application, though
set_error_handler cannot be contained within the scope of a library
Correct.....
@bwoebi Ah right, I forgot that it does not apply to function calls. Only non-call VARs
13:52
hi all
is anyone here
??
Is there a way to get the clients computer-name in php? as in: naruto_pc or work-pc? Or isn't that possible using php?
i want to give condition on database selection it is possible?
@PrashantBhatt what do you mean?
@Naruto Unless you are on the network: hell no
14:01
bummer :( I was trying to replicate something like Steam, where you need to verify a new machine with a specific account :P Guess I'll need to figure out another way to do that
Create a java app :P
/and now he has 2 problems.
That's not true
Destroy a java app :Ь
He has a ProblemFactory
14:04
Mm.. I've read there is a way of doing it using javascript, but guess that's not the nicest way :P
ProblemFactoryImpl
:P
Ah well it's just a side project of mine, so I'll guess I'll think it over again ^^
var host = prompt('What is your host name?');
lol, no why didn't I think of that before? :P
14:08
@Sean :P
// People are honest, right?
always trust your user input right? ^^ I mean who would lie on the internet?
//People write comments, right?
le innocent me implement a cookiebar -> BAM! cookiebar inserts a stylesheet with classes with prefix...
entire site fooked
googling "cookiebar" is not helpful
although it did make me hungry
14:25
@FlorianMargaine cookiebar / cookiewall / annoying EU cookielaw thing
Well, all mobile phones have soul. Not a nice one.
11
@AlmaDo lol, so if you want to check the soul of your phone you need to put it in the microwave? Let's see what my iphone will give me ^^
14:44
@AlmaDo wtf
@AlmaDo What the actual fuck
14:59
@Gordon lithium battery :D
If I get exactly 7 more rep points, I'll have 123,321 :)
@hakre and I will screw it :p
hmm, I will then do some downvotes on answers until it's fitting :p
I can do this all day (:
Man, it's just one of those days where I realize how dumb I really am. :V
hi
every one
i ve little problem with my code.
user924016
15:35
Mornings11
user924016
1 more workday and mini vacation starts! \o/
I've just been followed by twitter.com/Fe3Wk
> Get ready for #POPULAR ! visit this link you can buy 5000 Twitter followers for only $29!, here http://
user924016
@Gordon =) heh
she only has 1200 followers so I guess it doesnt work :D
user924016
actually not long ago I saw a doc about Indian work places where they created twitter accounts manually one by one
user924016
15:41
completely crazy
user924016
people working almost 24/7 just creating profiles (living at the workplace) and following.. I was blown away by the fact they had not scripted their way out of it
For only $29 are you really going to take that chance
One does not simply script a captcha
@Jimbo :)
Hey guys i know it's a non php related question, but does any of you have knowledge in noSql DBs ? cassandra+titan
well the question is, does deleting a vertex deletes also all the related edges ?
code seems fine.. I don't see whay it's not working ^^
I'm just wondering.. so he wants to build something where someone can just do xx/yyy/xxx/yyy for eternity? :D
user924016
^^ dunno maybe the person is just looking for normal routing/dispatching
user924016
but got of to a bad start
user924016
is it of or off?
@ircmaxell have you implemented anything using AEAD? Trying to work out a good wire protocol, can't seem to get around having two MACs, one for a fixed size header, and one for the payload. Containing payload length in the AAD doesn't seem to work, because you have to read to the end before you can MAC it and verify.
16:13
I'm done for today.. have a nice evening guys :)
or morning for some of you :)
later @Naruto
@Leigh I keep reading that as eat a dick...
@Joseph that sounds more like a graph db question
@Leigh You need the length to stop reading?
ah. titan is a graph database. didnt know that
@NikiC I need the length to finish computing the tag
user924016
16:20
nice title
http://stackoverflow.com/questions/34420077/javascript-not-working-in-browsers
You're a nice title
:^)
@NikiC I was thinking of sending [aad][tag][ciphertext], where [aad] = [sequence no][ciphertext len], but tampering with that length could cause a hang waiting for data that isn't coming. I could make the ciphertext include it's length at the start, since it's a stream cipher I can retrieve it as I decrypt the first block.
although, the first block could be tampered with to mutate the length, and I'm no better off
@Leigh Better safe than sorry: Use two macs
Unless this is message size critical?
It's variable length
No, it's not critical to be kept as compact as possible
@NikiC Do you believe it's possible to generalize asynchronous operations such that you can wait on objects that do not explicitly support async? i.e. it would be possible to wait on SoapClient to return data even though it does not support async calls or wait on some third party library that makes network calls but does not support async - or is it only possible to leverage async solutions with components specifically written for it?
anybody here using phalcon ?
@PeeHaa What is this?
And why does it have so many stars
@QuolonelQuestions Whether we want to get rid of on main
Oh, so you're using stars as a sort of voting system?
I mean, abusing :^)
16:57
Yeap :-)
Hello
But if the majority voted to burn it why do we still have it?
@JackSmith Those aren't html/css rules
no
click them and click join room
17:01
@QuolonelQuestions Some people (mostly @Andrea wanted to keep it). I also tend to ask more people who voted against why. But I think we are just going to keep it considering at least 10 people think it is useful and at least @Andrea and @Leigh are going to try to keep it clean
@JackSmith Oh it's just spam
Well no thanks
@PeeHaa no it is my room just nevermind
Hi someone ever worked with the facebook tracking shizzle ' facebook pixel ' ?
@PeeHaa I never said I was going to keep it clean, I thought we were doing a mass burn, I could happily churn through them removing the tag, but fuck reading all of the questions too..
Too late. You pinky sweared
posted on December 22, 2015 by nlecointre

/* by @zessx */

17:20
'morning
17:54
user image
8
^ done :D
18:05
I hate it when things go bad in absolutely weird ways, seemingly totally unrelated to my changes…
:-)
Christmas Eve I get a present :-)
> visited 2049 days, 2046 consecutive
omg, I never achieved a full year. I should have written myself a bot or so.
:)
18:26
Guys, is there sort of built in cache support in php? One that doesn't require installing some additional tool like e.g.: redis.
@Eugene What kind of cache?
user5236938
how much php should a person know before applying to jobs as a junior developer? (i still have a year and a half til out of the military, this is just for future reference)
Not much
@PeeHaa I need one for rest app to hold translations there so that I wouldn't need to query them each time and it would be nice if it would have a scheduler to watch specified table for new translations.
        live_var = zend_start_live_range(CG(active_op_array), get_next_op_number(CG(active_op_array) - 1));
18:34
You most likely are going to need to install at least an extension
I hate parenthesis misplacing…
@Eugene Or just generate a php file with the translations
@bwoebi Especially when dealing with pointers.
user5236938
I've done login systems, api client for server hosting, game server control with SSH. i know a fair bit about sql injections, xss, and that sort of stuff. I haven't really been able to find competency tests but i'm guessing my next step should be learning frameworks?
Can we please get two different styles of parenthesis, so that we can alternate and it becomes more obvious… like {foo({$bar + 1} + 2)}
18:36
@bwoebi Did you ever manage to track down what I was seeing with generators in master?
@Trowski well, pointers allow a greater surface of errors…
@bwoebi 《 》
@Trowski Still #2 on priority list
@Wicked It might be useful when looking for a job, but it won't help you get a better developer
user5236938
18:38
So what are the things I should do to be a better developer? I look through the manual but it's hard to understand it unless I have an actual need for doing it. @PeeHaa
@PeeHaa looking at the newest questions in , which would you say should be in that tag, and which shouldn't?
@bwoebi Should I be concerned that 7.0.2 has been branched?
trying to get a good idea of what things I should untag
Can I assume that means that bug will end up in that release?
@Trowski Yeah, targeting 7.0.3.
18:39
@Eugene for trivial caching of values, there's the APCu PHP extension, that works if OPcache does
That's not so cool... since then I essentially have to now say "does not work with 7.0.2"
@Wicked That's he point. Which works for me is: 1) build something 2) realize it sucks 3) goto 1
Releases shouldn't be made with regressions...
@Andrea imo (and I am not telling anybody what to do or what not to do here):
user5236938
Okay, makes sense. @PeeHaa Thank you
@PeeHaa 2) is due to a PHP 7 change
@bwoebi Should I bring it up on the mailing list or file a bug report?
When we nuked php-5.x we didn't care if it was 5.x change specific
php7: I could see the segmentation fault question being useful, but that's just a convenient way of not having to deal with bugs.php for people, stackoverflow.com/questions/34281113/…
@Trowski I'll look this evening at it…
18:44
brb @Andrea I think you made my food burn
:(
sorry
@bwoebi Ok, thanks. Wish I could fix it myself, but learning more about internals is still on my todo list :)
morning
@PeeHaa if so, then what would be your suggestion for caching with some sort of scheduler. I assume writing yet another one is pointless.
19:07
okay @Trowski … going to look at your issue now :-)
@bwoebi Awesome, thanks! I realized that only 7.0.2RC1 was tagged, so no worries.
@Andrea No worries. It was well done :)
@Andrea I thought it isn't
@kelunik ohai
@PeeHaa turns out it's not, actually
removed the tag
Basically when I remove the tag it is about: someone is using "7", but could have been using any version for some error / behavior or some feature is removed, but was throwing deprecation notices for a couple of years
grrr… I hate it when composer just times out :x
19:19
Unrelated: I actually notice a proper difference now I am running most of my sites on "7"
More than I expected
It feels much faster, right?
@PeeHaa any further response?
It sure does. And this is not just the "I installed something new and it feels faster". It actually is noticebly faster
@Eugene Why are the translations in the database to begin with?
I have done this too, but I would like to know why you do it to be sure
Why not? It is easier to manage from my point of view.
19:28
@Trowski the example outputs a few times "this is just a test" and then Never reached. Wrote 20 bytes. … what exactly is the expected output?
(on master)
or was it an issue in PHP 7.0 only? don't exactly remember the issue…
What happened with visibility on constants. Is that still alive? is it taregting 7.1?
@PeeHaa this is without mentioning the encoding and so on. In short there are far more pros in having translations in database, rather than files.
@PeeHaa I think it's merged?
@Eugene Yeah. It could indeed be easier. As said I have done it too. What I did was to add a way to manually generate a php file with an array of the translations.
@PeeHaa is merged into 7.1?
19:31
You could automate it, but I liked it better manually
Cool @kelunik @bwoebi
Ah yes. Search #fail
@PeeHaa so you think, that there is no point in having some lower level cache tool to handle this type of cache?
Status might have to be changed to "implemented"?
@Eugene You probably could easily get away with a php array with translations
@Trowski nah, same result with PHP-7.0
@Trowski I see no bug…
19:36
How many translations do you actually have @Eugene?
@PeeHaa at the moment not so much. Around 1k, but I thought it would be a good idea to cache classifiers as well, since they change rarely as well.
@Eugene If it actually ever becomes a problem you could always add a proper caching layer easily
That is true. So for now you would say flile caching for translations should suffice. But what about scheduler? Should it be a deamon proc. or is there any other solution? Don't want to involve cron for that, even if it is exactly for that purpose.
How often do translations change?
hi
19:47
Hola
don't like opening new question, i have problem with slim
it is working on azure, but locally i get 404 for paths
$app = new \Slim\Slim();
$app->get('/yolo', function() {
echo "blabla";
});
$app->run();
i'm using phpStorm which just run it on localhost:62061
i can run index.php, but for every path in slim i'm getting 404
@PeeHaa not too often. They not so much change as whether new ones are added.
I think I'm going about it the wrong way. I was thinking about java application, that runs in its cluster, but php application runs each time when someone executes some process. So there is no direct need for scheduler, I assume.
But even there was, I actually can't think of any other solution besides involving cron.
You could make it a part of your build process, but whether that's the ideal solution really depends on how you want it to function
So it still would be manual, right?
can anyone help? :(
19:56
Depends on your build process :)
i can run $app->get('/'), but for any other path i get 404, i'm probably doing something wrong with my url paths
@Gudin Did you setup your webserver to rewrite requests?
this is from slim htaccess:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [QSA,L]
AllowOverride All
is that what rewriting means?
i'm new with all php thing
@PeeHaa I see what you did there :)
;-)
20:00
Still thanks for brainstorming
@bwoebi It was an issue only on master. I never saw it when I compiled 7.0.1.
Let me see if I can still reproduce it.
Hey all, I wrote a 'Pair Debugger' and would love to get feedback if people have the time. github.com/sean-der/therac
6
It is written in PHP/Javascript, just a web based Xdebug client.
20:15
@PeeHaa by the way. Thought about it a bit. Seems to me, that I was talking jiber-jaber. Cron is correct solution for scheduler. It is always present on unix type servers as far as I know, so you don't need much to make it work.
@SeanDuBois interesting idea!
submit it on reddit ;) oh, you did
Any OS will have some scheduler. So yeah :) @Eugene
20:29
Hey, im working with PHP on my Raspberry PI, and im trying to find a file on a USB drive, this will be in a cron job for every minute... the file has a name that i will know every time (settings.txt) and i have the required output to figure out what drives i have.. Now i cant figure out how to sort them... Im writing them all to a text file but they are not spaced with \n on every line and not with \t between them... how is it possible to get the value of "Mounted On" ?
@SeanDuBois Where does the .hbs file extension for templates come from?
this is on ubuntu
@Trowski can't repro on either
@PeeHaa thanks!
yes I saw that :) But what's with .hbs as file extension?
and then the build system lets me do relative includes, really like Browserify
ah sorry! misunderstood your question, handlebars
Don't think I have ever seen that
Ah.
20:40
It is a superset of mustache(.js?) really like it
@PeeHaa that page has the good stuff for me at least, mustache is great but just a few things frustrate me
@Andrea thanks! I tried to throw it over the wall in as many places as possible, my hope is if I can get a few people using it I will get some good feedback
Just have to convince people is is worth their time
Also written in PHP/JS hopefully will make people more likely to use it
Yeah I think I have used mustache once or twice to generate dynamic ads
Damn. I just blew a fuse (or whatever the proper name of the thing is now) and now my router is confused :(
> Pinging 8.8.8.8 with 32 bytes of data:
Reply from 8.8.8.8: bytes=32 time=12ms TTL=49
Reply from 8.8.8.8: bytes=32 time=690ms TTL=49
Reply from 8.8.8.8: bytes=32 time=534ms TTL=49
Request timed out.
Reply from 8.8.8.8: bytes=32 time=3473ms TTL=49
Reply from 8.8.8.8: bytes=32 time=1391ms TTL=49
Reply from 8.8.8.8: bytes=32 time=101ms TTL=49
Reply from 8.8.8.8: bytes=32 time=67ms TTL=49
Reply from 8.8.8.8: bytes=32 time=31ms TTL=49
Reply from 8.8.8.8: bytes=32 time=54ms TTL=49
Reply from 8.8.8.8: bytes=32 time=18ms TTL=49
3473ms? damn
@PeeHaa what did you expect? confused
hopefully a cheap one!
@Gordon bad gordon, bad
20:48
Restarting my router also didn't help...
oh dear
@SeanDuBois It's one of those new fangled on/off switch thingies
@Andrea it's a low bar, but you made no attempt to raise it yet ;)
Damn. Looks like I will be stuck with 1990's internet from now on :(
i'll, uh... fuse your lips together? so you can't make bad puns? like in the Matrix?
maybe the router filesystem ran on FUSE?
perhaps make the router an offer it can't refuse?
20:50
you fight like a cow
@Gordon ha!
@Gordon i am rubber, you are glue
Isn't that like... before your time? ;-)
So was Windows 95, and yet.
@Andrea En garde! Touché!
20:53
Hehw @Andrea
Morning
Does anyone know how to install APCu for PHP 7
Wes
Wes
evenings peeps
@bwoebi I previously reproduced it on OS X, Debian, and Ubuntu. Now I can't reproduce it on OS X on master, PHP-7.0, or 7.0.2RC1.
@Trowski Then it must have been fixed by something.
21:00
If you care I can try to find the commit that caused it…
Nah, I don't… fixed is fixed and done ;-)
21:16
@KristianHareland if not \n what is the line separator? and the column separator clearly is white-space (\s+). preg_split + NOEMPTY flag does the row parsing.
@QuolonelQuestions At least right now you have to use special libraries for that, you usually can't use core functions
Until such a time as PHP has native support for it
hah
you just gave me an idea @NikiC
CFFI for PHP!
unfortunately no longer works though
21:44
@JoeWatkins Do I have to call Thread::join() if I don't care about synchronizing on the thread shutting down?
Does join() do something for graceful thread shutdown, or will the thread exit all on it's own?
I ask because I noticed join() is causing a small delay because it blocks for short period of time.
22:12
I should go to more PHP conferences
<applying with="the force">You should go to more PHP conferences</applying>
E_INVALID_XML
So We can expect to see you at PHP South Coast over the summer?
@NikiC Fixed?
@MarkBaker fixed
Wondering if @NikiC will be at more conferences this year as well
@NikiC Special libraries for what? Wrapping non-async objects or can that not actually be done?
@NikiC I'd like to think it's theoretically possible to wrap a network call in a generator that yields when it's done, but I suppose it's not, because whatever code calls that generator would just stall and wait on the call to complete, the same as it always does... generators or coroutines or whatever don't make any difference towards overcoming that limitation
So I'm not really sure what the advantage of coroutines is. They seem to be more or less the same thing as events
22:51
@QuolonelQuestions well, you'd need special wrappers delegating work to a thread…
@QuolonelQuestions well, they are. The difference is just: no callback hell.
@bwoebi Yeah, I guess so. I was really hoping there would be some way to hack it out in raw PHP though
i.e. without threads
nor extensions
That would be a god-tier feature for PHP
Native async support
@QuolonelQuestions github.com/amphp/mysql … that is mysql. But a raw implementation of mysql in PHP, including protocol etc.
Right
So you have to rewrite the entire mysqlnd driver to support async because you can't just wrap existing code to provide that level of support
I'm trying to parallelize soap calls and so far I haven't seen a library that bothered to write an async soap client
It's all just technical burden anyway
@QuolonelQuestions well, if there's none, write one ;-)
The golden goose is some kind of native async support that lets you push blocking calls into the background
So you can just push long-running network calls to a background worker while foreground work completes more important stuff
I don't actually know what I'm talking about though :^)
@bwoebi Perhaps I could, if I was that masochistic, but I also use random shitty third party libraries like the Cloudinary API which is some of the most garbage PHP code I've seen
It's possible to abstract their library to make it nicer to use but it would be a pain in the ass to have to rewrite the entire thing just to take advantage of async
22:58
Yeah, indeed you don't. Async I/O isn't really about pushing blocking calls into a thread, but rather about having a single handle which you poll and gives you the pipes you can read to and write from.
Right, but I mean, a way to aggregate a bunch of those pipes up to some user defined limit so they can run in parallel instead of queuing them up and running them all in serial
@QuolonelQuestions at some point you can also just start with the RFC (or whatever the SOAP specification is) and start from scratch.

« first day (1893 days earlier)      last day (3279 days later) »