« first day (2027 days earlier)      last day (2921 days later) » 

3:00 PM
how to composer
 
If it's still in that state coming friday I will repost
@Fabor Or: how to read two line instructions
 
So you're saying RTFM?
 
RTFReadme, but yeah
 
@NikiC at least, how I understand static function vars, it should apply to the function (and not to the context where it gets implicitly transcluded)
 
Some people don't really deserve help :-/
 
3:02 PM
It doesn't help when those same people are too retarded to type a github issue
 
@PeeHaa LOL, epic response.
 
Aw you deleted it
 
Yeah I forgot I am still tagged as collaborator. Don't want to piss of the maintainer
 
good morning. . May the 4th be with you, today. . .
 
Ekn
re..really?
 
3:15 PM
MOoOooRnings
yay
no work tommorow
yay!
\o/
 
contextual rebecca day for me =) hey Anmol
 
any special day tommrow Ronni??
 
Anyone have an up-to-date sample extension for PHP that is really simple?
 
entering rescue mode
 
3:23 PM
Also can we rely on FAST_ZPP now?
 
so what feature of php7 is allowing this to be valid? 3v4l.org/tGv74
 
@AnmolRaghuvanshiVersion2.0 just a "holy" day in Denmark
no work day
 
=) I will
@Andrea thanks. Pure awesom rebecca
 
@AnmolRaghuvanshiVersion2.0 ascension day
You just have the wrong god over there :P
 
@LeviMorrison hahahaha you're me earlier today
@LeviMorrison PHP's ext/readline is pretty small :)
@LeviMorrison you can still disable it, I think…
 
I just like the API a lot better; don't care about size or perf in this case.
 
@LeviMorrison in that case:
#ifndef FAST_ZPP
#	error use FAST_ZPP
#endif
 
@LeviMorrison speechless?
 
3:34 PM
^_^
 
@bwoebi eek
 
#error is a handy pre-processor directive, I recommend making use of it sometimes
 
#ifdef __APPLE__
# error Nope.
#endif
@Andrea Like this?
 
@NikiC /me forks
#if defined(_WIN32) || defined(__APPLE__)
#    error NOPE
#endif
 
3:41 PM
I have a better idea:
 
@JoeWatkins Only true way to solve those pesky compatibility issues
 
hehe
 
@NikiC haha
 
No censorship in this room.
 
I can show you somewhere I actually used it
 
3:42 PM
@NikiC heeeeeh
 
hahaha
 
@JoeWatkins I mean, nevermind, my performance requirements are so tight it must use FAST_ZPP.
 
@LeviMorrison I linked the comment because it seems important if you are considering using only FZPP, but keep reading ... looks always available to me ...
 
3:44 PM
@Andrea Quick reminder for you that you still have a RFC there, which waits to be unwithdrawn :-P
@JoeWatkins yeah, it's always available, except if you use -DFAST_ZPP=0
 
@bwoebi I'd probably redo the implementation
 
@bwoebi I hope nobody is doing that ...
 
@JoeWatkins It'll just slowdown their build
 
@bwoebi Unless it fails to compile
 
I meant -D in general
 
3:46 PM
Because nobody tests those builds
 
@JoeWatkins I'm sure Dmitry does
 
Is FAST_ZPP still considered an experiment, is the question
 
oh for his "debugging" stuff that litters php-src you mean ... yeah seen it ...
 
because I mean, it shares a good portion of the implementation with regular zpp now (thanks, me!)
should we just nuke all the #elseif branches on #ifdef FAST_ZPP checks?
 
I don't fully understand why they exist
 
3:49 PM
I know, I'm making that cardinal sin of saying “just”, but I think it would be approximately that easy in this instance
 
anyone know why this works in php7? 3v4l.org/tGv74
 
Lemme ping internals about it
 
@standard unintended feature #642
 
why shouldn't that work? oh. Ok.
 
@JoeWatkins
hehe
 
3:53 PM
@standard Because people like @bwoebi don't want to write tests for error conditions
 
