« first day (1632 days earlier)      last day (3541 days later) » 

00:25
@LeviMorrison yes, that
00:41
lol I have a full window of @DaveRandom
01:24
@PeeHaa get a bigger monitor!
01:46
anyone used phpdbg? How do you step over a function?
01:56
can somebody give me some pointers on this? I really need help. D:
http://stackoverflow.com/questions/29453328/htaccess-resulting-in-500-internal-server-error-when-rewriting-urls
@dsdeiz @bwoebi are there any instructions written down for phpdbg?
latest HEAD seems really nice. There is no documentation yet though. phpdbg site documentation is for v0.3.2 i think. latest changes got a lot of improvements
 
5 hours later…
06:48
@VeeeneX the one with the Provider class
3
Q: A PHP User System

Hassan AlthafThis PHP User System was built with MySQLi and I also used Composer. I'm planning to improve this, and add more stuff and release it as a sort of a module for Composer. User.php (Controller File in the src/Controller) folder. <?php namespace Application\Controllers; use Http\Request; use Http\...

07:47
Microservices in a nutshell http://t.co/Wm3RXF1P1r
3
08:15
@HassanAlthaf: No I'm not going to tell you how to google that book for you :)
 
3 hours later…
11:05
@Danack help command.
11:17
@bwoebi what's the timeline to merge RFC implementations? this made me confuse news.php.net/php.internals/85734, Tyrael said:
> Hi,
bumping the thread as we should start the release steps (branching out 7.0,
tagging the first alpha or more likely beta) if we wanna keep up with
https://wiki.php.net/rfc/php7timeline
@marcio before RC in every case.
ty :)
What's the short version of if(isset($_POST['smthng'])){ }. I don't want the block
depends on what's in the block
@FlorianMargaine I'd like to do something like if(isset($_POST['smthng'])) = "$coupon = $_POST['smthng']"
11:37
@StevensHaen $coupon = isset($_POST['smthng']) ? $_POST['smthng'] : false; // ?
@marcio that would do the job
just remember to validate $_POST['smthng'] because it can contain empty string or something that equals to false if you compare with == (or use ===)
So, when I pass anything from JS to the PHP, how come the script gets back what's echoed out?
How does this exactly work?
12:08
mogguh
@bwoebi @NikiC FYI this is the branch with the other approach using the entire parser stack instead of post processing the token_get_all return value. It has the advantage of being zero maintenance but comes with the trade of that impedes tokenization of code with syntax errors. The tip commit is the most relevant: github.com/marcioAlmada/php-src/commits/lex-feedback-b
@PeeHaa mognrz
@bwoebi @NikiC I don't think we'll get any patch better than PR#1158 or this new one. I'm considering you both "patch cabals", so I'd like to know your input before moving the conversation to the mailing list.
So, what's now with moving it to zend_language_scanner.l?
@bwoebi ignore that bit for now, I stopped the PR to test the other approach :)
We still have time to test other ideas (except migrating to other parser generators :P ) but frankly these two routes seems to be the only ones that will fulfill the requirements.
I really think the PR approach is the correct one.
And tokenization with syntax errors is not fulfilling requirements for me.
12:23
@bwoebi I'm okay with both patches. I think exposing nude tokenization to userland was a horrible idea on the first place, if somehow we do not consider a PITA to "fix" it then second patch is the optimal way. But if we consider "fixing" it a problem then first patch is instantly much better. But I see your point.
It's a not a lot to maintain on the PR#1158 patch anyway, and I would be happy to help to maintain it whenever necessary.
@bwoebi do you care to elaborate more why you think this is the correct approach?
because syntax errors is a price I'm not willing to pay. Anyway, I have to go now.
going afk now too, back soon
12:50
What's with that logo? fr.php.net
 
