« first day (2189 days earlier)      last day (2985 days later) » 

00:21
@bwoebi I could set up another lxr mirror with instructions
Including providing access.
I can't guarantee stability or anything - it's an oversubscribed cheap vm.
@LeviMorrison php-lxr.adamharvey.name/source seems stable. It's just a bit silly we don't have an 'official' one.
00:37
@Danack If we do multiple vms then we can set up DNS round robin for more stability
I'm a big fan of redundancy ^_^
01:18
what happened to lxr.php.net
was an awesome site
Wes
Wes
02:27
4:30 am. i think i should be sleeping, but i'd hate turning into dust. and garlic, i hate garlic
> JScript
yeah
Wes
Wes
@Ekin can i skip 23456 and go straight to 7?
I guess you can
Wes
Wes
02:39
@littlepootis clearly they put it there for people like you :B like, "i program in assembler"
morning
Wes
Wes
best life ever. no neurons mass killing and free sandwiches
Wes
Wes
03:11
someone using phpstorm 2016 or eap around?
Wes
Wes
\o hi, false alarm, solved already :D but thanks
 
1 hour later…
04:36
moin
mornin Joe
o/
Wes
Wes
hey joe, linus
yo wes
> PHP on linux is by default not thread-safe, since thread-safety on linux system is essentially impossible to achieve
I really hate the idea that in 5 years, I'll still be repeating the same stuff ... so I'm going to try ignoring nonsense for a few years and see where that gets me ...
!!rfcs
04:53
Sorry, but we can't have nice things.
6
@Jeeves you are bad bot, and you should feel bad ...
:P
05:22
HI good mornng
As there is no user available in jquery room I have to ask here
$('#form_save').click(function () {
                $.validate({
                    language: myLanguage,
                    onSuccess: function () {
                        $('.mandatory_note').hide();
                        $('#loader').modal({
                            keyboard: false
                        });
                    },
                    onError: function () {
                        $('.mandatory_note').show();
                    }
                });
            });
is it jquery validation or modal validation ?
Wes
Wes
05:46
you could have not too
user6619012
hi all, is below code display notthing :
user6619012
$host = 'localhost';
$dbName = 'designer2';
$username = 'one';
$password = '123456';

$dbCon = new PDO("mysql:host=".$host.";dbname=".$dbName, $username, $password);

