« first day (2025 days earlier)      last day (2920 days later) » 

4:01 PM
I will try it ... waiting for composer ...
 
@ThW Is there ever any reason to use xpath::query instead of evaluate?
 
I gave that switch a packet.
It was dropped. Swithes don't love packets, they love frames.
 
it seems to depend on everything on packagist ...
@NikiC
krakjoe@fiji:/usr/src/pickle$ bin/pickle convert /usr/src/uopz
Successfully converted uopz
+-----------------------------------+----------+
| Package name                      | uopz     |
| Package version (current release) | 5.0.2dev |
| Package status                    | stable   |
+-----------------------------------+----------+
krakjoe@fiji:/usr/src/pickle$ php -v
PHP 7.1.0-dev (cli) (built: May  2 2016 10:08:25) ( ZTS DEBUG )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.1.0-dev, Copyright (c) 1998-2016 Zend Technologies
 
@PeeHaa I prefer query when I'm looking for a domnodelist as it has a fixed return type, but that's just a matter of avoiding mixed when the opportunity presents itself
 
Oh good one
 
4:05 PM
wait that generates composer.json from package.xml, what did you mean @NikiC ?
 
Is that pickle thing actually stable / do people use it?
 
@JoeWatkins ah, I meant "pyrus pickle"
for generating the package.xml
Because the package.xml is FUCKING STUPID
In that it lists all files, manually. In XML.
 
oh yeah, that thing does work, I remember using that at the start ... but I only used it once and just created the thing after ... is it for php-ast ?
not sure about 7 though, that's probably the problem ...
 
@JoeWatkins Yeah, I thought I would be a nice person for once and add this thing, but it looks like it was a futile effort
 
I thought that was being RFC'd anyway ?
 
4:11 PM
@JoeWatkins ya. so no point anyway ^^
 
ThW
@PeeHaa no
 
Short. I like it \o/
 
ThW
@PeeHaa add an __invoke() if you like short code :-)
 
@NikiC here's a starting place ...
<?xml version="1.0" encoding="UTF-8"?>
<package packagerversion="1.9.4" version="2.0" xmlns="http://pear.php.net/dtd/package-2.0" xmlns:tasks="http://pear.php.net/dtd/tasks-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://pear.php.net/dtd/tasks-1.0 pear.php.net/dtd/tasks-1.0.xsd pear.php.net/dtd/package-2.0 pear.php.net/dtd/package-2.0.xsd">;
 <name>ast</name>
 <channel>pecl.php.net</channel>
 <summary>PHP AST</summary>
 <description>Extension exposing PHP 7 abstract syntax tree</description>
 
@ThW Not sure if trolling or missing the point it was a reaction on your short "no" ;-)
 
4:19 PM
@NikiC I guess so, if it can be merged into 7.0 too ... which I guess it can ?
 
ThW
Missed the point, query is shorter then evaluate.
 
:-)
I am not that lazy
 
not with code-completion at least
 
:)
 
4:22 PM
@JoeWatkins don't think that's possible
 
maybe pecl is a good idea then
 
@JoeWatkins So for your own extensions, how do you keep the file list (mainly tests) up to date?
 
@ThW :-)
 
we merged phpdbg on a minor release
 
@JoeWatkins minor or patch?
 
4:23 PM
minor
5.6.0
 
git.php.net/… … cleaning up behind Dmitry :-/ Always a pleasure to update master, try running Aerys and immediately run into a segfault ^^
 
I have something like that for every extension
it overwrites release notes though, and annoys people ...
 
@NikiC before you ask, no test; it's only visible with valgrind (on already existing tests)
 
@bwoebi lol
@bwoebi I was more thinking "huh, how did I miss that when fixing the rest"
 
4:29 PM
Aerys is a great playground to test for new failures … as it uses also relatively new features (aka post 5.5)
 
why are self contained functions allowed in, but not extensions that only contain self contained functions, or debuggers or whatever ?
I don't really get that
 
