« first day (1425 days earlier)      last day (3748 days later) » 

07:02
Are we ever going to resolve those "modifying referenced arrays during foreach" tests?
I prefer none to a shit one ...
in 7 you mean ?
In master I mean
I've looked at why the behaviour is different from the test case, but I seriously can't tell whether that's good or not good.
I seen em yeah, I guess dmitry is on it ... email him I suppose ... I'm not sure if we intend to break the behaviour, not sure what the fix will cost us ... not really sure of anything ...
The real answer is of course that developers should be slapped in the face with a referenced array when they try to modify it inside foreach.
... slap me :(
07:04
Just to make a point, the application should immediately stop and format the hard disc.
slaps Florian around with [0, 1, 2, 3].
I use it when accessing arrays of arrays
for example...
i should mention that by modify i mean removing elements e.g.
foreach ($listofThings as &$things) {
    if ($things['id'] === $id) $things['checked'] = TRUE;
}
^ That's absolutely fine.
oh
take your slap back then.
NAO.
:p
07:07
I mean this
@FlorianMargaine sorry, can't change history anymore
@FlorianMargaine can't, php6
good mornings
> can't, Z̲Ḁ̖̠L̮͝G͎̯̤̜͇͖̖O̵̥͚̲̱͉̭̬
morning
07:17
@Ja͢ck if we're at the gore things...
user image
2
Yeah, let's not.
Good morning
@FlorianMargaine being vegetarian I found that amusing =o)
@FlorianMargaine I'm having breakfast for you to know, bastardo (:
07:26
@AlmaDo I think the right term in this case is "bastardo!"
07:50
How do you guys get a little PHP logo on reddit?
P.S. Good moonings
@salathe That's only Joe afaik
Oh, @JoeWatkins can you spread some op love in #php.doc? :)
ThW
ThW
Morning
Guys
user.domain.com/dashboard or dashboard.domain.com/?
Worth noting that user.domain.com already exists regardless.
08:11
You mean dashboard.domain.com/user?
@Ja͢ck No, each user will get their own page on the / path, after logging in.
So why not domain.com/dashboard?
domain.com is reserved for a different application
(rather, it's the public facing site, it's practically a static site, without logic)
perhaps you should give a little more background :)
Okay
I'm making an application that gives each user a small page that allows them to collect subscribers (a landing page, if you will). Each user's page is found on <user>.domain.com
08:14
Then I would go with the former.
Each user should be exposed with a dashboard page (or a settings page, whatever) that allows him to change his page template, custom HTML, styles etc.
08:26
mogoring
> Is it really worth adding a new completely useless function just for a
test? It's not like functions are actually removed every day...
this is the response you get when you ask for "thoughts" on ML
What is "ML"?
@FlorianMargaine @zerkms news.php.net/php.internals/77133
I know you didn't ask about the context @zerkms, but that link should answer both :)
08:30
It actually induces even more questions, but I'm fine with that ))
It's a stupid argument .. when I ask for thoughts I don't mean give me the first thing that popped in your head.
ThW
ThW
@SecondRikudo So the dashboard is the administration ui for user.domain.com? Or is the dashboard an application that creates user.domain.com mini pages? :-)
If you want to question someone's approach you would add "why not xyz"
you're tjerk?
@ThW The dashboard is not for the administrator, it's for each user to control their own little world.
08:32
@FlorianMargaine yup.
has everybody done the "jerk" joke to you?
no, you're the first one
08:35
hehe
interesting point about different platforms, too.
I actually had the same thing today
The live migration of VMs didn't work even though I expected it to
Being on Darwin, I sometimes get crashes where Travis happily works.
Then I found that it shouldn't due to a bug
But the thing is that it worked for me a month ago
yeah, those things really mess with your head
posted on September 10, 2014 by kbironneau

/* by ITriedIReallyDid */

