« first day (1662 days earlier)      last day (3277 days later) » 

12:47 AM
@Andrea :( this bit me twice today
and once yesterday
also the BaseException hierarchy
cc @NikiC ^
is this really necessary? news.php.net/php.internals/86103
> Let's do a rfc to accept to post pone features freeze with a list or a single RFC. I totally agree that this exact problem has to be fixed for 7.0, same for error cb. I don't see anything else being so critical that it has to be in 7.0.
seems like too much bureaucracy just to fix the exception hierarchy, there is consensus on the mailing list already - we found a unicorn - why not just make the adjustments in a pull request?
 
actually i changed my mind, it could be:

Error
+- TypeCheckError
+- AssertionError
+- ParseError
+- Exception
basically only get rid of engine exception that semantically doesn't have much sense
and move assertion exception under error
imho it's important to start the Error suffix trend so that users wont start getting confused about the hierarchy. Error should be all types that (citing myself)
"SHOULD (usually) NOT BE handled to offer equivalent functionality"
while the Exception suffix must be kept for "errors that SHOULD (usually) BE handled to offer equivalent functionality" (which is what is happening today with php5)
 
1:08 AM
No. Errors already have a specific meaning in php and they aren't exceptions.
 
yes but who cares? :D
 
And "offer equivalent functionality" is still a meaningless (to me at least) phrase.
Or possibly non-sensical.
 
@Worf I think that's excessive taxonomy. When do you want to catch an AssertionError?
 
right. but you got what i mean right? xD
@marcio it's simpler than the one existing now (one type less)
@marcio exactly, you don't handle assertion errors, this is why imho it shouldn't be child of Exception
 
@Worf the bug report suggests:
 +- Error
     +- TypeError
         +- NullPointerError
         +- TypeCheckError
         +- TypeCastError (like array to string)
     +- AssertionError
     +- ParseError
         +- InclusionParseError
         +- EvaluationError
     +- MathError
         +- DivisionByZeroError
         +- NaNError
 +- Exception
 
1:12 AM
> A more complete, future, exception bundle could be:
 
ah ok, that list is just bull crap I should read the other one.
MathError and AssertionError are ridiculous :D
 
tbh i don't even know if nan error exists, i just made that up
:D
 
ParseError and TypeError doesn't need childs
 
it's an example
 
I know, but it's so much easier to criticize a proposition than to propose something :D
sorry
 
1:16 AM
:D
 
I like the hierarchy being proposed on the mailing list
 
link?
 
i don't follow the mailing list :P
i have no idea how newsgroups work
also, would be a good idea to use interfaces for exceptions. afaik java will, in future
yes @marcio exactly :D
Error implements Throwable
+- TypeCheckError extends Error
+- AssertionError extends Error
+- ParseError extends Error
+- Exception extends Error
if it's not Error it's another suffix, but that should be the hierarchy imho
 
@ircmaxell Honestly 3 is not so bad.
 
1:26 AM
I know
I'm mostly just playing :-P
 
You can simply not use it and it doesn't affect you.
References are not like that.
Variable variables are not like that either.
 
try{
   ...
   try{ ... }catch(Exception $e){ // handle }
   try{ ... }catch(Exception $e){ // handle }
}
catch(Error $e){ // log }
you don't need more than that
 
@marcio Division by zero is not exceptional.
It's NaN.
(or + or - infinity, depending on the numerator)
 
@LeviMorrison that list ain't mine, I don't like MathError
 
ArithmeticError maybe? better? :P
 
1:29 AM
I suppose you could enable signalling NaN and such but
I would prefer to just use quiet NaN
 
@LeviMorrison oh, FYI I decided to keep the type augmenting, for callbacks that specify types, out of the main function prototypes RFC, I'll do it as a separate RFC
 
I was thinking about it and I'm not sure it's feasible.
It might work okay for return types but parameter types would just be weird...
@ircmaxell Also, unifying class constant, property and method tables is a big win.
I've been thinking more about this lately.
 
@LeviMorrison it seems like a very experimental idea that could be really cool but needs more research.
 
A method is essentially a constant that's a scoped closure. If it's static then it's unbound, if it is non-static then it is bound.
 
I'll leave it out the main RFC and after we get the good things - if we get - than we can safely discuss the other part
 
1:35 AM
This simplifies the engine and syntax for things.
 
hello everyone
 
It also allows more powerful constructs like using methods in callbacks like reduce(Collection::conjoin, new Collection, $input)
 
@LeviMorrison and also create collision between constants, methods and properties
 
I'm having trouble with using sessions with my website.. basically even if I declared the session in the index after login is successful, session is still undefined.
 
You could use non-static methods too: sort($input, $comparator->compare)
 
1:37 AM
I was hoping someone here can help me.. details on the question are here
0
A: Session variable still undeclared between pages

Vickyfirst check your session value and than change your html like below you have not given name to submit button <form class='form-signin' method='POST'> <input name='uid' type='text' class='form-control' placeholder='Username' required auto...

 
@marcio Yes. This is an analysis of benefits, not drawbacks.
And in my opinion all of these things combined is definitely worth the BC break as long as it is planned out.
Like, known for years it will happen.
 
hummmm, would methods and properties names become case sensitive?
 
I would like to do that too, but it's somewhat orthogonal.
 
I was hoping anybody here can help me
if you have free time..
 
If you do it at the same time you might erase some of the conflicts between constants and methods, for example.
 
1:39 AM
class constants are already case sensitive, it doesn't seem feasible to downgrade them to case insensitive.
 
It's possible since it doesn't cause BC breaks, but I would prefer case sensitive, yes.
 
Hi Levi and Marcio. I' sorry to interrupt May I ask for help please?
 
@LeviMorrison it's the opposite, if you downgrade class consts to case insensitive you cause much more BCb
 
okay, thanks anyway...
 
@marcio Oh, I was under the assumption you did it at the same time as the merge.
Since that was what you were talking about just before then :)
Oh wait, I see what you are saying now.
 
1:43 AM
I would like case sensitive identifiers :)
 
@Malky.Kid Good luck but I'm not really interested right now.
 
unify tables and make class members case sensitive == big win without too much BCb
 
@LeviMorrisonokay. Would mean a lot if you look at it when you can though.. thanks.
 
@marcio I think that's moderate BC, actually.
But the gains are huge, imo
 
it fits on a major release for normal languages, not sure for PHP
 
2:02 AM
@marcio There's always a risk of alienating too much of your existing user and code bases.
 
is there anything better than this ?
zend_internal_function *f = emalloc(sizeof(zend_internal_function));
f->type = ZEND_INTERNAL_FUNCTION;
f->handler = call_static_method_func;
my_class_entry->__callstatic = f;
there doesn't seem to be a call static handler is there a better way ?
 
I don't think so.
Maybe @bwoebi knows and he's usually happy to answer these kinds of things.
 
...
@CodingInsane What exactly are you trying to do?
 
i want a similar handler to call_method/get_method. but for static methods
@bwoebi so when a user invokes MyClass::nonExistentMethod() i want to be able to handle it
 
there is zend_class_entry->get_static_method
 
2:19 AM
_zend_object_handlers does not have get_static_method
oh wait
 
Yeah, an object handler wouldn't :)
Would be on the class entry
 
@bwoebi :) that's true thank you.
 
yep
 
2:35 AM
Hi
I know this room is intended for programming, but can somebody help me regarding Symantec backup?
 
 
3 hours later…
5:39 AM
good morning
 
5:50 AM
good morning
 
6:06 AM
Hi guys..
Good Morning/Evening
i am having a little trouble with running a query.
$num_list = "'".implode("','", $vsb_collection)."'";
$sql="UPDATE inventory SET status = 'S' WHERE vsb_num NOT IN($num_list)";
$this->db->query($sql);
var_dump($sql);
vardump results in
UPDATE inventory SET status = 'S' WHERE vsb_num NOT IN('26712','27348','26487','26946','27153','26943','27699','25995','26967','2875‌​4','29887','20992','27351')
but the thing is it updates S in all the existing vsb_num
that are listed in IN
i am using active records in codeigniter
 
moin
 
yep?
 
sure
 
6:22 AM
morning @JoeWatkins, I pinged you last night because I saw you wrote an RFC for nested classes but the status is Withdrawn
 
@ziGi this is being revived, by @philsturgeon, sometime soon-ish ...
 
oh, ok, because I wanted to write an RFC and I saw yours, but because it's a bit outdated, that's why I wanted to ask you
 
that was a good-ish POC, but I think we might need to go another way because it met a lot of resistance at first ...
another way might be promoting namespaces to be a real thing, and allowing access modifiers on classes within a namespace, and then bolt-on the virtual namespace for nested classes idea ...
that would feel more complete ...
phil will be starting a conversation about it soon, you should talk to him ...
 
does he join in here
 
he does
 
6:27 AM
ok, I'll try to catch him
 
Hello Everyone
I need help from you guys reagrding PHP SSL SOCKET
 
6:44 AM
Morning
 
6:57 AM
moin
 
Good morning
 
indeed
 
morning, @Joe the Evil (:
 
user4661379
Hi all
 
user4661379
somebody please help me
 
user4661379
7:11 AM
0
Q: Where I'm making a mistake in manipulating multi-dimensional array in following scenario?

PHPNutI've a large array titled $files. For understanding purpose I'm just putting small part of this array as follows(output of print_r($files);): Array ( [name] => Array ( [0] => course_error.png [1] => before_login.png ) [type] => Array ( ...

 
7:27 AM
Domain Reactivation
cv-pls.com 1 year
Sorry, @crypticツ :-P
 
good morning!
 
moin
 
7:46 AM
Any suggestions for good laptops for programming?
although imo it doesn't really matter
I am currently using Lenovo and I am really happy with it
 
>15" screen, >4GB RAM, SSD is also nice to have
 
yeah, I have 13" currently, that's my only problem
other than that 8Gb and an SSD
but with i3 it's still slow when indexing PHPStorm etc.
 
Switch to sublime :P
 
haha, yeah, right
 
8:01 AM
hi
anyone here .....
i have a problem
i have a regular expression like this ([0-9][A-Za-z0-9\-]{43,43}[\.][0-9]) used for routinh
$route['newcars/car/([0-9][A-Za-z0-9\-]{43,43}[\.][0-9])'] = 'newcars/car/$1/by_name';
i want the expression to match for everything except this pattern
 
That sucks
 
@ziGi why laptop ?
 
easier to move, can connect a screen and have instantly two screens
 
if moving around is a thing you do, then I guess no other choice, but they are so much more expensive and last so much less time than a proper pc ...
 
interesting fact
I bought a PC one year later than my current laptop and it is currently dead
and I have to find out what's wrong
but it doesn't start at all so I suspect it is the power supply
 
8:06 AM
okay but you can find out what is wrong and repair it ... when laptops die, it's usually because a non-renewable part is busted, then you have to throw the whole investment in the bin ...
 
you are correct
 
> if I am speaking, I am correct!
Of course he is.
 
laptop is still useful to have, I don't have one currently ... but I don't really move around and need to take a computer with me ... but once you accept that in our line of work, shit breaks, laptops are no longer viable as a primary device, because it's just throwing money in the bin, every year or so ...
you throw money away with pc's too, but less of it
 
that's really interesting because I have this lenovo laptop since 2011 and it's still working fine
 
I never had one that lasted more than a year ... I'm dead serious ...
 
8:12 AM
seriously, how do you break them
I've had 2 laptops for the past 9 years
 
Battery dies within a year for me... and that's about when I consider to smash it against the wall.
 
I've dropped the first one twice and the second one once
@DejanMarjanovic cause you are not treating it properly
 
I don't want to treat it properly. Make it so I don't have to.
 
after 6 months being powered on all the time, the battery is always fucked, that's usually the first thing to go, then it's not useful for carrying around, unless you buy pretty expensive spare batteries every few months ... then keyboards go, memory replaced maybe twice ... then something non-renewable breaks at about a year, chipset, cpu, gfx ...
 
Life is too short to care about battery.
Battery, keyboard, overheating...
 
8:15 AM
seriously guys, how do you do it I've never had such problems
my current 4 year old laptop battery is at 95% capacity
 
I work my pc pretty hard, because that's what it's for ...
 
true, I have a different PC at work
 
@marcio no, it's not necessary
The only thing blocking on that change is absence of an implementation
If we have that we can either directly merge it or vote the rfc and merge it, but we don't do nonesense like have an rfc on what rfcs we can have
 
8:34 AM
posted on May 05, 2015 by kbironneau

/* by maosis */

 
8:48 AM
@JoeWatkins Don't want to be that guy, but MacBooks are expensive for a reason... (and not just because apple are dicks :P)
 
Yeah, except I hate OSX, not sure how it can be really development machine if no server is OSX powered?
 
put ubuntu on it
Mine lasted almost 3 years (then the screen started showing weird fractal). Just a month or so before the warranty ended I was able to get it replaced with a newer model for free. So far so good
Still, would not buy a mac again
 
@DejanMarjanovic It's actually not bad... once you get used to apachectl and the little quirks, just like you did with linux the first time around, it's fantastic
Also, @Webarto man you've not been here in ages
@Patrick Screens are not too expensive to replace :P eBay / google
 
My mom said you are a bad influence @Jimbo
 
@DejanMarjanovic She'd be right :P
 
8:55 AM
This is coming from watching colleagues not having a good time with OSX and things that even work on Ubuntu :-P @Jimbo
 
@Jimbo but because apple are dicks too. My MBP worked kinda fine for 2 years, then I have to change the battery cable every 3 months
 
Ouch, well this is the first time I bought a top end mac (about 8 months ago) so will have to see if it gets any worse.
So not truly an objective opinion lol
 
This thing has higher resolution, better hardware and perfs for half of the price?
 
Hello :)
 
If I was in 'merica, I wouldn't hesitate to buy Apple stuff, but in EU it's a rip-off.
 
8:58 AM
@Jimbo I think it turned out to be the motherboard though. Something about badly applied cooling paste on that series...
 
So... if a server is php 5.3.3 and unable to upgrade atm (later on yes), but needs to implement a password hashing, what does one use? github.com/ircmaxell/password_compat requires 5.3.7
 
@RonniSkansing You could look at the source of that and determine what exactly isn't matching with .7 and see if you can upgrade it? :P
 
@RonniSkansing You can use $2a$ instead of $2y$, then just rehash when you upgrade to 5.3.7+
 
@DejanMarjanovic with student pricing it's only about $200 rip off
 
Basically, replace 2y with 2a.
 
9:01 AM
back to work
ttyl
 
9:13 AM
Anyone currently use any good session managing libraries? Or have one to share?
 
ThW
@DejanMarjanovic remember that us prices do not include VAT, EU prices do.
 
I know, but it's basically $1 = €1 where I am (in DE it's probably way better).
 
ThW
$1.11 = 1 Euro is the current exchange rate (google)
 
Is there a good £ to Euro exr atm? As I'm in Europe on Thursday
 
9:23 AM
@Jimbo the UK is in Europe man, what are you talking about?
 
@ThW lol, I know how to find it :P Just whether or not it's actually considered good. Are you at phpuceu?
@ziGi Haha, Palma Majorca
 
ThW
@Jimbo yes
 
Awesome
 
Hey :)
 
Anonymous
@Fabor @Patrick also wants the same thing, and suggested I create one. If you want the three of us can give it a try someday.
 
9:37 AM
@samaYo Yeah, waiting on Danack to finish his :P everyone wants it but no one CBA to create it properly :p
 
^ this
Ain't nobody got time fo dat
 
Anonymous
for 1 person it could be time consuming, but among 3 or 4, I think it would fun. Also a greate reason to finally have on-topic discussion here
 
morning
 
Hiii
1
Q: SoundCloud Api - How to make (set) playlists favorites?

learnerIs there any way to set playlist favorites in SoundCloud For Track Favorites i am using SC.put('/me/favorites/'+track_id); but its not working in playlist. It seems that "/favorites" only shows tracks and no playlists? Maybe there is another way to check if a playlist was marked as "like", ...

 
You @Patrick :)
 