@NikiC At first I was persuaded you made the mistake until I realized that you actually were also only cleaning up behind Dmitry … was confused when I reverted your commits locally to test and the bug was still present ^^
@JoeWatkins It's also a bit about quantity somehow
 
@JoeWatkins It's not really "self-contained" if it's not just one function, but actually multiple classes, functions and hundreds of constants ^^
 
yeah
 
well why can't it be merged into 7.0 but not loaded by default, and in 7.1 loaded by default ?
 
4:32 PM
@bwoebi Yah, always gotta clean up after Dmitry :P
He only uses nts+opcache builds ^^
 
@NikiC And I use only pure nts builds ^^
And travis can tell me anything else^^
 
@bwoebi I use pure zts builds, usually
 
putting it on pecl for just one version seems silly, going to end up with another stale extension on pecl, that confuses people, happened to opcache ...
 
@bwoebi we're missing a dbg-zts w/o opcache build on travis. opcache hides a bunch of issues
 
I've also noticed that
 
4:34 PM
@JoeWatkins yeah
@JoeWatkins We should maybe try ccache and if that works well add an extra build?
 
@NikiC hides some memory leaks which are immutable in opcache?
 
@bwoebi yes
 
feel free to add if you think it helps
 
looks like there is some support for ccache
 
4:37 PM
==11546== Conditional jump or move depends on uninitialised value(s)
==11546==    at 0x1003B1AA4: zend_compile_params (zend_compile.c:5003)
==11546==    by 0x1003B3296: zend_compile_func_decl (zend_compile.c:5406)
==11546==    by 0x1003AEF21: zend_compile_stmt (zend_compile.c:7596)
==11546==    by 0x1003B4DCD: zend_compile_top_stmt (zend_compile.c:7514)
==11546==    by 0x1003B4DBB: zend_compile_top_stmt (zend_compile.c:7509)
==11546==    by 0x10038E3CA: zend_compile (zend_language_scanner.l:595)
^ I get this one in valgrind … with non-debug only
I haven't been able to track this one down before
getting it when trying to start Aerys
(everything works, but it still looks fishy)
@NikiC could you maybe have some look?
debug builds don't throw that warning for some reason I don't know…
 
I'll look later, gotta go for now
 
@NikiC yes, it's upon current master
 
I miss trunk ... we should bring back trunk ... "master" somehow implies stable to me ...
 
@JoeWatkins disagree … but that's probably because I've barely ever used svn
 
I dunno, master == authoritative, primary elsewhere ...
also it's more php ... you can't disagree with that :D
 
4:48 PM
@JoeWatkins It's the authoritative source of freshness ^^
 
yeah it is ... but it's also bad a lot of the time ...
 
Why is zend_is_callable_ex() taking 1.3% of runtime o_O
I need a fast version of zend_call_function with minimal overhead
zend_call_function has 6% overhead (of total runtime)
 
look at the source of is_callable_ex
 
I know … I mean, I need a version of zend_call_function which is avoiding the checks and just calling.
oh, need fci_cache
dang…
 
yeah
wonder why there is not one ?
you're talking about normal user code right ?
 
4:56 PM
no, about extension code
 
oh
I thought we were still on Aerys ...
 
and zend_call_function is checking fci->initialized
o_O
 
no that's zend_fcall_info_cache
zend_fcall_info has size, the cache has initialized
 
true
 
also think it should check against sizeof(zend_fcall_info) really ... that's kind of the point of the check isn't it ?
 
5:01 PM
@JoeWatkins quick question … is it allowed to persist fci (and have random user code executed in between)
 
you mean in globals or something, yes, that's okay ...
and cache ...
 
github.com/bwoebi/php-uv/blob/master/php_uv.c#L1312 … weird then … shouldn't execute is_callable_ex every single time then…
hmm, fcc is never set to initialized for objects
lxr.php.net/xref/PHP_MASTER/Zend/zend_API.c#3346 nothing setting fcc->initialized = 1 there
 
yep, that's it
I was only a little bit behind :D
 
Is there any reason for that or a bug?
 