how on earth does that slip through :)
 
Do we have an example of calling a PHP function from internals where the function takes a single parameter?
If I remember correctly we have special functions for 0 and 1 arg or something.
 
@NikiC heh … I do … I just don't think about every single case…
 
(And people like self then break things when changing stuff, but I still blame everything on @bwoebi :P)
 
zend_call_method_with_0_params
zend_call_method_with_1_params
zend_call_method_with_2_params
 
3:54 PM
@NikiC And I blame everything I'm blamed for on Dmitry!
 
there is no such thing as a method with 3 params ...
 
@JoeWatkins heh, someone should really va_args that function
 
yeah ...
such a strange decision
 
@JoeWatkins What if it's a callable, not a method?
 
the release notes for 7.0.6 are wrong. i raised the issue at the bottom of bugs.php.net/bug.php?id=72119 but noone has replied
 
can anyone here get it looked it?
 
zend_fcall_info_init
zend_fcall_info_arg_* api
zend_call_function
zend_fcall_info_args_clear
reading^ @Levi
 
@standard Looks like we're checking the import table against the fully qualified name, which obviously fails
 
Thank you.
 
@standard peer pressure is making bob look at it already ...
 
3:58 PM
we raised an issue if anyone wants to jump on board bugs.php.net/bug.php?id=72159
 
I noticed the release notes were wrong, but was already too late ...
can I just remove it ?
I should email dmitry about doing things in a rush :D
 
i think so, because it was reverted
 
I'll ping a people about it ...
 
hmm
I wonder if it's possible to define macros that rewrite FAST_ZPP macros into a zend_parse_parameters call :D
 
also whoever 'rereleased' 7.0.6 very nearly screwed us over ;)
 
user986408
4:03 PM
does anyone have guides/tutorials for how to implement online payment based on a duration?
 
@standard Which is why we always say that it's released when there is a release announcement.
Retags are not relatively common.
 
yeah but Remi built it as soon as it was tagged.
ok so i'll blame him :)
 
@codepushr on a duration?
 
@Levi fci->retval_ptr_ptr = NULL; is wrong, should be fci->retval, and don't use null
 
@DaveRandom was this what you used earlier? stackoverflow.com/a/16931835/599857 ... funny I'm having to use it right now for something else..
 
4:06 PM
@JoeWatkins Wait... the pointer points inside the fci struct?
 
yes, that
 
user986408
@RonniSkansing yeah, for example i'm consuming a service for about an hour and for that the system should charge x $
 
I feel like there must be a better way to do that, dunno if libxml exposes anything or not
 
@LeviMorrison huh ? retval_ptr_ptr doesn't exist anymore, just retval required, should be zval*
 
Oh, I see.
 
4:07 PM
@JoeWatkins nah, :-P
 
(changed comment, but doesn't show yet)
@bwoebi you didn't look ?
 
user986408
there are many pitholes like how to ensure the service has ended (server has to know), what if the user went afk ... should the server close the session in that case etc etc
 
@JoeWatkins this time not, busy with statics
 
are you looking @NikiC ?
 
@JoeWatkins At what?
 
4:08 PM
unintended feature #642
 
@JoeWatkins Yeah, working on that now
 
cool
 
@codepushr I am not sure what you would need a guide for?
 
didn't know it was assigned ...
 
4:09 PM
hours * price
 
someone is gonna fix the release notes thing ...
 
If I funnel all iterable types into a Collection type, how should I document the returned type along with the collection type? Given a Collection of Foo objects, @return Collection|Foo[]
 
user986408
@RonniSkansing well sure. but again i think there's a lot of stuff to think about, i just thought maybe anyone has a blog post or anything summarizing everything important
 
Is it possible for PHP to access the local hard drive if the user gives permission for it? Or do I have no choice but to implement something like FTP for that? I don't need to know how, just that it's possible or not. It's for file synchronysation for students to be able to access their projects both at home and at school.
 
/**
 *
 * @return Collection|Foo[]
 */
function getFooCollection()
{
    $arrayOfFoo = [new Foo()];
    return new Collection($arrayOfFoo);
}
 
4:11 PM
@codepushr Alot to think about, like what?
 
^^ Like so?
 
(yes, looks like it ... also, yuk)
 
cool
 
@standard I wonder if the error message should really reference Bazzle\Bar or only Bar
 
4:13 PM
@NikiC fqn I think
 
it should say cannot declare Bar I think
 
well php 5.6 says Bazzle\Bar
 
That's for this unambiguous answer @bwoebi and @JoeWatkins :P
 
@icecub: Not with PHP alone. PHP is server side. It has no knowledge of the client beyond the headers the client sends it with requests (IP, UserAgent, etc). It might be possible using javascript - but most file sync services I'm aware of use a real client application.
 
yeah, but lies
> Cannot declare class Bazzle\Bar because the name is already in use
lies
 
4:13 PM
true
 
that name is not in use ...
 
@JoeWatkins That's what I'm thinking as well
 
In this case, then just Bar
 
@AllenJB Thanks. I already thought so myself, just needed to be sure :)
 
