« first day (933 days earlier)      last day (4241 days later) » 

user895378
19:12
I get the feeling that justifying your argument on php.internals by saying either, "this should be implemented because frameworks do it this way," or "this should be implemented because java does it this way" is a bad idea if you want support from the people who matter :)
java or c# mostly??
What is a c#?
language
c# is kinda improved java
Actually, it's not. C# is quite far from Java
c# is wrong
19:18
it allows nested namespaces
c# - class Foo : Bar { public void Foo(){ ... } }, java - class Foo extends Bar {public void Foo(){...} }, I meant this, @tereško
c# isn't that bad.. better than c++ and c
@kaᵠ what do u mean by "c# is wrong" ?
@webarto you here?
@PeeHaa埽 Yes Sir
@webarto Are you still using ZF2?
user895378
More internals goodness ... this is just my opinion, but ... I feel like these voting results highlight why it's a bad idea to allow community PHPers with commercial interests that don't necessarily parallel PHP's best interest (and who aren't core devs) vote on things? If I were Rasmus it'd be enough to make me want to punch a baby.
user895378
"OMG WHY DO WE LET THESE PEOPLE VOTE" -- said by me in my fake Rasmus voice.
19:24
@metal_fan IIRC, it has more to do with standards. en.wikipedia.org/wiki/ISO/IEC_11179 (not sure if this exactly .. never really paid attentions to that crap)
@PeeHaa埽 Never used it IRL, stuck on ZF1 :)
basically , what you see are ISO/IEC standard classes in most of modern programming languages
they look similar, because they are
@rdlowrey We all (every one) have commercial interests
user895378
@ircmaxell True, but some more than others. And not to beat around the bush, I specifically mean the prominent framework devs.
@webarto hmmmm in zf1 view helpers (a.k.a. I write html in mah codez) were less promoted right?
19:26
I don't mind that part
I mind the group think behvior and backdoor politics a LOT more
@tereško hm.. so how about Python? Its not similar to them all
user895378
I wouldn't mind, except I don't see how something like the push for an SplAutloader served the language at all.
contribooting :D
@rdlowrey it didn't, and hence it didn't get through
@PeeHaa埽 Not really sure, but I do use them, have about 10 of them, main one is "display user time (timezone) based off of gmt" etc.
19:29
plusone.google.com/106562836841821712456/posts/1e1aRivNZPZ FWIW: I agree with Phil. To a certain extent at least
@webarto That may be a valid use. But when I see stuff like:
$doctypeHelper = new Zend\View\Helper\Doctype();
$doctypeHelper->doctype('XHTML1_STRICT');
I want to start killing people painfully and slowly
Have you seen Zend_Form or decorators?
They are well known :(
:(
I have an old app, it's about 4 years old, it's way too big to rewrite it in timely manner, so I just learned how to live with it, but ZF1 isn't bothering me that much as Doctrine1 is, which is piece of slow crap.
@webarto I would hang myself if I would have to maintain a combo like that
Ow wait we have homebrew legacy code way worse
Half ass doctrine imeplementation with some stuff just not implemented at all and you need to find out why the fuck stuff doesn't work
Sometimes I think the previous "developer" just thought fuck it at some point an ran off
Like some ghost town
Ghost town code ™
19:34
I LOL and I cry at the same time :D
I'd rewrite the app in my free time, but it would take me a year to do that :D
@webarto hi : The insert query is out of the loop why is it inserting the same record many time ?
Bye.
any Ideal?
Yes, $1.000.000 in unmarked bills.
19:37
hi guys ... quick question there ! does email piping affect sent emails (in other words will emails sent from that account be piped as well ) ?!
plse help if u doknw
@humphrey because you call it from somewhere else. that's why
because there is a bug in the application
@metal_fan thanks and please check this
/* select from the players table players you wanna give to the team */
$player_selection = ("select
player_id, name, surname, position, user_id
from
players");
$res_selection= mysql_query($player_selection );
?>
<?php
echo '<select id="name" class="category" name="name" class="required">';
echo '<option value="">Select Type</option>';
while($row=mysql_fetch_array($res_selection))
{
$player_position = $row['position'];
$player_id_foreign = $row['user_id'];
$name = $row['name'];
echo '<option value="' . htmlspecialchars($name) . '">'
@ircmaxell I think so too.
@humphrey Please don't just dump a unformatted wall of code in here
wall of code! YAY!!!!
@ircmaxell I think you are onto something here
19:41
Also @humphrey is this new code or legacy?
@humphrey Its horrible 1) For INSERT, DELETE, UPDATE mysql_unbuffered_query() should be used instead of mysql_query() 2) Never mix html with php 3) Create some functions (== abstract) common things
@PeeHaa埽 enough
@humphrey That what she said
Badaboom
@metal_fan great I appreciate
Your insert query should use double quotes instead of single quotes
@humphrey
19:43
@PeeHaa埽 am listening
o wait never mind... :S
@beiller great thanks a lot
sorry guys to interrupt you here .. @humphrey no there isnt any problem with your code ..
if it is excuting the queyr more than once then it's gotta be some where else ..
not in the block of code that you have posted ..
19:45
This should be as : $query = sprintf("INSERT INTO....", mysql_real_escape_string($foo)...); if ( mysql_unbuffered_query($query) ){....}@humphrey
@codeiz but it inserts same record more than 6 times
@humphrey I don't think you have given enough code the variables you have plugged in I don't see them being set.
then just please post full code at some paste website and give me the link , i will take a look at it
In PHP, "61" == 61, except for when it's not: http://3v4l.org/UnYaE
@metal_fan okay
19:46
"61" === 61 (false)
@humphrey Ask new question on StackOverflow, that would make sense
user895378
In Soviet Russia, PHP loose type you.
@beiller hence why there are only 2 equal signs
print TRUE; // 1 print FALSE; //nothing
@ircmaxell that's supposed to take a string
19:47
@beiller yes its too long and Manjors here will ::::::::: Too much thats y i never post all
both TRUE and FALSE are constants
@kaᵠ but according to Rasmus, integers are strings
@humphrey use something like pastebin and we can take a look
@ircmaxell where? link: also 3v4l.org/CBJdt 48=0; 57=9 ascii values for digits
great am pasting now
19:48
@ircmaxell that's expected
@ircmaxell no they are not ... please look at type hinting for php ... the triple equal sign will evaluate the type as well .. but the two equal signs will not , i love to think of it as if they do just check if they look the same
@Gordon not according to the engine or people on internals, which is my point
@codeiz I understand how and why quite well. I was proving a point...
Wait ... WHY if ('a' == 0){ <-- returns TRUE ???
ah .. sorry ! :)
php is the most perfect secure language ever. It's been proven by German mathematicians and confirmed by Stephen Hawking.
19:50
<patient>Doctor, it hurts when I punch myself in the face</patient><doctor>Then stop punching yourself</doctor><patient>Screw you, I'm going to cut my face off instead! That's a MUCH better solution!</patient><doctor>………</doctor>
@beiller , i doubt that
@beiller citation??
@ircmaxell I'm not sure I understand. "61"==61 is true. But ctype_digit(61) should definitely not show true because, it's not a string
@Gordon but the number 61 is the same as "61". They are they same thing! So why should it be different?!?!?!
throw a notice maybe?
19:51
@ircmaxell because ctype only works on strings. it even says so in the manual. ok, that doesnt explain why, but it explains why it's expected behavior. ctype is just for strings. nothing else.
I write all my web apps in C, then use exec($_GET['page_name']) in php to call my program for added secuirty
that's clearly interpreted as a character, and that's not really expected behaviour
posted on May 06, 2013 by Liip

So this weekend I visited my hometown Berlin for the PHPUCEU. Actually this was in very close proximity to where I grew up, which was nice as I was staying at my parents place. Usually staying there requires a one hour ride to the hipster areas of Berlin to attend a conference. In this case it was just a 2 stop U-Bahn ride. That being said, this wasn't a "normal" conference. This was an unconfe

@beiller Thanks I posted but before going there I would like to tell what I wanna achieve : I have 4 tables one for player, for teams , for fixtures , 4 for users , so I inserted info in all but now I wanna select existing players for existing teams . to put them in a fixtures table : bin pastebin.com/5mYpp8t6
guys does any one here have any experience with email piping ?!
19:54
@mvriel I know *why*. My point was PHP's core argument against strict-typing functionality is that 61 is the same as "61". And it's not...
3v4l.org/1l5IV - 256 IS a number, 0 or 1 are not :P
@hum
@rdlowrey Sweet.
var_dump(ctype_digit(49));
bool(true)
@humphrey lol your coding makes my eyes hurt man WHY?????
19:56
It expects string as input.
cause: if it is a value between 0 and 255, it's as char value
heres an interesting tidbit: $player_selection = ("select
player_id, name, surname, position, user_id
from
players");
@ircmaxell I'm okay with it. It's not like it's core functionality. It's a separate extension. Bundled and enabled by default. But still in their own extension.
$res_selection= mysql_query($player_selection );
Im not sure how php deals with that. Maybe its not an error, but remove the "("s
wow, what happened there? 256 was not a number in 4.3, then became a number in 4.3.10, then back to not a number in 5.0 then again a number in 5.0.3 ???!
19:58
@Gordon it's a core extension
@beiller You wont believe we are told to things which are un acceptable in coding Imagine not separating html with php , using mysql function and many more am sorry that not my own planned program
@ircmaxell yes, but what I mean is: I always view ext/ctype as a separate thing with a separate purpose. It doesn't need to follow regular conversion rules.
It absolutely does. Anything shipped in PHP needs to abide by the same expectations
otherwise you can suggest that strlen() can behave different than you'd expect, because it's in ext/
@humphrey not sure if I fully understand you. Anyways the code looks incorrect. You do an insert after looping through a result set. So you will insert the value of the last row in your result set. I think you want to insert after a form is submitted, not after printing a select box. Do you follow?
@kaᵠ bugs.php.net/bug.php?id=30276 when fixing this bug, the behaviour changed.
20:00
@Gordon do you mind me looking up to your "Summary" on LinkedIn?
@webarto huh? looking up? what do you mean?
Sounds like a stalker to me
@kaᵠ And as the 5.0.2 and 4.3.9 were two versions existing simultaneously ...
@beiller yes I do
@bwoebi thanks interesting, strange, argh
20:03
$sql_teamselection="INSERT INTO
team_selection
(user_id, player_position, player_name)
VALUES('$id_last','$player_position','$name')";
$player_position and $name should be user input values you get from $_POST['name'] etc
@Gordon then you can also say array functions don't have to work following conventions, they are also just a core extension...
also each time you refresh the page a row is inserted. Even just viewing the page
it needs to be contained in something like you have below:
if(isset($_POST['addfixture2'])){
if you dont want that to happen
@beiller u right
@ircmaxell But why isn't in the zend_parse_parameters simply s used instead of some ugly handling of longs?
@ircmaxell @bwoebi No, ctype just never worked with anything but strings. And it's purpose is to check strings. Always was. The type is a requirement. I see nothing wrong with it not allowing other types.
20:06
@Gordon then force string cast?
Hi all.
morning @Ihsan
@kaᵠ :)23:00, a strange morning...
always morning !
20:10
Yepp
anyone know that PHP supports function pointers? function foo() { echo "hello world"; } $func = "foo"; $func(); HURRAY!
too add to your string handling chit chat
@Ihsan hola
@PeeHaa埽 Hi.
@beiller it's not a function pointer
@kaᵠ when isn't it morning? In the leap seconds?
20:13
@PeeHaa埽 Your site is offended?
"first class function" then.
@Ihsan ?
@PeeHaa埽 It says file not found. Broken heart?
@beiller I tried to do what u said and what it does it only inserts 1 player but in the list it displays them all but even if I select a different 1 it will insert the previous one : pastebin.com/uYqy3C71
@beiller it's not that either
it's a string defining what funciton to look up
20:15
@bwoebi always morning .
it's just a string, until it gets called
a function pointer is just a memory address until its called so whats your point
I like the minimalistic design of my frontpage
> Dejan is a freelance Software Developer Bosnia with a strong focus on object-oriented design and programming. He is a Zend Certified Engineer and has more than 5 years of experience with web-related technologies, and a member of the PHP documentation team.
20:16
@PeeHaa埽 Better make links at root. ;)
@beiller I can call $func .= "2" and have it make sense, where if it was a function pointer, it wouldn't make sense
@kaᵠ I miss the lunch time. In the morning I never eat anything :-(
@Ihsan I have a frontpage on github. Just didn´t got around if cloning it yet ±P
sure ircmaxell, you can add to a pointer to change its memory address
20:17
@bwoebi that's not healthy, i don't eat enough in the mornings anyway
@PeeHaa埽 A lazy programmer is a good programmer.
@beiller What @ircmaxell means is that the function pointer is only searched when trying to call the function with the variable.
@webarto ah, that you mean. sure. go ahead. fix the typos though. And thanks for asking :)
@Ihsan I like that thought :)
user895378
Announcement: Any time I disagree with you about anything, just remind me that I'm probably wrong because I'm stupid and do things like waste the last hour hunting for a bug that manifested because I misspelled a variable name.
20:19
@bwoebi are you calling it a function pointer? I thought ircmaxell is saying its not a function pointer? I don't follow.
@bwoebi which makes it a non-pointer
@kaᵠ I live, I'm not fat nor not fat enough nor I have health problems… where is the problem?
@PeeHaa埽 A lazy programmer generates less code which is doing more work.
It should be in the blood, genes... :D
@bwoebi no. the point is to check whether the string contains digits. and when you force a cast, you are no longer checking for the type, which is one of the essential purposes of that function.
@beiller The pointer to the op_array in the HashTable I mean.
20:20
@ircmaxell well maybe, but then explain it to me please.
@Ihsan that kind of lazy = smart
@Ihsan Only, If he manages to write maintainable code.
whats your POINT hehe...
POINTER get it?
@bwoebi That is the essence reusable maintainable code. code less.
@beiler am following
20:21
@Ihsan Okay, I'll give you code without whitespaces and random variable names like $a, $b, $c. It's less in size then.
@Gordon someone (I won't say who now) made the argument that strings are integers, and therefore strict typing (even optionally) don't make sense in PHP. My point, with this example: was that's an abstraction that's leakier than a mesh-bottomed-boat, and isn't really true in the general sense...
its bits all the way down...
@Gordon I thought a function shouldn't do 97 things, but only one: checking if it has only digits. If I want to know if it's a string, I use is_string().
@ircmaxell am the weakest here but even me I knw strings are not integers
@beiller was that 4 me
@ircmaxell uhh? strings are integers? strict typing doesnt make sense? mmmkay. I leave that type of discussion to internals.
20:24
@PeeHaa why not keep "hello there" on home page and experiment with index2.php or makea sub folder -> soyour site doe snot go down
@Gordon that was the point of what I was saying
(thats also my problem with isset, it checks not only if the variable is in the hashtable, it checks also for Z_TYPE(zval) == IS_NULL)
@bwoebi it's not two things. if we had scalar typehints, ctype_digit's signature would simply be ctype_digit(string $string). Or do you want to argue that anything that has a typehint is doing more than one thing?
@bwoebi ???
20:26
Stop trying to change PHP and embrace its quirks. You will never live a happy life otherwise. :)
4
@beiller Yeah. Back to PHP < 5 !!!
@Gordon Huh?
We all know that was rockstar genius
Or < 5.3 even
@ircmaxell And rats are actually cats?
20:28
@beiller I think if the PHP team has learned one thing in the last years, it is that it shouldn't only extend PHP, but also improve existing things...
define(TEST, 'is this a bug?');
@bwoebi you said checking the type and whether it's a digit is two things. But it's not. The domain of that function is strings, so of course it should make sure the input is of the valid domain (which is what a typehint does). Passing a string is a precondition.
@beiller this should throw a notice if there's no constant TEST
you win a prize @bwoebi
@beiller that is actually very good advice but at the same time very bad advice. So it's Schrödinger advice.
20:30
@Gordon I mean, it has different handlings for different types, what isn't a good behaviour?
gotta treat php like your girlfriend / wife, and embrace the quirky ways it handles dangling pointers
@beiller lol
@beiller actually php is not your gf. let me fetch that quote
@beiller where ever there are dangling pointers...
omg: married to php
20:32
@beiller Arguing with PHP is the same as arguing with your girlfriend
There fixed it for you
we just need a girl here and...
all hell breaks loose
@PeeHaa埽 There is nothing worse than girls to argue with...
unstar pls ^^^
Once you realise that PHP is not your sexy girlfriend but your loyal buddy you learn to appreciate what it can do for you.
20:35
Consider it unstarred
so wait there's no girls here OH GOD sad day... sad sad day...
@Gordon yay for manlove
ancient tweet is ancient
@kaᵠ why? I had to laugh... But why can mods unstar it :-(
20:36
I'm no mod
@bwoebi room owners can unstar
the follow-up to that should be: "but once you realize your loyal buddy has some bad habits, you should help him get over them"
@bwoebi funny, but alone (out of context) sounds really fugly
user895378
I need a couple of recruits to test something ... I'm hosting a TLS-encrypted websocket app at 66.57.216.51:1443 please click the link and see if you can send me messages. Note that you will get a warning from your browser about the SSL cert not being trusted because I just generated and self-signed it. Don't worry, I'm not giving you malware or anything.
hey I got a signed cert from SSLstart but no one supports it what a rip (its free)
20:38
@Gordon or something along the lines: "don't change, embrace"
wait no
whatever the free ssl place is. Later guys!
@rdlowrey SSL certificate doesn't match
user895378
@kaiser right, that's expected.
works
evening
20:40
Evening @Eugene
user895378
Okay guys, thanks for the testing ... 'preciate it.
n/p
@PeeHaa埽 holla amigo :)
@rdlowrey Why didn't you use 127.0.0.1, but 192.168.1.1?
because aliens...
user895378
20:42
@bwoebi I didn't, that's what my router bound for the address I suppose.
user895378
Firewalling that port back up, thanks again for the assist.
The garbage collector seems to like stack overflows when using references to itself in an array...
ten things developers hate about recruiter emails http://blog.careers.stackoverflow.com/2013/05/06/top-10-things-developers-hate-about-recruiter-emails-and-how-to-avoid-them/
user895378
@beiller What do you mean by "no one supports it"?
@Gordon Hah, got 2 same emails from Facebook.
user895378
20:48
Do you mean major browsers don't have the certificate authority in their chain so browsers warn users?
@Gordon: #1, #2, #3, #4, #5, #6, #7, #8, #9 and #10 should be "fucking everything"
i fucking hate recruitment agencies and the fact that its almost impossible to get a fucking job without going through one now
@bizzehdee hehe, yeah, recruiters strike a nerve with developers :)
user895378
I think general douchebaggery strikes a nerve with most people :)
applied for about 30 jobs over the last few months, 25 of which didnt even bother to call me or get back to me in any sort of way
of the 5 that did call me, they were more interested in what im doing now and who im working for now, and what the situation is where i am now, rather than the job im looking for
Can someone explain me, what's going on there: 3v4l.org/cigJ9
20:55
@bizzehdee Buddy is in the same situation, has a nice portfolio, but still no luck.
A never ending array? wtf?
@bizzehdee you have never worked with a good one...
@ircmaxell: that is because they are all arseholes
not at all
I know 5 really good ones
as in, ones that I'd call without a moment's hesitation.
to represent me
@bizzehdee That's not true, entirely.
20:58
seems these idiots work in a different way where you live

« first day (933 days earlier)      last day (4241 days later) »