9:46 AM
@learner not php, asked 5min ago...
 
Saw your portfolio site, nice work.
 
@Duikboot ?
 
patrick.louys.ch
/me still waiting for mor chapters :D 'It is still a work in progress and I will add more chapters in the future.'
 
ah that page needs some work... :D
 
:D
 
9:49 AM
Yeah I need to add to the tutorial, write a book, update the http package and now you want me to write a session package too? :P
 
Well, exactly :D
You'll be writing a book about what topic? :)
 
I wanted to put the tutorial in book form, but with all the theory it's too much I think. So I'll just write a few smaller ones (Hopefully at least one gets done this way...). First one would be a bit like clean code for php
 
Oh (y) nice :)
 
i have a regular expression like this ([0-9][A-Za-z0-9\-]{43,43}[\.][0-9]) used for routing in codeigniter
$route['newcars/car/([0-9][A-Za-z0-9\-]{43,43}[\.][0-9])'] = 'newcars/car/$1/by_name';
i want the expression to match for everything except this pattern
 
10:10 AM
anyone here uses codeintel with sublime text?
 
@Chinthu so what do you want? someone that writes the regex for you?
@SergeyTelshevsky yeah but doesn't seem to work properly (at least it's not doing what I really want)
 
expression is written , i tried to change it for my requirement ..but nothing worked yet
@Patrick i tried (^([0-9][A-Za-z0-9\-]{43,43}[\.][0-9]).)*$ and ([^[0-9][A-Za-z0-9\-]{43,43}[\.][0-9]])
 