where does fci and fcc come from ?
zpp ?
 
5:07 PM
@wes what is the toolbar called in photoshop with the align buttons?
 
@JoeWatkins in this case, yes
 
well, when you're using them directly, you are expected to set it, and I expected that they come from the engine initialized
but zpp doesn't touch it either, so they obviously don't
 
4 mins ago, by bwoebi
Is there any reason for that or a bug?
 
I'm not sure if bug or not
 
Shall I try and look if anything breaks?
 
5:10 PM
it's not what I expect, or have been assuming ...
try what ?
I think it's a bug
it never changes it, even after setting handler and object and whatever
oh no it does
or another function does
 
yes
 
right, that's what I said
 
ah right
then yes, change it, bug ...
 
Hello Guys, I'm getting a underfined variable on line 28 in my code and I'm unsure why. Here is the pastebin link if anybody can cast their gaze.
 
5:20 PM
you're going to change zend_closure_get_closure, right ?
 
That should throw up way before line 28
 
Is it because I'm calling $row when I've only defined row
 
oh no it's not passed fci or fcc, yeah just there in that case
if get_closure returns positively ...
 
Hello again PeeHaa, you always seem helpful here.
 
@JoeWatkins yes, that case
 
5:21 PM
!!eval class Foo { private $foo; function __construct() { $this->foo = $foo } }
 
[ 5.5.0 - 5.6.21, 7.0.0 - 7.0.6 ] Parse error: syntax error, unexpected '}' in /in/uAvKm on line 1 <br/><i>Process exited with code <b title="Generic Error">255</b>.</i>
 
yeah
 
Yeah that's a fail
 
[ hhvm-3.9.1 - 3.12.0 ] Fatal error: syntax error, unexpected '}' in /in/uAvKm on line 1 <br/><i>Process exited with code <b title="Generic Error">255</b>.</i>
 
!!eval class Foo { private $foo; function __construct() { $this->foo = $foo; } } new Foo;
 
5:22 PM
$this->foo = $foo
 
[ 5.5.0 - 5.6.21, hhvm-3.9.1 - 3.12.0, 7.0.0 - 7.0.6 ] Notice: Undefined variable: foo in /in/b7ELd on line 1
 
See it fails waaay sooner than line 28 @Dannyw24
:30292683 Are you hitting on me? :-)
 
no, I will if you want ?
 
I kinda do
 
$this->rows = $rows;
@PeeHaa then I lied, was hitting on you, and plan to jump your bones ...
 
5:24 PM
@PeeHaa Must I remove private and change it to public?
 
@JoeWatkins <3
 
and remove from constructor
 
@Dannyw24 No you are trying to assign a property with an undefined variable
 
the $rows variable hasn't been declared, where are you expecting to get it from?
 
@bwoebi what happened ?
 
5:25 PM
nothin yet
 
okay quite clearly I'm overlooking something simple here
 
@Dannyw24 $this->rows = $rows;
 
Run your shared code and enable errore porting
!!canon errors
 
317
Q: How to get useful error messages in PHP?

CandidasaI find programming in PHP quite frustrating. Quite often I will try and run the script and just get a blank screen back. No error message, just empty screen. The cause might have been a simple syntax error (wrong bracket, missing semicolon), or a failed function call, or something else entirely. ...

 
or just read the line of code I keep writing ...
 
5:26 PM
:P
 
and really think about it ...
 
:D "I will really think about it"
Thankyou :)
 
function __construct($DB_con)
    {
        $this->db = $DB_con;
        $this->rows = $rows;
    }
for my own sanity, I need you to confirm that you see the problem ?
 
Yeah same here :)
 
I can see the problem haha!
this line $this->db = $DB_con;
 
5:28 PM
lol
Try again :P
 
No I can see it straight away - its been a long day with the children bare with me
 
Can't tell if trolling or just sleep deprived
 
I just ...
 
the latter then :)
 
@Dannyw24 That's why normal people don't get kids :P
 
5:29 PM
I have a set of those ...
 