$sql = 'SELECT * FROM tbl_users ORDER BY name';
$stmt = $dbCon->prepare($sql);
$stmt->setFetchMode(PDO::FETCH_ASSOC); //allows you to refer to them by column name rather than by number
$stmt->execute();
while ($row = $stmt->fetch())
{
echo "<a href='home.php?id=".$row['userID'] . "'>".$row['name']."</a><br/>"; //builds the link
}
@Exception this is really illogical thing to say ...
"no surgeon was available to fit a pace maker, so I asked a mechanic to do it" ...
user924016
nirbubububgs morninigs
user6619012
hi all, in this code : $fname=$row3['fname']; what is "fname" , "row3" & "fname" ?
05:53
moin ronni
user924016
yo Joe
@user5348fh8y5 please stop spamming the room
Moin all
user924016
morns
indeed
06:05
mornin
'nin ekin
hey joe ♫ ♬ ♪
5
@PeeHaa I had it on my raspi but thats about it
@JoeWatkins I got it ... formvalidator.net
o/
Man, I cannot get my brain to boot up today, I get to the dashboard but then it just bluescreens.
user924016
06:39
=)
user924016
try some music
user6619012
hi all, i am using this code for displaying information in profile page, now how to edit those information and save in database : while ($row = $stmt->fetch())
{
echo "<a href='home.php?id=".$row['userID'] . "'>".$row['userName']." ".$row['userEmail']."</a><br/>"; //builds the link
}
Wes
Wes
@Epodax have a coffee
@user5348fh8y5 you've been asked not to spam this chat. last warning.
@Wes Think I'm gonna need a swimming pool of it today, just let my body soak up the coffee
user6619012
06:53
@Gordon my intention is not to spam, i just wanted to take help from this chat room.....
Wes
Wes
@user5348fh8y5 your questions are absolute beginner level. nobody here will be your "hello world" tutorial
just look up for a guide on google and read it
/no drama
user6619012
@Wes i really took help of "google" before asking here, okay as you are suggesting i will search some more time thanks a lot for suggestion , also for @Gordon & @JoeWatkins
07:10
how does it happen that people seem to be responsible for maintaining/changing code they couldn't have written
@JoeWatkins because you can not remain in the same company for life time..
so ?
couldn't is different to didn't ...
you shouldn't work on stuff you don't understand is my point, I've turned down jobs for that very reason ...
Wes
Wes
because cheaper, i think. "they'll learn by doing"
that's really scary ...
Wes
Wes
it depends on what you are doing. if it's a bank, then yeah, it's scary :B if it's a mom & pop biz kind of site then whatever...
07:18
meurning
nin
@Wes I disagree with "whatever", mom & pop are even more vulnerable to someone making a mistake and ruining their business ...
Wes
Wes
i didn't say i agree, though, but i imagine it happens
morn
Im banging my head against the wall trying to remember the solution to a problem i already encountered
nothing came out yet
mysqldump: Got error: 1045: Access denied for user 'root'@'localhost' (using password: YES) when trying to connect
what the
@Valentincognito wrong password i guess :D
07:22
im sure not
user root has no acces to table ?
Wes
Wes
that's almost definitely wrong password
tripled checked
maybe ur password is expired ?
this is possible since mysql > 5.6
07:23
even if I just connected to the DB using sequel pro ?
@Valentincognito maybe the root user may not access localhost
@Valentincognito yeah. you could start the db without the users table and check if pw expire in table users is set to true
Wes
Wes
another guess is, password contains non ascii characters and your client fucks up the encoding?
@Gordon Wondered whether you had experience with libreelec, but I just upgraded everything without waiting for your response :)
Wes
Wes
peehoo \o
07:26
peehee o/
Morngins
@PeeHaa I don't
@Gordon It's ok. The fork has a faster development time.
\o
Anonymous
mornin
Wes
Wes
07:31
sterling \o
@JayIsTooCommon morn
Anonymous
o/
hello i am in deep trouble
can anyone help me
?
we are listening at the very least
Anonymous
Just run, run and don't look back
07:40
okay i build the send push notification to all users with apns push lib and its take time to send push notification to all users , i have seprate table for token and registered ids and with flag sound and push_enable , is there any way to send push fast ?to all users
I haz internetz again \o/
@kelunik congrats :-D
@LeviMorrison well… the current mirror is stable enough … I'm mainly talking about the official php.net infrastructure though, in general.
It was easier than expected. We could use the old legacy TV / radio network.
@bwoebi Yeah, we could just redirect lxr.php.net to the new mirror.
07:55
Mogguh
Anonymous
moin sean
can i ask a english question plz
yes you can
i wrote this sentence for my portfolio.
is it correct?
"I’m a creative web developer / programmer .I enjoys learning new things and exploring new ways of programing & designing."
07:57
". I enjoy learning.."
"programming & designing."
ohh word auto correct it to enjoys
thanks you
Wes
Wes
*thank you
monins
Wes
Wes
[I] thank you = verb
[he/she/it] thanks you = still verb but it's not you thanking
thanks = noun
right? :B warning: my english sucks too
08:06
'nin2
@JoeWatkins nin
@JoeWatkins o/
star list melted
@bwoebi When will you fix the MySQL reconnection / stale connection issue?
@kelunik when I get to it, I'll probably do it after fixing Pieters issue
08:09
\o/
Good luck fixing my issues btw :P
It's something needed for stable deployments. Having to retry it manually is unacceptable.
<?php echo "Hello Geeks";?>
Well... I guess I can just wrap it and build retry logic, but that's really ugly.
Would you say it's the responsibility of the server or application to add things like headers to every response?
@Sean Depends on the use case
I would say both
08:12
@Sean application.
@bwoebi does git look okay to you ?
@JoeWatkins context?
> He says there are big differences between 7.0 and 7.1, but very little between 7.1 and master.
@FlorianMargaine Do you also always let your applications handle compression negotiation?
that looks true, I'm not sure if someone fucked up a commit ...
08:13
@JoeWatkins no, it's all normal
@PeeHaa especially compression negotiation
No shit?
look up CRIME attacks
That's that ssl thing right?
How does that relate to it?
only the application can know if something is compressable without being vulnerable to this attack
08:15
Hmmm in my applications all requests would probably be vulnerable
@FlorianMargaine However, in reality, everybody uses Gzip, just no TLS compression.
@PeeHaa Probably only your CSRF tokens.
Yes which is on "every" single page
And yes that's a bit exaggerated, but at least on a lot pages
I assume that's the case for most websites, but I may be talking out of my ass here :)
lol @Ekin does that work? Adding the hacktoberfest label to your own pr?
@bwoebi help ... I merged the get_class stuff into 7.1 the other day, wasn't supposed to do that ...
morning
@tereško ohai
08:20
@PeeHaa You don't need the label at all.
I tried revert but strange stuff happens, not sure how to fix it :s
@JoeWatkins instead of? master only?
@kelunik you don't?
@kelunik oh.
it was only intended for master
yeah
08:21
@PeeHaa the latter is a yes, I guess... or I didn't get your question maybe
@JoeWatkins Is it worth reverting? :-P
haha, I think so
I'll look at it in a few min
@Ekin AFAIK every PR counts. The label just helps people to discover easy issues.
thanks bob :)
08:22
At least I didn't even know about the label last year.
I've just used the -s parameter for the first time for real … IMMEDIATE MEMORY LEAK
Arghs
@Wes 1) Go to here 2) open the chat 3) hover over the left edge of the chat window
yw :P
cc @FlorianMargaine ^^ tell them to fix it :-)
@PeeHaa I also know why the foreach shows as executed… FE_FREE is on that last line
@PeeHaa get_executable() shows executable lines (i.e. with relevant opcodes)
and oplog shows any lines with executed opcodes
Wes
Wes
@PeeHaa shake it shake it shake it shake it
What's an executable line?
08:27
@PeeHaa Fix it fix it fix it fix it.
Opposed to a non executable
@PeeHaa One with OP codes probably.
But it does have OP codes in there
@PeeHaa Show it or it didn't happen.
/me checks example before sharing it to be sure :P
Trying to find the file. Coming....
is there a C# room?
 L79   #19    FETCH_DIM_R             $body                "errors"             @12
 L79   #20    FE_RESET_R              @12                  J31                  @13
 L79   #21    FE_FETCH_R              @13                  $error
 L80   #22    FETCH_DIM_IS            $error               "code"               @14
 L80   #23    COALESCE                @14                  J25                  ~15
 L80   #24    QM_ASSIGN               -1                                        ~15
 L80   #25    FETCH_DIM_IS            $error               "message"            @17