2
that's cool!
user924016
Anyone know like a "toilet book" but for programmers?
Holy crap, I wouldn't have been able to explain this in one go =S
@RonniSkansing I read whatever I normally read atm
08:55
@salathe not an op
@JoeWatkins why weren't you answering to my pings?
which where ?
I saw something here yesterday, forgot about it ...
what's up?
yesterday, by bwoebi
I had some fun @JoeWatkins What do you think of the new branch here?
oh I didn't look at it in detail, I saw it on github too
ah, cool ...
@bwoebi is that for IDE integration? :D
09:00
also, it has dl, we should have that ...
dl as in dl()?
yes
yes to which question? @bwoebi
just that it also can load zend extensions
@Ja͢ck to your last one
@DanLugg Don't use vendor names for libraries, just start with reasonable decent name. There just isn't any point in using long names like that....theoretically there could but so long as you get the name first on packagist (or run your own repo) it's not a problem. And using long names just makes your life a bit harder.
09:02
oh =/
@Ja͢ck yes/no. It's so that you also can debug a whole request without trying to manually emulate the environment.
and it's useful for IDEs, but not only for them.
@bwoebi oh, that's shiny alright :D
@Ja͢ck Deprecated stuff shouldn't be part of code, it's documentation. And to be honest I think it's almost useless. If someone has some existing code that works, but uses a deprecated function, they're really unlikely to change it until the deprecated code is actually removed. For anyone writing new code, you should write in the manual - this is deprecated don't use it - but even then, they may be following a tutorial, and so want to use the deprecated code.
ThW
ThW
@SecondRikudo That's what I meant. But is the UI always attached to a single user.domain.com or can the user manage more then one mini page with it?
But there's an even more subtle problem - for PHP where most extensions are just wrappers around other libraries, and multiple versions of those libraries are supported, it's possible for things to be deprecated based on what version of the underlying library is used. For example in Imagick, certain versions of Image Magick have some functions deprecated with replacements available, earlier versions don't have them deprecated. How would we document that through code?
09:08
mornings
Morning
@bwoebi so then there would be another client extension for sending the request env from any sapi, is that the idea ?
morning chaps
@JoeWatkins there is one in this patch. have a look at phpdbg_rinit_hook.c
Has anyone worked with ZF PHP Unit because I get the following error and I am wondering what might it be, I think there is inconcistencies between the source of Zend and the PHP unite I have installed but I can't be sure: PHP Warning: require_once(PHPUnit/Autoload.php): failed to open stream: No such file or directory in C:\Program Files (x86)\Zend\ZendServer\data\libraries\Zend_Framework_1\1.12.3\library\Zend\Test\P‌​HPUnit\ControllerTestCase.php on line 29
ah kk still reading
09:10
I have put the proper PHPUnit package but there isn't any Autoload.php in the folder but for some reason Zend requires it
@Danack The whole ReflectionFunction::isDeprecated() seems useless to me fwiw.
@Ja͢ck Let's deprecate deprecation!
@ziGi "Zend_Framework_1" wat.
^ too slow
@bwoebi yeah this could work nicely I think ...
@Danack yeah I know
I have to deal with this shit
ZF1
09:15
but I kinda comitted to implementing dbgp ... but we can have more than one way to skin a cat I guess ...
@JoeWatkins actually, they at JetBrains said they'd prefer the new way to establish connections.
also we won't be able to use dbgp as is. (because of different handling of some features etc.)
@JoeWatkins also, how will you nicely integrate any protocol in phpdbg? so that we get English at the console, xml at the remote end?
@JoeWatkins oh, the "krakjoe_" user is :)
ah. krakjoe_ vs. krakjoe__
@Danack Damn straight!
ThW
ThW
@ziGi I don't think the current PHPUnit version has that file any more. It uses the Composer autoloader. The pear package might have it. How did you install PHPUnit? You could try to create the path+file in the include path.
09:24
@Ja͢ck thoughts?
Although actually @Ja͢ck if you are going to add an always-deprecated function for the purpose of the test, you'd really need a __not_deprecated__() to go with it
Plus the whole thing kind of sucks, adding stuff to the standard lib just for the purposes of a CI test sucks...
@salathe I knew that ... irssi is hard ... also, done ...
A function like version_compare() should always be non-deprecated, but I can see the theoretical merit of your argument :) @DaveRandom
@bwoebi if you're pinging me on irc it won't work, I'm using irssi as my client and it's terrible, no notifications or anything ...
@JoeWatkins then switch your client?
09:29
well ... I should do that ... I was using empathy, but, somehow it screwed itself up and I haven't bothered to fix it ... (I dunno how actually, tried the obvious) ... when I open empathy is just immediately closes and opens and I can't do anything else with my mouse ... tried a few other clients but they are all broken in some way; won't start, don't support proxy ...
@DaveRandom Btw, in your proposal ... if you happen to chance upon an internal function that takes more than zero arguments, the test will fail.
I just use irssi as a proxy, with a sensible client (different depending where I am)
@ThW yes inconcistencies between ZF and the new PHPUnit
I used 3.6 and it works now
09:30
(no it won't)
@salathe I was doing that, empathy done notifications and everything ... worked well ... then one day just stopped working and got in the way of everything ... tried to solve it for about 10 minutes ... then bravely gave up ...
@DaveRandom strange, why doesn't it complain about the arguments?
@Ja͢ck that's the purpose of the error_reporting(E_DEPRECATED)
ahh, that's smart :)
Should have added a comment to the test probably
09:32
@JoeWatkins "Brave Sir Robin ran away..." -- youtube.com/watch?v=BZwuTo7zKM8
ThW
ThW
@ziGi Did you install PHPUnit with Composer?
@salathe yes, this ...
:D
@DaveRandom So the only "issue" (which you've mentioned this as well) is that it's possible that php 7 removes all deprecated stuff from 5.6 :)
Or, we could go full retard and add ReflectionFunction::setDeprecated($bool) lol
@Ja͢ck Yeh but other stuff will almost certainly be deprecated from 5->7 as well
Maybe.
It's also possible that 5.7 does that
09:37
@ThW No, only his own world.
Where's the appropriate place to draw people's attention to security problems? bugs.php.net/bug.php?id=67481
@ThW with pear
ta
Just 15 minutes until the last batch of #phpnw14 hackathon tickets are available. Don’t miss out - once they’re gone, they’re gone!
09:55
What is she doing here today?
hi :)
Someone an idea how to solve this? I am using cpanel and I have setup a forwarder. like: [email protected] wich forwards to an [email protected] mail address.
But I receive all the time: (ultimately generated from [email protected])
SMTP error from remote mail server after MAIL FROM:<[email protected]> SIZE=11456:
host mx2.hotmail.com [65.55.37.104]: 550 SC-001 (COL004-MC3F35) Unfortunately, messages from 65.112.121.134 weren't sent. Please contact your Internet service provider since part of their network is on our block list. You can also refer your provider to http://mail.live.com/mail/troubleshooting.aspx#errors.
smtp 550 SC-001 seems to say that my ip? is blocked.
@PeeHaa Much obliged!
Friday or GTFO!
^ nooo, not Friday. That's the day where these ugly rebecca balck videos are posted :-(
10:21
@tereško @HamZa @Fabien Naruto's out
And shit's about to go down :D
Cheers @SecondRikudo
0
Q: Why I'm not able to upload file using Session in PHP?