I said normal
 
sometimes looking at a screen all day makes me do stupid things - hence the above
 
c'mon, it's 5 lines, you can do it ...
 
haha
 
hey @Danack. Still enjoying the job?
 
5:31 PM
@Dannyw24 what is the problem with that code ?
 
I removed line 12 and am then left with Invalid argument supplied for foreach()
 
I quit the internet
 
Genuinely not trolling here haha. As stupid as it seems.
 
Dat moment when you just guess a php array function and it just exists...
 
5:34 PM
o/
 
Last attempt in 3... 2.. 1..
Does this help @Dannyw24 3v4l.org/R6jW2
 
@PeeHaa lol
 
I pretty sure I could just do array_randomkeysopnkeyboardwithhead and it does something
 
> The manual page you are looking for (us2.php.net/manual/en/…) is not available on this server right now. Please check back later, or if the problem persists, contact the webmasters.
 
5:36 PM
 
function exists @LeviMorrison just broke the site again
 
The number of functions :P
 
@PeeHaa I removed the rows variable in the constructor haha
 
I use that function all the time
o it's 13:37o'clock
 
Or is the emphasize on "right now" @Sara? Do I ned to rfc it?
 
5:41 PM
Today a lot of people seems to use the following:
urldecode(http_build_query(['foo'=>'bar', 'baz'=>'qux'],'',', '));

Would be good if we could have a function intended for this, sense we already have the logic: build_query(['foo'=>'bar', 'baz'=>'qux'],'',', ');
exprected output would be: foo=bar, baz=qux
 
@PeeHaa I haven't made any changes in forever. What are you talking about?
 
@ErikLandvall huh?
What does urldecode do in there?
 
reverse the url encoding done by http_build_query
 
!!eval var_dump([urldecode(http_build_query(['foo'=>'bar', 'baz'=>'qux'],'',', ')), http_build_query(['foo'=>'bar', 'baz'=>'qux'],'',', ')]);
 
[ 5.5.0 - 5.6.21, hhvm-3.9.1 - 3.12.0, 7.0.0 - 7.0.6 ] array(2) { [0]=> string(16) "foo=bar, baz=qux" [1]=> string(16) "foo=bar, baz=qux" }
 
5:44 PM
@PeeHaa
 
Am I missing something here?
 
okay, so if I wrap my variable storing the array in an if statement that checks if it is array that clears my error.
 
@LeviMorrison No worries. It was a terrible joke
I tend to do that :)
 
This input is dummy input, but if you would have data that is effected by the url encoding you need to decode it.
 
@ErikLandvall Do you have an example of a lot of people doing that today?
I don't think I see the use case
 
5:47 PM
@PeeHaa Clearly, the manual is implying that the function did or will exist at some point in time.
 
:P
 
http://stackoverflow.com/questions/408032/fastest-way-to-implode-an-associative-array-with-keys
http://stackoverflow.com/a/11427549/570796

The use case is to prevent having to do a decoding of the input that may even be url encoded from the beginning, and that you don't want to be decoded. The only way to solve this today is to write a function to prevent the mess that easly can be prevented by just allowing a function that does what http_build_query does, but with out the encoding. @PeeHaa
 
> Fastest way to implode an associative array with keys
O.o
 
o.O
O.O
o.o
x.x
 
I was not expecting such a title...
> My first inclination is to use foreach but since my method could be called many times in one request I fear it might be too slow.
Yeah...
 
5:51 PM
well, the anwer to this question: stackoverflow.com/a/408040/570796 and the comments show that this is how people sove what I just stated
 
But it's based on a huge wtf
Solutions based on just fear are often meh
 
Are you stating that there is no reason the ever exclude the encoding part of that function?
 
I'm stating that both questions are... odd
Exhibit a) "My first inclination is to use foreach but since my method could be called many times in one request I fear it might be too slow."
 
ODD ODD ODD ODD ODD ODD ODD ODD ODD ODD ODD ODD ODD ODD ODD ODD ODD ODD ODD ODD ODD
 