@PeeHaa there are all the opcodes on that line (and the one before), including the terminating FE_FREE
tnx. Was still finding the file :P
cc @kelunik ^
What is FE_FREE?

C#

General discussions about the c# language, Squirrels | gist.gi...
08:32
just found it, but thx anyway :)
@PeeHaa freeing the foreached array
ah right
No sorry I still don't get it
heh, when I paste chat.stackoverflow.com it oneboxes it to stackoverflow.com. Bug!!!
What's there to free. It's cow right?
nvm I get it I thinkj
@JoeWatkins git.php.net/?p=php-src.git;a=blobdiff;f=Zend/… it's just that, right?
08:34
fetched for each?
It's this thing $error
@bwoebi yeah
when I tried to revert it, it tried to change stuff in the win32 dir, which I don't get at all ...
I'm just wondering something, we are creating an xml on our webapplication that is being sent to 3th party software. The problem we are facing, is that a node in the xml can contain characters like: " , ' , & , < , > . Now since I've made their application crash based on these characters, they have forced me to replace those characters with their html codes, but isn't that something they should catch on their end before reading the xml?
would like to know how you do it, for future reference ...
@Naruto are you sending them as CDATA ?
"Your program is telling me to get a pet snake. I don't want one." https://t.co/KkcuESbhI9
08:39
@JoeWatkins git revert commitid_here -m 1
:s
that's exactly what I done
why different ?
perhaps you picked -m 2?
@Naruto how do you write these values? Are you using ext/DOM?
@JoeWatkins no, I'm creating the xml in a variable, then I just use: $xmlcoded = base64_encode($xml);
krakjoe@fiji:/usr/src/php-src$ git revert -m fb92482c8ad1e35b82c4d7b758ae0f1f5ecd492^C
krakjoe@fiji:/usr/src/php-src$ git unmerge
git: 'unmerge' is not a git command. See 'git --help'.
krakjoe@fiji:/usr/src/php-src$ git revert -m 1 fb92482c8ad1e35b82c4d7b758ae0f1f5ecd4929
08:41
that's the wrong commit id
ffs
I'm so bad at git
you need to use the commit id of your merge commit
must have copied from log wrong
@JoeWatkins Anyway, pushed
thankyou
and we're still sure there is nothing wrong with diffs, right ?
I said to davey everything looked normal to me before I asked you to look ... but what do I know ...
08:44
When I saw:
3 files changed, 5 insertions(+), 14 deletions(-)
I knew my revert was okay
git is really very new to me, as you can tell I can't even remember what commands are supported ... eventually, like in ten years, just before we all decide to jump ship to some other vcs, I'll have it all figured out ... too late ...
no problem … always here to help … later :-)
if that's a horrible way of doing it, feel free to tell me ^^
bob did I merge into 7.1.0 also ?
@Naruto it's horrible ...
@JoeWatkins It's fine now :-) … now really afk
08:49
well what I'm about to say is 2, but don't shoot me plz, it's legacy code, and it's using soap to call a webinterface and that's expecting it to sent it like that..
<?xml version="1.0" encoding="UTF-8"?>
<body>
      <node>
        <![CDATA[
        <xml>
                <here />
        </xml>
        ]]>
      </node>