2 hours later…
14:35
@VeeeneX The logo is random.
Can anyone think of a builtin function in PHP that takes an optional parameter and sets it by reference?
Anonymous
I'm sure there is at-least one, but forgot thw name.
found preg_match .....
Anonymous
Ah, that's the one
Anonymous
I knew I had seen it before
Anonymous
int preg_match ( string $pattern , string $subject [, array &$matches [, int $flags = 0 [, int $offset = 0 ]]])
Anonymous
14:47
That's one heck of a function
@Worf Yeah, I've hit that before. Seems odd but in practice I've been able to work around it with solutions I'm happy with.
15:06
Hi
How can this be done:
SELECT * FROM product WHERE 'condition' = 1 AND option_1 = :optionOne OR option_2 = :optionTwo OR option_3 = :optionThree OR option_4 = :optionFour ORDER BY *BestMatch*
(the last order by part)
@RahulKhosla Probably use a nested (aka subquery) - dev.mysql.com/doc/refman/5.0/en/from-clause-subqueries.html
For the record, this is a great example of why everyone needs to have their code commits reviewed - bugs.php.net/bug.php?id=69379
@Danack nikita added a comment saying it's not a bug :P
@Danack Thanks! Hows this look? pastebin.com/FcBxTTzH
It looks like an SQL query.
15:21
I hope that's a good thing, seems to work.
@FlorianMargaine The result he's getting without the separation looks weird though. I don't see why separation would be required for the change to work. The problem should be that it changes too much
I added this to the ticket - it is covered in the upgrade doc as:
> arguments passed by reference should be assigned into the referenced value. It's possible to separte such arguments, to get referenced value at first place.
Which is kind of hard to understand.
It's not a big deal, it's just annoying...
the extensions in PHP-src only have to support one version at a time. Most extensions are likely to support multiple versions at once.
So will need to have #ifdef's around code. It's also a 'surprising' break, in the sense that it gives no error message when you run unconverted code - instead it just doesn't work.
feel free to improve the updating guide
Probably nobody touched it since it was originally written ^^
15:41
No - I think the change should be reversed. Having it mean separate in < 7 and don't separate in >= 7 is confusing.
15:52
@rdlowrey is it possible that the latest tag from rdlowrey/Auryn differs a lot from master ?
user895378
@MarcelBurkhard It differs a fair amount internally, yes. The public API shouldn't be affected much, though.
@rdlowrey yeah I was just trying to see how I should set up the unit testing for my own project :D
Basically I wanted to ask you a question about src/unit-test-bootstrap.php and didn't find it on github :P
well, nevermind
16:14
@Danack wut?
It still means separate in php 7
you just need to separate in more cases
@DaveRandom Yeah, please do open GitHub issue if you haven't already, that's the best way to track.
 