(I meant something like because already imported from Foo\Bar)
 
4:15 PM
mentioning the import may also be useful, usually in different file
yeah, mention import too, but no telling lies ...
 
@JoeWatkins imports are local to the file ^^
 
@JoeWatkins Ah, perfect; that last section was exactly the case covered.
 
@NorthbornDesign yeah, couldn't see a good way to link ...
@NikiC hmm
 
@JoeWatkins Ah, it has the hover links
 
@JoeWatkins did you say you were fixing the 7.0.6 changelog?
 
4:18 PM
@standard someone else is ...
 
:+1:
 
@NikiC what happens if this
<?php
namespace Bazzle {
    use Foo\Bar;

	include "foo.php";

    class Bar
    {
        public $from = 'bazzle';
    }

    echo (new Bar())->from;
}
(this also works, but shouldn't, right ?)
yeah doesn't ...
 
public function add_emp($data,$rvdta){




$sql = $this->db->insert('employees',$data);



$rvwdata = array(



'emp_other' => $rvdta['emp_other'],

'comp_name' => $rvdta['comp_name'],

'comp_loc' => $rvdta['comp_loc'],

'no_emps' => $rvdta['no_emps'],

'comp_site' => $rvdta['comp_site'],



'rr_name' => $rvdta['rr_name'],

'rr_desig' => $rvdta['rr_desig'],

'rr_mail' => $rvdta['rr_mail'],

'rr_mob' => $rvdta['rr_mob'],

'emp_rating' => $rvdta['rating-input-1'],

'advice' => $rvdta['advice'],
I want to insert the $sql insert id into the $sq emp_id field help me out
 
hovered over everything but the titles :) @NorthbornDesign
@NikiC you somehow want to know that the name is in use by Foo\Bar
?
 
how do i get the insert_id (ai) of last query and insert that into afield of next query
$this->db->insert_id() returns 0
 
4:25 PM
Is zeroing out the memory for a zval sufficient for an IS_UNDEF zval?
Or is there a standard way?
 
ZVAL_UNDEF(zval*)
 
how do i insert a mysql function value to a field in codeigniter
SELECT LAST_INSERT_ID();
 
@JoeWatkins Thanks.
 
returns mysql undefined function error
any one?
how do i get the insert_id (ai) of last query and insert that into afield of next query
$this->db->insert_id() returns 0
SELECT LAST_INSERT_ID(); returns undefined function
 
4:32 PM
ok
 
5 messages moved from JavaScript
@Hisham If you are not answered in one room, it doesn't mean you can go to other rooms with different topics and ask your PHP question there.
FYI.
 
@Madara what if it's urgent ?
 
@JoeWatkins Then build a bridge
And get over it.
 
hehehe
 
lol
 
4:35 PM
@Hisham also what did you try? you can try this stackoverflow.com/questions/16440366/…
do your work, search first, try.. then ask for copy pase solution
 
I'm no expert, but doesn't his code already do that ...
 
probably not, he can try using "transactions" methods, i think
 
Why is PHP hated by so many developers?
 
@Hisham Because PHP is used by so many developers.
And because PHP sucks.
 
@Hisham because it's fractally awful
 
4:38 PM
Because there's a large number of PHP "developers" who write bad code and ask stupid questions.
 
@Hisham It's terrible
 
like me
 
Y U INVITE ME HERE
 
@Hisham You know those languages that no one complains about? That's because no one uses them.
 
That was awkwardly timed
 
4:39 PM
@SterlingArcher YOU WANNA ANSWER PHP QUESTIONS?
HERE YOU GO MISTER PRESIDENT
 
@Hisham cuz' its terribad
 
haha @MadaraUchiha so true
 
@SterlingArcher o/
 
4:39 PM
I wanna answer arduino board questions today
 
@AnmolRaghuvanshiVersion2.0 lolwut?
 
Mainly serial ports :(
 
Both worlds; stick around.
 
@Saitama i am serious :)
 
4:40 PM
@NorthbornDesign not using PHP for this project, using NodeJS
Thanks though, will read for fun
 
> Hey kids! The word of the day is "immature"! Let's spell it together, ready? N! O! D! E! J! S! Immature!
7
 
N! O! D! E! J! S! Immature!
 
No JS!
 
sigh, no, PHP is not a "good" language, I doubt there's a "good" language out there.
 
there is, but you haven't heard about it ...
 
4:44 PM
PHP has a lot (A LOT) of flaws, probably more than many languages out there
 
buh huh
 
But PHP is solid, it works, it solves a lot of problems, and it's easy to learn and to get productive in.
I know 80% of the things I know about programming in general thanks to PHP
 
@LeviMorrison has this been an oversight or an deliberate won't fix?
 
@PeeHaa I think it was actually fixed at one point.
 
4:45 PM
I like D ...
3
 
@JoeWatkins Closest I got was Lisp, but Lisp lacks tooling badly.
@JoeWatkins Phrasing.
 
So… oversight?
 
@PeeHaa which version of android are you using>
 
@Saitama 5
 
there should be another way of the tabs.....
 
4:46 PM
@LeviMorrison k. Will try to find out what's going on
 
I also like the D programming language. But saying that all the time is too verbose, so I'll just say "I like the D".
 
@MadaraUchiha fill it with whatever you find most exciting ...
 
@Saitama In chrome?
 
@PeeHaa yep
 
I would not be happy if it changes agani
 
4:47 PM
@JoeWatkins Doughnuts, obviously.
 
:P
in marshmallow it changes for sure
 
@kodeart thanks
 
@Saitama This is marsmellow isn't it?
Or are you talking about the stock browser?
 
@PeeHaa I know what is going on.
 
It's funny seeing the PHP room hate on a language lol
 
4:48 PM
@PeeHaa Yes, looks different in Android 5 usually.
 
overflow: hidden on the h1.
 
@PeeHaa nope, chrome....
 
@PeeHaa Stock doesn't exist any longer.
 
oh :P
 
:D
 
4:49 PM
Let me check my version
 
Looks like it's 4.x
 
Yeah 5.0
 
Basically we want it to overflow when there is space but not when there isn't ^_^
Don't know how to fix that.
 
Maybe it came with 5.1 ...
 
@PeeHaa upgrade to 6
 
4:49 PM
@LeviMorrison Makes sense :P
 
I'm out to do people things, lata all
 
later @JoeWatkins
 
@LeviMorrison maybe a viewport thing?
@JoeWatkins o/
 
@Saitama Is that out yet?
 
@PeeHaa are you living under a rock?
 
4:51 PM
@Saitama @PeeHaa There's a setting for that: support.google.com/chrome/answer/2391819, yeah, now I have the old thing back, finally!
 
Not really. But I don't feel the need to follow stuff like that :)
What does that tabs thing look like?
I assume they made everythign worse?
 
Was really annoying having to switch tabs using the last apps button. Didn't know the option back to the old behavior existed.
 
it just appears as other windows in the multitasking thing
 
@Saitama That is horrible
 
@kelunik i actually... liked the new thing...
 
4:53 PM
@PeeHaa It displays just the address bar, no more swipe in the address bar to change tabs.
@Saitama Why? What's better with it?
 
@kelunik I dunno really....
 
@PeeHaa Just try it, it's one of the first settings in the settings panel.
@Saitama Makes switching tabs a lot harder and slower.
@Saitama I'm waiting for the official release of my vendor.
 
That also hides the actual url? WTF!? It is bad when ios does it why fucking copy that crap
 
@kelunik waiting for the vendor to release a new version is thing, which the weak does
 
@PeeHaa Don't know why they do that. Usually, I don't need the actual URL, just the host, but dunno...
 
4:56 PM
just flash it :D
 
@Saitama It's not that bad with OnePlus.
 
tho moto released it really quick
 
They released a community build some weeks ago, so it should be community tested now and be available officially soon.
 
btw does OnePlus ship with a customized android, ot the stock?
 
@Saitama Which version? Stock?
 
4:57 PM
@kelunik yeh, 6.0.1 ?
 
@Saitama Slightly customized, it even has it's own name: Oxygen OS
 
@kelunik nice ;)
 
For some reason I thought oneplus did cyanogen
 
@PeeHaa They did for the OnePlus One.
 
btw, is the Android N dev preview out yet?
 
4:59 PM
Does the stock Android show the security patch level? It's a nice thing OxygenOS has, currently officially "February 2016"
 
@kelunik yes, yes it does...
afaik
 
My old Samsung didn't, so I don't know whether that's a thing since Android 5.0 or a thing form OnePlus.
 
@kelunik My s5 does
 
@kelunik My moto g3 has it
...
 
Well, my old S2 didn't receive any updates anyway. :P
 
5:01 PM
heh
 
:D
I think I jumped s2 -> s5
Battery life at some point was 2 hours max
 
@PeeHaa that's not how it works...
 
Another thing I think stock still doesn't have is: Close all recent apps from the current apps panel.
 
!!version
 
!!version
 
5:03 PM
I think I broke it :(
Meh first food
> May 04 19:02:53 149-210-224-55.colo.transip.net systemd[1]: Unit jeeves.service entered failed state.
May 04 19:02:53 149-210-224-55.colo.transip.net systemd[1]: jeeves.service failed.
 
@kelunik my old Z2 just was updated to 6.x
 
@tereško Yes, Sony does a way better job there.
 
well .. it probably has something to do with not flooding market with new 50 models every 6 months
if I am not mistaken, sony only has 4 major models, that they update: E-series, C-series, M-series and Z-series
(and now they are promoting new X-series ... though, that might just be because they are retiring Z-series)
 
5:24 PM
!!version
 
Why does everyone type hint against Client and not HttpClient for Artax?
 
Because I started doing that I assume :-)
Isn't client some interface in there?
 
Not only you, not only for @Jeeves, everywhere I see it.
 
!!package amphp/artax
 
5:28 PM
[ amphp/artax ] Asynchronous parallel HTTP/1.1 client built on the Amp concurrency framework
 
@PeeHaa HttpClient is the interface.
 
Let me try to retrace my steps
I think I just started out with some example in the repo and didn't bother to find the proper interface
Let me fix them all because I have done it in a lot of places
 
5:46 PM
!!wotd
 
toponym: a place name.
 
!!version
 
Happy @kelunik?
@DaveRandom is there a reason the lock file doesn't contain dev?
 
@PeeHaa I did composer update --no-dev (because habit)... didn't realise that actually stripped the dev deps but apparently it does
sorry :-(
 
5:58 PM
No worries. Just wondering whether I missed some awesome reason to not include it when pushing :)
 

« first day (2027 days earlier)      last day (2921 days later) »