</body>
@bwoebi cool, ta
Adi
Adi
hello guys. can you help me here with my problem?
@JoeWatkins would you mind explaining me what the difference is? (beside the visual difference)
@Naruto No your xml is invalid and you should feel bad
:)
I don't really understand that question ...
08:51
The term CDATA, meaning character data, is used for distinct, but related, purposes in the markup languages SGML and XML. The term indicates that a certain portion of the document is general character data, rather than non-character data or character data with a more specific, limited structure. == CDATA sections in XML == In an XML document or external parsed entity, a CDATA section is a section of element content that is marked for the parser to interpret purely as textual data, not as markup. A CDATA section is merely an alternative syntax for expressing character data; there is no semantic...
> … difference between character data that manifests as a CDATA section and character data that manifests as in the usual syntax in which, for example, "<" and "&" would be represented by "&lt;" and "&amp;", respectively.
@PeeHaa no it's not! :(
Does it validate against the dtd?
@Naruto tl;dr: use ext/DOM to generate your XML
@PeeHaa I don't know, No way of knowing either.. I'm just generating what they (3th party software) tell me is possible, the only problem they have now, is that charaters like < , >, " , ' and & are causing unexpected behaviouron their end, and now they are forcing me to change those characters into html codes
Anonymous
08:54
@tereško this guy...
Does anybody know a sane library for XML / HTML / XPath?
@kelunik ext/DOM or whatever floats your boat from stackoverflow.com/questions/3577641/…
it's really nice and does all the things
it's not totally sane ...
Anonymous
@tereško He's on of their core developers.
there is a problem with refcounting internally, so that children will disappear or php will fault in some circumstances ...
how does a sheep open the door to a bungalow, or a bedroom ?
I have no idea
@Gordon Had a look at FluentDOM, resulted in github.com/FluentDOM/FluentDOM/issues/53
@kelunik you can just ping @ThW for anything about FluentDom
I don't want to use stereotypes of welsh people, but it sounds to me like someone was caught with a sheep in their bedroom and rather than just admit whatever they were doing to the poor sheep, they came up with this whole pot story ...
08:59
@Gordon I did, he didn't respond yet, let's see.
is this dontbug thing similar to what rr does?
@Naruto What are those characters part of? Attributes? Textnodes?
Normal xml?
@Ekin yes
It actually uses rr
hmm okay
<name01>textblblb < zaekrbae</name01>
Yes that's you fault
09:03
@Naruto this needs to be &lt; then.
That's not valid xml
oh that is so funny re cakephp
Nothing to do with their end being stupid
Anonymous
@JoeWatkins ikr
Adi
Adi
hello guys, can you help me about this

echo "<td onclick=\"window.location = 'edit_visa.php?id=$visa_id'\"><input type=\"text\" class=\"form-control\" size=\"5\" value=\"$visa_expiry\" ". (($today >= $visa_expiry) ? "style=\"background-color : #e60000; font-weight: bold; color: white;\"" : "") . "></td>";

the text box change its background if var $visa_expiry is the same as the date today or greater than. My code above is working but when I change the value of $visa_expiry to any that that is in year 2017 or more that, the input text change its color
09:05
Either add some htmlspecialchars (with the XML flag) magic or use cdata
17
A: PHP - Is htmlentities() sufficient for creating xml-safe values?

GordonDom::createTextNode() will automatically escape your content. Example: $dom = new DOMDocument; $element = $dom->createElement('Element'); $element->appendChild( $dom->createTextNode('I am text with Ünicödé & HTML €ntities ©')); $dom->appendChild($element); echo $dom->saveXml(); Output: <