Exhibit b) "At that time, I wanted to write everything in one line so I would use trinary operators and nest built in function calls in favor of foreach."
There is also already array_map magic
 
5:55 PM
everything is magic tho tbh
 
array_map means that you need to define a function for a functionality we already have
 
That's appropriate, since the character for 0x0DD is 'Ý', so it's like you're saying WHÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝ
 
@KevinMGranger you..... complete me....
 
why not just make the encoding a choice? why enforce it
 
@ErikLandvall do you really need such efficiency?
 
5:57 PM
@PeeHaa In fairness (devil's advocate) calling a function N times is cheaper when the construct doing the calling can cache the func_call_info
 
@Sara We just need a sufficiently smart compiler to do it for us, right?
 
I'm trying to understand the objection to encoding the elements going into http_build_query(). Escaping output is usually a good thing... o.O
 
need it? no, I can just write the code.. just mentioned it when I noticed how people seems to use it.
 
@LeviMorrison I actually was thinking we could stuff the fcc entry onto the opline node somewhere....
 
When to use it? I need it for a SQL query
 
6:00 PM
You need what for what?
 
Not so much for instance method calls and a few other places, but for straight functions and normal static method calls...
 
SET foo='bar', baz='qux'
 
Why aren't you preparing your queries?
 
Hell, just replace the INIT_FCALL with a INIT_KNOWN_FCALL or whatever
But it's certainly vanishingly small and not worth the bother
 
I'm not understanding what you're planning there ...
 
6:03 PM
HAH! Nevermind, someone already added an fbc cache
 
I may be biased here @ErikLandvall because imo 80% of all the array_foo functions can die in a fire because most of them are three lines of code max. But php seems to love array functions so go for it :)
 
yeah there's slot for fbc
 
@PeeHaa this is really not something I came hear to discuss, why I do things. But if you must know, I'm writing a code that is an adapter for different SQL, noSQL anch Cache services. So When translating them, it's easier for me to do it manually.

How ever, this is besides the point, the point is that PHP today enforces a behavior, that is easily don't have to. The question issn't when people would ever use it, the question is why it's enforced?
 
@JoeWatkins Teach me to open my mouth without checking first :p
 
but also ... vm doesn't use fci/fcc, doesn't need too ...
 
6:06 PM
@JoeWatkins Psuedo-code. :p
 
oh oh
 
Verbal psuedo-code, that is
 
@ErikLandvall It's enforced because the function does what it says on the box (for once)
 
the sad thing is, that actually, fcalls are slow, and there are vanishingly few ways to make them faster ...
 
inlining!
 
6:08 PM
it should not be the case that we choose to write overly verbose code with nesting and whatever, but if you care about perf, you gotta consider it ...
yeah there is a super interesting conversation about inlining going on ...
actually not much was said, but interesting code contained ...
 
FWIW what you want should be rather easy @ErikLandvall if you want to go for it
 
F*** the socket_write is always giving me a "connection reset by the peer" error...
 
http://stackoverflow.com/questions/36985566/why-this-happen-how-can-‌​i-solve-it
oh forgot that :P
 
Yeah, that needs a good dupehammer
 
6:45 PM
@PeeHaa I fixed the problem haha feel quite silly once I realised the confusing I'm having with OOP at times.
 
:-)
 
HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: 3

hmm
is that response thing valid?
^
 
Anonymous
<!DOCTYPE html>
<html>
<head>
    <title></title>
</head>
<body>
yea
</body>
</html>
 
@PeeHaa See as you seem like a wise Programmer I was hoping I could maybe get some valuable insight into making my code more robust.

Here is how I'm looping through the threads in my database at the moment, Is there a better way to do it then I am?
 
mrngs
 
6:49 PM
@RonniSkansing '
 
I need to comment out the "this is not an array"
was for my errorhandling persay
 
@Dannyw24 it just seems that way :p
 
@PeeHaa I see, I'm misleaded then? :P
 
I'll have a look once I have eaten
 
Great thankyou.
 