@Patrick yup, I've used to use it when it was called differently, now I try to set it up again, but it keeps indexing and it takes sooo long every time + when it autocompletes an object method it doesn't show it's arguments
do you have it working?
 
10:41 AM
@SergeyTelshevsky pretty much the same issue here :(
 
that sucks, probably it's the only feature I needed from this package...
 
is there a way to easily write strings containing class's constants ?

e.g.
"c:/local/{MyClass::PATH_TO_BOOTSTRAP}" // this doesn't work though
 
"c:/local/".MyClass::PATH_TO_BOOTSTRAP ?
 
@Danack as you probably guess I am already aware of this syntax, but i like writing one way strings as in my e.g.
any other ways beside sprintf and Danack's suggestion ?
 
What a job description: goo.gl/dau2o8 :P
 
10:54 AM
Morning
 
"beside sprintf"
I think there is no other ways more than concatenation
 
11:12 AM
hiii
can any one help me here in facebook sharing
 
morning
 
Hey mario
 
hey dutchman :D
 
:-)
 
11:36 AM
@ziGi /me signed up for 010php
 
good
see you then most likely
 
Cool
 
did you just register @ meetup.com
 
yeah
Not that interested at all in the talk btw. :P
 
so why are you going to go then?
I am also not that interested
I just go to see people
 