@Naruto see the example in that answer
@Adi Wow that double quote escaping is horrible :(
^++ indeed
Also learn to use css classes
so basically I'm responsible on my end for changing those values?
09:09
Yes
You need to make sure your xml is actually valid
true, but shouldn't they do that aswell?
No they can't
You're the sender of said xml
yes, but you can't tell me there is no way of validating an xml on their end?
Yes there is and they did
They told you it was not valid
no they didn't
09:11
huh?
they told me now, becuase everything went apeshit
but the only way we found out was because our client was complaining about products 'disappearing', and appearantly they were being overwritten
Adi
Adi
@PeeHaa sorry i fixed it now

echo "<td onclick=window.location = 'edit_visa.php?id=$visa_id'><input type='text' class='form-control' size='5' value='$visa_expiry' ". (($today >= $visa_expiry) ? "style='background-color : #e60000; font-weight: bold; color: white;'" : "") . "></td>";

can you help me with my problem?
@Naruto Yes that's crappy
so basically they are as much to blame as me I guess?
Tbh no
At the very least you have to send valid xml
09:12
well, they could have run the xml through some validation
You are responsible for that. Trying to delegate responsibility like that to a 3rd party vendor is cowboy programming
and reject it with a Bad request or something
Sure they should validate it, but it starts with valid xml which is your responsibility
> X-Powered-By PHP/5.4.45-4+deprecated+dontuse+deb.sury.org~precise+1
4
Hmm.
@Sean lol
09:14
@PeeHaa I'm not saing they are full responsible for it.. but tbh I had no clue I needed to change those characters
It doesn't matter who's to blame. Just fix it.
You should have known imo
have some SQL question: when you have a relation of one-to-one, how to decide which table should have FK? 2 different situations: one is when you always create one-to-one relationship (though some say you should then avoid using the relation and merge them to one table) and the second where one appears first
@Naruto Ignorantia legis non excusat btw
is there any way to get at the apache config via the apache binary?
!!en Ignorantia legis non excusa
09:20
Ignorantia legis non excusa (translated from English)
lol
I think I get it either way :)
@PeeHaa it has a wikipedia article ;)
I assume english translated it correctly from latin
1 sec
@SergeyTelshevsky based on table name
at least that's how I do it
wow 7 down... fast...
09:21
yes
@tereško did you make up your mind about that conf? Do you need the rebate code?
@Gordon yes
@tereško yes you made up your mind or yes you need the rebate code? or both?
yes and yes
:P
do you have a room 11 email? then I forward the mail to you
09:24
naah, I dont have one, you will have to use the one on gmail: martins.teresko
sending
yw. Hope the code is transferable
@bwoebi So the TL;DR is that it's a phpdbg bug right? Because although there is an FE_FREE for $error there is still the QM_ASSIGN on $extra
Am I saying / understanding this correctly?
@Gordon well .. that I will; know only in the evening when I get back from woek
*work
09:28
@tereško yeah, sorry if it isn't. they dont say in the mail. but I think it was just some bulk mail really.
@Gordon sorry :( I'm going to try and rewrite that legacy code today or tomorrow, hoping that would solve alot of those problems already :)
Anonymous
@JoeWatkins well said sir
^++
@tereško I'm not asking for a FK name, but which table should it be in
@Naruto hey, at least you have something to do now :P
09:37
For tables A, B: A.B_id or B.A_id
@PeeHaa I've got tons to do ^^
Adi
Adi
This is how I change the background color of input text if the date today is greater than or equals to $visa_expired.

echo "<td onclick=window.location = 'edit_visa.php?id=$visa_id'><input type='text' class='form-control' size='5' value='$visa_expiry' ". (($today >= $visa_expiry) ? "style='background-color : #e60000; font-weight: bold; color: white;'" : "") . "></td>";

But somehow, when I change the value of $visa_expiry to any date that is in year 2017, the input text change to red even the date today is less than the $visa_expiry
you've asked this three times now. please dont spam.
Adi
Adi
yes i know @Gordon sorry
i dont know how to fix it
09:50
just stop asking the same question, easy ...
you could try removing your enter key with a screwdriver or a hammer ...
Adi
Adi
okay thank you
happy to help ... here are some images of enter keys, in case you need help identifying yours ...
Adi
Adi
nice effort though
Instead of asking here every 30 minutes, why not just start by inspecting your variables.

« first day (2189 days earlier)      last day (2985 days later) »