6:53 PM
@Dannyw24 DESCRIBE threads ... I can think of no reason you'd be using this other than you've hosed your db design. pastebin your schema
 
@PaulCrovella I have been hashing the whole thing together really, I will paste what I have across at the moment.
@PaulCrovella here how it looks pastebin.com/93LjQjSa
in tree format
@PaulCrovella I know next to nothing about MYSQL formats I just read briefly to have a thread/post/user system and kind of improvised
 
oy vey
 
oy vey?
I'm suspect there is a far better way to handle the database since the posts are going to be inside the thread so I'm somehow going to need to create a relationship between them
 
7:11 PM
yes, it can be done better. I'm looking for a good tutorial for you, but it's hard to know where to start.
 
abr
Anyone around ever tried to place a laravel project on a linux server?
 
I've worked with laravel a little abr
from windows though may I be of help
thanks @PaulCrovella that would be of help
 
okay, so far I've found code.tutsplus.com/tutorials/… and datanamic.com/support/lt-dez005-introduction-db-modeling.html .. I've only quickly scanned them over, but flip through those
 
Thanks I'll take a look
 
it's hard wading through the crap out there :(
 
7:24 PM
I'll favourite this
I'm lucky my house mate is a MYSQL expert
he just explained how I would need to create a 1M relationship between the thread and posts
 
hey guys, i have a code for up/down system, whenever i can add score through database but when i click up/down button a whole html text with <> codes shows
what problem could this signify?
 
@Dannyw24 I strongly suspect, that he isn't
 
Ekn
lol, this is from the medium article linked there
> California Style Sheets are a standard, meaning there is a group of people at W3Schools who come up with new properties (like border-radius and box-shadow) every year.
 
7:34 PM
oh good, @tereško, you're here. the internet is making me sad, please tell me you've got a decent resource for this guy.
 
I was hoping to find something online for free to get him off the wrong track, but it's a goddamn horror show out there.
 
lately google has been showing direct links to various programming-related books
 
well that's handy. not something I'd usually promote, but handy nonetheless. ... @Dannyw24, read that ^
 
@PaulCrovella since it's the previous edition, it actually might be partially-endorsed by publisher
who knows
 
7:46 PM
I will download and add it too my ebook
collection, at the moment I'm just reading the tutsplus tutorial seems kind of what I need at this moment. @PaulCrovella
 
lol!
Isn't it the proper behavior for an HTTPS site. You will have to usually acknowledge it first before proceed ? What problem do they need to fix ? Do you mind ? — ihue 22 mins ago
idontevenm
 
> Replacing CSS with Node is easy and actually a lot more intuitive and whitespace-free.
this is something beautiful
 
Any ublock users?
 
Can I drop ghostery now I have ublock origin?
 
7:51 PM
or ublock origin, rather. there's apparently a difference.
 
Yeah that's what I have now
 
I still use both
 
ublock flags ghostery requests :P
And I know that ghostery is an ad company
 
I opt out of ghostery's stuff.. it's a single checkmark in the options. and I can't be bothered to set up ublock to cover everything ghostery does
 
I did too. Still phoning home :(
 
7:54 PM
are you getting the extension conflict error as they both try to block the same stuff?
 
abr
@Dannyw24 well currently I've developt an api service with laravel and on my local computer works just fine, I'm trying to set it up on a linux server but somehow I can't reach it, gives me an 404 error (the project has no views, all it does is receiving json trough an endpoint and returning something else)
 
Nope. ublock actively blocking requests to the ghostery domain
I did check almost all the boxes I could find though
I'll just delete ghostery and see what happens
 
Did you install via composer or Laravel new blog?
 
abr
via composer yes
 
@PeeHaa interesting. let me know how it goes, if i can reduce my extension count so much the better.
 
7:56 PM
BTW since I uninstalled ABP my browser actually works again
 
abp turned to total crap, yeah
 
So happy I moved
 
@PeeHaa use ublock origin
 
...
:P
 

« first day (2025 days earlier)      last day (2920 days later) »