11:40 AM
Meeting people Drinking beer
 
haha true
 
:P
 
this could be interesting to watch
(it's today, 20:00 UTC)
on a completely unrelated not, do you guys think this mouse would be a good choice: mionix.net/mice/naos-8200
 
90 EUR ermargahd :P I'm the wrong person to ask :)
Although no matter the price I always hate side buttons
 
I love the side buttons
especially for browsing/work
I currently have Logitech m705, which is starting to show it's age (after two years of use)
 
11:48 AM
I have Roccat and I am really happy with it roccat.org/us-en/Products/Gaming-Mice/Savu
 
@PeeHaa also, it's 78€ here
 
Still I don't think I have ever had a mouse more expensive than 10 or something like that :P
 
deer gawd
my condolences
 
Heh. At least beats a mousepad though ;)
 
here is a recommendation then: next time invest in a 30€ ergonomic mouse
 
11:51 AM
@PeeHaa meh… apples trackpad ftw^^
 
@bwoebi Nope. Even though that has some nice features it still sucks
It's kinda a best of the worst thing
 
Why does it?
 
Because it is a huge compromise for when you don't have an actual mouse
There is a reason desktops don't come with a keyboard with mousepad instead of an actual mouse
 
@PeeHaa keyboard tied to mouse? no thanks
 
I think apple mouse is really uncomfortable
it's more like a bar of soap
 
11:55 AM
The magic mouse thing is horrible to actually work with imo
The fact that it doesn't actually have buttons pains me the most I think
It's like having to work on a virtual keyboard instead of a real one
 
and the fact that you can't lay your hand on it so you have no support what so ever
 
God I loved my old phone which had an actual keyboard attached :(
 
what phone was that
 
@PeeHaa When you click, you even hear a click… isn't that enough of a button?
 

« first day (1662 days earlier)      last day (3277 days later) »