user2839497I've a form with too many fields. One of these fields is as follows: <form action="go_to_preview.php" role="form" method="post" enctype="multipart/form-data"> <input type="file" name="equip_image" id="equip_image"> </form> Now the purpose of file go_to_preview.php is to show the data filled ...

^ 8 mins ago. Where is patience in our days..
cv'ed, but what's "wrong" with the function?
sure, it's... ugly. But what's wrong?
making several select queries instead of one?
Are you talking to me @FlorianMargaine? :P
Idunno. Didn't look at the code :P The "question" is not a question :)
@PeeHaa where did we land on hackathon?
10:57
@SecondRikudo thanks
@PeeHaa there's just too many wrong things :)
@DaveRandom We can add a skip condition if there are no deprecated functions available heh
@Ja͢ck What so do the whole loop in the SKIPIF? That could work I guess...
Yeah :)
@Ja͢ck that won't work, in fact. If someone breaks ReflectionFunction::isDeprecated() so that it reports false negatives, the test will be skipped...
11:10
Yeah
"If this test is going to fail, skip it."
:-P
Wouldn't be the first lol
^ we just made every test pass all the time \o/
not sure what's worse ... XFAIL or that :)
@Ja͢ck the mbstring check is necessary
@Ja͢ck when do you plan to merge this? today?
11:17
@NikiC Why is it necessary?
It's a test inside ext/mbstring/tests/
regard tests as standalone
we always do the check also within the extension
okay
the directory based check doesn't always happen when you don't run all tests ;)
@NikiC actually, it already checks for "mb_split" function.
can there be mbstring without mb_split?
11:20
i .... doubt it.
technically, yes.
it might be that mb regex is enabled separately
@DaveRandom ow crapness
@NikiC It is, but function_exists('mb_split') can (pragmatically speaking) only yield true if mbstring extension is loaded.
ah, you mean that way around
well yeah, then it is indeed redundant ^^
I didn't see any more failing test cases on travis ... not sure whether i should merge it today ...
in any case, i need to author some stuff for UPGRADING
11:25
@Ja͢ck I'd say go ahead :D
@NikiC Btw, who is Michael Moravec? Is he a regular or just a troll?
I wonder if we can drop ext/mysql in PHP 7 ... After all, has been deprecated since PHP 5.5
@Ja͢ck Never heard of him. Context?
He was commenting on the PR
Nagging about the order of commits that are not "in the right order"
@Ja͢ck "not in the right order" is best solved by just squashing everything together ^^
Yeah, which is my plan exactly.
11:27
@Ja͢ck people like to nag ^^
Indeed.
Okay, I'll write up some stuff for UPGRADING, squash that shit together and push!
cool
first getting some dinner though ^.^
-15k lines is awesome
can't let that Korean food go to waste :D
11:29
Thoughts on ext/mysql removal? Is that realistic?
It really ought to be done, isn't it ...
How is mysqlnd mixed up in this? It supports the old and new interface, right?
mysqlnd is independent. that powers all three exts
so what exactly should be pruned then? :)
just ext/mysql ?
yes
alright, i'll have a look at it.
11:32
the question isn't technical ^^
more along the lines of whether we can already remove it or have to wait longer
yeah, by looking at it i mean determine how much will be sacrificed for the greater good :)
I think I'll do an RFC later today to remove the other deprecated functionality (minus mysql)
if you post that question on internals, surely it will only take 4/5 emails before you get to "but ... Python 3"
we don't actually have that much deprecated stuff
@Ja͢ck heh
we need some objective measure by which we can determine the impact of ext/mysql removal.
the problem is not with projects we can find publicly ...
perhaps we should ask Lester how many of his projects still use it lol
the use of it must then be cross checked with the desire to actually upgrade that crap
this may seem utterly retarded, but ... userland mysql_ wrapper? :)
11:47
please help me with url masking stackoverflow.com/questions/25764583
@PeeHaa Meaning yes or no? I think there are still some available
@now-r-never HTTP_HOST does not have the http:// portion. Just match against the domain without the protocol. RewriteCond %{HTTP_HOST} =a.bc.com
@NikiC Oh, Lars spotted my special function that was accidentally pushed :D ... function with <SPACE> as its name ... hehe
ThW
ThW
@now-r-never You can not hide the page url that way, it will require a proxy of some kind.
i just tried removing http:// & its now throwing error This webpage has a redirect loop
@Gordon ping
12:01
@now-r-never Can't give you any more advice without seeing the actual website address to see what the loop is
@DaveRandom i just removed some scrap from htaccess now its redirecting correctly but url has to be masked i.e., content should be loaded from that site but in url our site address should be shown (i made the website point to this ip in DNS)
-1
Q: MVC 5 - How to convert hash password to readable text