1 hour later…
17:23
@NikiC do you know why exactly token_get_all() collects the next three non-dropped tokens after T_HALT_COMPILER?
@marcio ();
ok, so basically it works as a PHP close tag (just another wtf)
17:45
Can anyone help me sort this? My nginx suddenly closes the service at random times.. sometimes its an hour sometimes its 3 hours?
2015/04/05 18:42:04 [error] 2568#2788: *1195 upstream timed out (10060: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond) while connecting to upstream, client: 141.101.98.12, server: centralrp.co.uk, request: "GET /play HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "centralrp.co.uk", referrer: "*********"
17:59
wow, __halt_compiler is horrible. I was hoping to be wrong but php.net/manual/en/function.halt-compiler.php#115099 confirmed some of my thoughts.
__halt_compiler// comment\n();raw
^ this "works" :/
18:17
Hey there I found a bug in php runtime (5.6.7) i'm new
what do i do?
full segfault
@marcio whoa that's dirty
@Danack file_get_contents
18:46
@nikita2206 you get used to php wtfs quick, things like this doesn't impress me anymore.
Is it possible when using XAMP to run a PHP page not stored in HTdocs?
I store all my dev files somewhere away from the XAMP folder.
@James It is possible, try google
19:19
TIL elasticsearch is dutch
19:31
@marcio Why wouldn't it work? Would work the same for a function, right?
@PeeHaa surprised?
@MarcelBurkhard Well yes kinda. The last win=<98 torrent I have seen is 20 years ago I think :P
you can still (easily) find windows 3.1
Show me
20:08
I get redirected to music when I go to those links
ow wait. nvm my proxy is still active I see :P
^^
operating system on like 20mb
@MarcelBurkhard I used to have 6 floppy discs for debian woody
which is <10MB
The good old days where operating system would fit on a couple of floppies and filenames were limited to 6 character names
ahhh
What I find really insane is MicroSD Cards
sooo tiny and up to 128gb
20:16
@PeeHaa umount
@rdlowrey did you sister? also work on mad men?
@FlorianMargaine I always read that as unmount
I just forget it's missing the n
So ofc I always first type unmount :P
yet you know about the 6-chars limit :P
Yeah I do. And everytime I think. God I am this is stupid
@PeeHaa I second that
I wish KeePass had a built-in SSH-Agent
Anybody knows of a decent movie?
20:27
You seen The Interview?
Nope I haven't. But I doubt that is a decent movie :)
It is actually quite entertaining
It was all over the place (torrents) before it was even shown in the theaters
I watched it and I liked it
I don't know what type of movie you are in though
Dunno. Action or... dunno :P
Anybody seen Salem?
btw, I go to the movies like once a week so don't judge me :D
Wow, that's quite a lot
20:32
I think the last movie I have seen in the theater was a long time ago
I think it was cloverfield?
All I remember is that the movie was crap
Cloverfield was the one with the shaky cam right?
Yeah
Don't think I even heard of that movie
Keet it that way :P Waste of time imo
i think the most wasted time went to eminen's movie (8 mile or smth)
20:37
http://chat.stackoverflow.com/transcript/message/22502566#22502566
Turns out there is a plugin for that: http://keepass.info/extensions/v1/puttyagent/PuttyAgent-v3.0.zip
I'm not sure If I can trust it..
@CSᵠ My award for the worst movie I've seen goes to Skyline. By a pretty large margin.
I think If you were to go watch "The Boy Next Door" you'd reconsider
I haven't but the reviews are pretty harsh :D
@MarcelBurkhard If a movie is bad enough it starts getting good again
Most time wasted for me goes to 12 years a slave
@NikiC if you're searching for sci-fi.. just stop, i didn't see anything good after watching "the twilight zone" and "the outer limits" series, every movie after those is just a little spin in duble/tripple the time
and maybe Tales from the Crypt, for action/thriller/mystery/horror
oldies but goodies besties
20:48
I don't think I have ever seen twelve monkeys. Worth it?
Anonymous
@PeeHaa yeah
Anonymous
6.5/10
Anonymous
The zero theorem however was a disappointment
21:06
twelve monkeys is ok
Anonymous
seventh son, divergent, the giver === pure craps
I just found an if statement in my old code that tests seven conditions, all related to a string
<?php
if(isset($_GET["id"])
&& strlen($_GET["id"]) == 24
&& substr($_GET["id"],-4,1) == "_"
&& substr($_GET["id"],-18,1) == "_"
&& ctype_alnum(substr($_GET["id"],-3,3))
&& ctype_alnum(substr($_GET["id"],-17,13))
&& ctype_alnum(substr($_GET["id"],-24,6))){

It's pretty clear that I didn't know regex

I still don't

Anyone care to give me an example? I've been playing around with regexr for a half hour, no dice.
Anonymous
@AustinBurk example output?
@sam_io 12582F_00232EF1F1335_000

RegEx - Regular Expressions

Discuss about Regular Expressions. Learn at: Regular-Expressio...
21:17
I'm rewriting my website :)
oh I think I might've gotten it
Anonymous
@AustinBurk. I was about to make my move, but @CSᵠ is here. He knows way more than I do
@sam_io maybe different things than you
I think I got it! :D
[A-F0-9]{6}[_]{1}[A-F0-9]{13}[_]{1}[A-F0-9]{3}
Anonymous
Nope. My regex knowledge is 1-6%
no need to use a class for _
21:58
@PeeHaa definitely
@NikiC Equally wut. It's entirely possible that I've got the wrong end of the stick but 'z/' now means "don't separate" whereas before it meant "Do separate".
$foo = 'unset';
bar($foo);
var_dump($foo);
This function:
PHP_METHOD(bar) {
    zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &foo);
    if (z_similarity) {
    	ZVAL_DOUBLE(foo, 5.0);
    }
}
will now output 'unset'
Whereas before it would output 5.0.
22:45
@NikiC yes, I realize that :) but there is also the case for:
token_get_all('<?php __halt_compiler***; raw')
Anonymous
@CSᵠ what are you trying to achieve?
it was a test
@NikiC it it will be a: T_OPEN_TAG T_HALT_COMPILER T_POW '*' ';' T_INLINE_HTML
T_HALT_COMPILER is recognized by tokenization even if there is no "();" while thankfully on PHP it fails.
23:06
Morning!!
NEW RULE: people who develop software should be limited to 500mb of free hard disk space
lmaof
i have this gorgeous sql:

$sql = "INSERT INTO adreses (ip, lang, visits, timestamp) VALUES (".
"INET_ATON('171.22.33.1'), '".s('valoda')."',1,'".Date('YmdHis')."') ".
"ON DUPLICATE KEY UPDATE ".
"visits = visits+1";
so..
but i want this to select and return all and increment, If unable to find this value then Insert a row ... anyone ?
this is about so my DB remembers user language prefs(session here) + webstats <- all this in one query, bright ah!??
UNION ?

« first day (1632 days earlier)      last day (3541 days later) »