Milli PMVC 5 >> convert hash password to readable text. Sample : HashPasword = AMVicVYXq/Gnj+gJ9QMThNZt84TJZwCIIUdFA3upr+wyMZUu4maPpkXiJhbZ5djwgw== should be convert to 123456

ThW
ThW
@tereško Hehe
@FlorianMargaine fyi, imho, the best way to deal with Yasuo is to just not reply. No good seems to ever come from trying to talk nicely to him.
12:14
Serious - when he reads other people's email, he doesn't seem to read the words, and just assumes what they say stuff which is generally agreeing with him.....which leads to not very productive conversations.
he said stuff that everybody has already counter-argumented anyway, so not gonna bother
does he have commit access?
I closed three open bugs in pthreads by changing two lines ... 4 bugs remain only ...
is it reasonable for me to close that bug ?? I can't do anything with it and it's probably solved now too ?
anyway, a simple question... why not use a singleton in case of a db resource, for example? I know there will be only one connection. It's a lot more configuration to inject a single instance (... basically a singleton) than just use a singleton as is. Just asking why, even if we're in a one-"process"-per-request situation, singletons are bad?
@FlorianMargaine don't ever tell anyone to use a singleton
why?
they're simple to use
and I don't like saying "don't ever" without knowing the why.
12:18
@FlorianMargaine i)Because it makes testing harder - how do you replace the implementation class with test version ii) You don't always want one DB connection.
When you want to have some code read from a slaves read-only DB, but others need to access the read/write master DB, you suddenly need to re-write all your code.
everywhere
@JoeWatkins thanks, makes sense now
Oh, and yeah "programs that rely on global state hide their dependencies." - makes programming harder.
12:20
not sure if being sarcastic ...
no, honest
thanks @Danack
ok good ... there are probably PHP related stuff, but to show the point that it's not just PHP devs saying this, that everyone has been saying it since I learned what a singleton was, thought better to show java/.net ppl all saying the same thing ...
dunno why I didn't think that...
Friend of mine just had an interview where the task involved creating a singleton
12:27
@Fabien Did he refuse?
lol. No I explained to him the error of their ways.
@JoeWatkins "it's not just PHP devs saying this" Hardly any PHP devs say this :-P
I wonder if they knew and wanted people to call them out on it or it was a red flag.
thats what I would have thought ...
I would have called them out on it whatever their motive ...
Aye
12:29
it's not as if I don't have to work with applications that use singletons ... or haven't come across them in the wild, I have and do and it's the first thing that gets fixed in a lot of cases ...
it's easy to program with singletons, in the short term it provides something, it's hardly surprising that startups get to production with such terrible code being deployed ... it's only later they care about testing when they actually have something to loose when things go wrong (profit)
Good morning
Development cycle is often prove it works first, write it properly second. Second phase often doesn't happen because of a lack of understanding from big-wigs.
Followed by major refactoring and finger pointing at the devs :P
'There is never a second phase'
@Fabien That's why I develop right from the start.
Proving it works is done on paper.
user895378
12:42
@LeviMorrison Yeah. I actually rewrote everything completely and massively cleaned it up and only have variadics support remaining to add. It's all in a branch on the repo.
user895378
@LeviMorrison It hasn't -- I've been working on getting Artax to v1 for the last couple of months. It's back to the server as soon as that happens.
user895378
@Ja͢ck Does travis run the pgsql tests? I haven't ever paid attention.
@Fabien If the company asked him to do it, I would strongly recommand to apply at another frim :P
@rdlowrey It does :)
user895378
Wow, impressive.
user895378
12:44
Guess you don't need my slow self then.
I wanted to keep it under wraps until I made more progress, but I guess adding the PR was a good idea after all.
:)
user895378
Also: morning.
same to you Sir :)
12:57
morning @rdlowrey
user895378
mornin' Joe.
user895378
It's so jarring when someone strongly prefers to talk on the phone. You mean ... you LIKE making sounds with your mouth like an animal?
user895378
^ This is how I feel about the telephone.
user895378
Non-verbal communication. Please.

« first day (1425 days earlier)      last day (3748 days later) »