« first day (1617 days earlier)      last day (3341 days later) » 
00:00 - 19:0019:00 - 00:00

12:00 AM
that's a good point
 
I pinged the Travis guys on twitter to let them know the BC break is intentional. But we could really do with starting to write the "These are the BC breaks" page for 7.
 
sounds good to me, sounds like you have a job to do :-P
@ircmaxell @philsturgeon Like if the package was written and tested in strict mode but the the project disabled strict mode in php.ini
 
@ircmaxell given php history, it's not surprising that this kind of question arises
 
To sum up the most common questions in one go: "How do I read?"
 
12:16 AM
@PaulCrovella read what? :)
do you expect php developers to read the rfcs?
 
@FlorianMargaine yup
 
@ircmaxell a good idea would be to write your own question & answer on SO for STH
for example with common errors
like "expected int bla bla bla" or the error you get when trying block declare
 
I will when I get time
first I am writing an article for php Architect
 
12:29 AM
@FlorianMargaine There's still that problem if you miss type hints somewhere: 3v4l.org/JZHA6/rfc#rfc-scalar_type_hints_v5
 
12:44 AM
IF I HAD A “NO ASSHOLE” RULE I’D HAVE TO GET REAL FUCKIN CREATIVE ABOUT HIRING “WELL ADJUSTED”, “DEVELOPER”, “EXPERIENCED” - PICK TWO
 
oh god did someone mention union types for scalars
I have five suggestions
1) No, 2) Don't, 3) Really this is a bad idea, 4) Stop, 5) Reconsider
And the reasons? 1) Weak typing, 2) Weak typing, 3) Weak typing, 4) Weak typing, 5) Weak typing
 
2 hours ago, by Danack
Perhaps I'll just draw up an RFC to deprecate weak mode. That should make everyone happy. /s
 
@Andrea :-(
 
Sorry, that was a bit flippant
But I am thoroughly convinced that weak typing makes it a very bad idea indeed
ooh
PHP Town Hall is on
and Anthony is on it
 
:-)
 
1:59 AM
oi
Wonder why our product isn't on there
Maybe because you can't choose network speed or something
most are 100 Mbit though
 
The first one has an add provider link
 
2:15 AM
@Andrea Still on? If so, link?
 
2:57 AM
No SO!! Bad SO!! I need to work! Not procrastinate!
 
 
1 hour later…
4:08 AM
STH broke composer =o(
 
Are you surprised at all?
 
4:48 AM
@Danack Cool, thanks.
 
5:04 AM
Did I hear something about Static Type handling earlier today
I feel like ircmaxell or somebody said something but I was changing a tire
Saw this posted on /r/ProgrammerHumor earlier
 
@crypticツ How badly is it broken?
 
6:00 AM
0
Q: How to add pagination into post showing

Prabhash RawatI have created a plugin to display all posts on any page by short code. But how do I add pagination? global $wpdb; query_posts('cat='.$cat); $table_name = $wpdb->prefix . "advertisement"; while (have_posts()) : the_post(); ?> <header class="entry-header"> <?php if ( has_post_thumbnail()

 
6:12 AM
Hi guys
I have a question
I'm using tinymce in my page to get the html from user
My question is how to store that formatted html into db and how to show it as formatted html from php?
 
@Ja͢ck it's unusable. It's actually the 3rd party JSON parser that is using the restricted class name. They have bug report open, but are waiting on the other RFCs to pass and I guess be merged into master. Which could be awhile.
 
I have tried using htmlspecialchars() for encode and htmlspecialchars_decode() for decode
but it is showing only plain text. not formatted text. For example, if I formatted text as bold, the out put should show bold letters
any idea to do that guys? or any redirects?
 
Hi all
Can someone please help me in my issue?
0
Q: Working example of 'Token Based Authentication' using 'JSON Web Token (i.e. JWT)' in PHP and MySQL?

PHPLoverI'm a PHP Developer by profession. I've developed few web APIs using Slim framework. I want to implement 'Token Based Authentication' to these APIs. Since this is my first time to work on 'Token Based Authentication', everything is new for me. So, I googled a lot for the solution and came to k...

 
0
Q: How to add pagination into post showing

Prabhash RawatI have created a plugin to display all posts on any page by short code. But how do I add pagination? global $wpdb; query_posts('cat='.$cat); $table_name = $wpdb->prefix . "advertisement"; while (have_posts()) : the_post(); ?> <header class="entry-header"> <?php if ( has_post_thumbnail()

 
 
3 hours later…
9:25 AM
MOOORNINGS!
 
9:40 AM
hwo do i website?? URGENT plz asap
 
@PaulCrovella learn MVC it's good for php
10 hours ago, by Danack
@ircmaxell You should talk about how a lot of projects that setup CI against 7 is going to break, as this https://github.com/justinrainbow/json-schema/pull/136 is needed by Composer.
 
10:27 AM
.@philsturgeon has been riding out this Ballmer Peak for the past six years.
 
I use it all the times =] with kittyipsum.com
 
lorempizza.com made by @rlemon using PHP7
 
11:27 AM
good mornigns
 
11:59 AM
hello, is someone here familiar with smarty?
 
agh github "No server is currently available to service your request."
@Proton someone probably is.. try asking the question you got in mind
 
> GitHub.com is down for a scheduled database upgrade. We expect to be back in 15 minutes.
 
Thanks Paul, =]
 
ok .. i'm working with smarty and i would like to get the comments related to a blog entry, so i first get the data in php.

$comQuery = $dbz->query("SELECT entry.Entry, COUNT(com.Blog_ID) FROM Entry entry, comment com WHERE entry.Entry = com.entryID");
$comAmmount = $comQuery->fetchAll();
$smarty->assign('commentAmmount', $comAmmount);
then i want to add it to one of the templates later but i get for every blog entry 1
{for $i=1 to $commentAmmount|@count}
{$i}
{/for}
i'm getting all the blog entrys in an other query and iterate through them and include the template then (where i also iterate throught all the comments)
{foreach from=$daten item='entry'}
{include file="templates/blog_entry.tpl"}
{/foreach}
sry data is data (all entrys)
daten*
 
Morgen
 
12:19 PM
Godmorgen @PeeHaa
 
mr skansing o/
 
Sir PeeHaa \o
Enjoying the caturday?
 
Yeah pretty much. I will have to decide whether I will be coding for fun or for money today though :)
 
mornhaa
 
12:25 PM
I was just marveling at that
 
What's the difference between a kitchen and a broken cooking pan with a handle on the bottom and a half one on the side? — PeeHaa 40 secs ago
:P
 
=p
Anyone got time, I would love a review on github.com/RonnieSkansing/Escapology , on any part.. what to improve in readme, ugly ass code, stupid stuff etc
 
I can't even bring myself to cv, it's just too bewildering it exists.
 
Happy caturday :) ➟ belarr.com/bakercat
3
 
Hi all
 
12:34 PM
@salathe o/
 
Can someone please help me in my issue?
-1
Q: Working example of implementing 'Token Based Authentication' using 'JSON Web Token (i.e. JWT)' in PHP and MySQL?

PHPLoverI'm a PHP Developer by profession. I've developed few web APIs using Slim framework. I want to implement 'Token Based Authentication' to these APIs. Since this is my first time to work on 'Token Based Authentication', everything is new for me. So, I googled a lot for the solution and came to k...

 
@RonniSkansing I have opened two files and 1 file uses tabs and the other file use two space indents
 
Hi @PHPLover
PeeHaa yea.. =] Thanks that is horrid.. they should all have been 2 space ident.. Thanks
 
I think you meant 4 :P
 
@RonniSkansing Hey HI Ronni
 
12:36 PM
lol @PeeHaa =p
 
;)
 
@RonniSkansing Not yet, it was between symfony 1 and 2... but from what I gather, the difference between 2 and 3 will be much smaller
 
@PHPLover after reading your question I think it is too broad
seems more like a complete code request (or a code request in general)
 
> provide the entire code with proper step-by-step description in form of comments
 
@Jimbo oh =] Must have forgot the details.. Do you know in Symfony 2 if the entire application has been booted with it reached the router/dispatching?
 
12:39 PM
@PHPLover Why don't you just implement oauth?
 
@RonniSkansing, @PeeHaa : Yes Ronni, PeeHaa you could say this. Since this is the first time I'm working on such kind of task and I've to complete it by today itself. Actually I don't have any idea about how to do it. Also I didn't find any useful working code examples on the internet.
@PaulCrovella: I'm kindly requesting for step-by-step instructions since it could be helpful to me as well as other community members. Please don't misunderstand me.
 
PHPLover =/ Well your requirements or that you could not find a full example of what you are looking for does not make it fit with what is a approriate question for the site.
=]
I would delete the question, before it is downvoted more
 
@PeeHaa: I can't implement OAuth since it's too complex.
@RonniSkansing: Please don't delete it. I kindly request you not to delete the question please.
 
I can not delete it, I am saying, you should
because you will get more downvotes, you should read the sites faq on asking questions
 
@PHPLover based on your question and your request in here I suggest to either pay somebody to do it for you or to take some time to learn what you need to do
 
12:46 PM
@PeeHaa: If you go to this link thebuzzmedia.com/… you'd come to know why I'm not using OAuth.
 
After 388 questions you should know your question is offtopic
 
Sorry guys for my mistake.
 
@PHPLover All providers use ssl connections
Making that sniffing stuff a lie
 
holy piss that article is annoying to read
 
Don't want to read that entire article, but I saw "sniffed traffic" more than once
Meaning the person who wrote it is a fucking moron
 
12:50 PM
Other things use it as well.
Not sure if this would one box:
....
 
yer mom would work well here
 
Also @RonniSkansing consider running it through scrutinizer
 
@PeeHaa =] okay fixed up the ident to be consistent, thanks for the tip on that... I did look at scrutinizer for much cool badges and stuff.. but I need to pay for that service or did I misunderstand it?
 
@RonniSkansing For public repos it is free
It's a bit of a pita to set it up the first time, but it is useful
 
oh.. I misunderstood then.. I thought it was 14 days free and then payup =] I will setup that then, then I can drop that coveralls stuff
Thanks =] +1 caturday point for you
 
12:59 PM
\o/
 
I will switch to that tonight.. yay lotsa moar badges =]
 
:D
 
hmm... I wonder if I could get people to pay for a fancybadgegeneratr
> awesomeness: over 9000
> code pizzazz: glamorous
 
Scause for Applause
 
1:21 PM
can someone tell me how is it possible to add values to an array in php ?
$array[positionTrack] = $toAdd; doesn't work for me? lol
$positionTrack
is a dynamic variable in a forloop
 
$array[] ?
 
$array would an array that is all ready declared
the [] brackets would be which position in the array i want to put it in
php is like confusing as hell, theres no instructions on how to just add osmething to an array dynamically with a for loop? lol am i missing osmething
all i see out there is the... $array($whatever => $this)
 
Whut?
 
@johnc. What do you see if you print_r / vardump the array? What are you expecting to see?
 
its like what is that ^^^ i just want to add something using a foreach loop and put something in the next position
print_r is just showing a 1
hold on let me try again
yeah print_r is showing 1 as the output
im trying to build a foreach loop to place a value in it
eveyrtime it runs
 
1:24 PM
@johnc. Try print_r($array, true)
 
ok let me try
Array ( [0] => 6 )
waht does this mean?
 
And what you want to add?
That means 0 key has 6 int
 
ok.. so it is adding 1 thing there
hold on let me show u something
is this the right way to add something to an array:
                                $oneTimeUsersArray[$arrayCount] = $UserID;
 
@johnc. I strongly recommend reading the manual first when you are trying to learn something - php.net/manual/en/language.types.array.php
 
yes i agree
but i cannot find my answer there
i need to add based on dyanmic variable, is that even possible?
 
1:32 PM
@johnc. Than you are bad at reading - php.net/manual/en/…
 
haha good ifnd
thanks
so i was doing it right
 
What most people do when they are unsure if something will work is to try it.
 
yesterday, by john c.
i dont really have enough time to learn all the basics, i just know how to do stuff in java and i am searching online how to do it in php :P
 
The computer's not going to explode if you do some invalid syntax.
@PaulCrovella oh right.
 
@Danack his time is precious, it's far better for others to hold his hand through it all
 
1:34 PM
Paul I'm still working on the same thing from yesterdya
 
That's not even the fastest way of learning....
 
well I'm being honest.. I don't have time to read through the entire manual
and I search on google and i can't find answers
that's why I ask here, I'm not just asking without searching first :P
 
@Danack "learning" ... pffft. What a nonsense waste.
 
whatever man.. lol
Just lettin ya know! :P
The situation. Chill out dudes haha.
Sorry I didn't know it would be so serious
 
@johnc. or the most basic of tutorials. Of which there are millions - even available for free on the internet!
 
1:38 PM
I agree!
Sorry!
 
Hey @Patrick :D
 
it's happened, someone has come up with something worse than goto mail-archive.com/internals@lists.php.net/msg77699.html
 
public function __construct(string $data): null {}
What is the meaning of the : null?
 
@PaulCrovella I like old classics marc.info/?l=php-internals&m=141518512702664
@Duikboot return type
 
1:53 PM
That it returns null.....but I didn't think that was valid type; null is a value not a type.
 
Patrick helped me out setting up those functions for me as first step to improve my OO programming. But Im not yet sure what those return types do there: paste.jesse-obrien.ca/1R9X
 
@Danack what type would null be a value of?
 
None?
It indicates a lack of type......I guess.
 
always returning null doesn't make much sense, but a nullable return type or combination of return types including null would
 
could somebody help me with a query? I would like to count all the references from one table to another one. Is this right then? $comQuery = $dbz->query("SELECT entry.Entry, COUNT(com.Blog_ID) FROM Entry entry, comment com WHERE entry.Entry = com.entryID");
$comAmmount = $comQuery->fetchAll();
There can also be nothing, so how can i ensure that there is a value of 0 then?
 
2:00 PM
"Is this right then?" Does it work when you run it? If so it's probably correct.
 
I have made a wonderful discovery about the conjunction of Haskell and Unicode. http://t.co/kQRpXjAYQ8
 
Has someone an idea what can be wrong with line 30? paste.jesse-obrien.ca/1R9Y
Parse error: syntax error, unexpected ''http://upload.wikimedia.org/w' (T_CONSTANT_ENCAPSED_STRING)
 
string is not supported right now
 
Do I have to declare somewhere the string?
 
2:06 PM
nah, it doesn't work
 
2:24 PM
@Duikboot public function scrape($url) until PHP"7"
 
2:37 PM
@Danack null is a type with only one value, actually :)
(or rather, an absence of type with no value)
(Depends what view you are looking from)
 
42 mins ago, by Danack
It indicates a lack of type......I guess.
The context was "what does this mean function foo() : null" Which made me realise that the return type RFC doesn't actually list what things can be used as return types.
Obviously, we have no null type currently.
And instead allow null to be used as a placeholder for 'missing value' on function parameter types.
aka changing from current syntax to a union type one: function foo(SomeClass $bar = null) => function foo(SomeClass|null $bar)
 
@Danack The currently valid parameter types.
 
@Duikboot Where did you actually see that code? Just wondering as someone might be giving out bad info.
 
echo gettype(null); > NULL
 
And if I was a philosophy student, I'd want to argue whether that is a NULL type, or a lack of a type? But I have stuff to do.
 
2:49 PM
@Danack When implementing, it is usually a type with one value. In the language itself it usually a lack of type (and in PHP a lack of value).
 
3:23 PM
@Danack a lack of a type is IS_UNDEF… which is never exposed to userland.
 
3:33 PM
null is a special type with a single value null, that indicates a lack of a value =D
 
morning
 
Morning @NikiC happy caturday =]
 
3:50 PM
@RonniSkansing A most pleasant Caturday to you as well :)
 
4:03 PM
[= Thanks
 
4:21 PM
Why do i get the error Cannot pass parameter 2 by reference here? $entries is an array ($entries = $query->fetchAll(); )
for($i = 0; $i <= count($entries); $i++)
{
    $comQuery = $dbz->prepare("SELECT entry.id, COUNT(com.entryID) AS entryCount FROM Entry entry, comment com WHERE entry.id = com.entryID");
    $comQuery->bindParam(':id', $entries[$i].id); // ERROR

    try
    {
        $comAmmount[$i] = $comQuery->execute();
        echo $comAmmount;
    }
    catch(PDOException $e)
    {
        echo 'Error!<br />' . $e;
 
@Proton what is $entries[$i].id
.id ?
=]
 
In case internals isn't enough popcorn fodder for you today, there's always meta: "If you meet an asshole in the morning, you met an asshole. If you meet assholes all day, you’re the asshole." - quote not in the thread, but applicable.
 
4:39 PM
@PaulCrovella wow a ban of a year
 
Something tells me it's gonna take longer than that for him to cool down.
 
:P
 
Wow has it been that long already
 
4:52 PM
Somehow it's March...
 
Good morning
 
Mornings @ircmaxell
 
> it would allow to include important features, making it a ‘real’ major version.
 
@ircmaxell o/
 
5:07 PM
morning
 
o/
 
\o
 
Get off my lawn @PaulCrovella
 
@ircmaxell It's not a real major version unless we add what I want.
 
5:13 PM
/me sighs doubly
 
scalar pseudo-methods are very important and worth waiting for
 
@someone No, they can be introduced in 7.1.
 
scalar pseudo-methods are also definitely not something you want Francois to work on, I'm relatively sure he'll ruin them
 
Do we really want them…
 
yup
or to be more precise, for the limit of we -> I, yes we want them
 
5:19 PM
I want them, but I want "7" more.
 
and that is true as well
 
@bwoebi yes.
 
i found this to be very reasonable will you work on this news.php.net/php.internals/85354
 
I mean… I can imagine them in a strict world… but in weak mode?
 
@bwoebi How does that matter?
 
5:22 PM
We'd need scalars to support all the methods of int, string and float in weak.
 
You can't reasonably argue what type a function returns (not now, and not if int|bool or simliar concepts were introduced). You'd need to wrap any call on a value that doesn't come from your own code in a if(is_blub). Or have all scalars implement the same interface?
 
@bwoebi Yes, if you want to them to be converted automatically. But I wouldn't do that here.
 
In that case -1.
 
How should it work otherwise?
 
Have all scalars expose the same methods.
 
5:25 PM
$int->add($anotherInt) vs. $string->add($anotherString).
Same method, different meaning.
 
No, same meaning
add != concat.
You don't add strings, you concatenate them.
 
I am agree with bob on that one
 
@bwoebi It is. There may be naming conflicts. That's just an example.
@bwoebi Probably rather append instead of concat.
 
@kelunik then search an API where no conflicts exist.
 
@bwoebi search find.
 
5:27 PM
@kelunik be aware that our API is going to be immutable. "append" sounds more like in-place modification.
 
@bwoebi only support strings + arrays
that is my solution ;)
 
@NikiC I wouldn't merge string&array APIs anyway. We have a RFC which prohibits implicit array->string conversion.
 
@NikiC I think that's a good idea.
@bwoebi We're not talking about merging?!
 
Just a question if I have Controller Article should I have controller Articles (for listing them)?
 
...
 
5:30 PM
@VeeeneX Article::getOverview()
 
@bwoebi don't merge anything
 
Or whatever name you prefer
 
merging string + array apis is dumb
 
@PeeHaa Thanks
 
@NikiC agree… But we need ints to be usable with string API in weak
 
5:32 PM
@bwoebi that is a point that might be worthwhile to discuss
 
$int->find("0") should work for example
[PHP-DEV] Proposal to delay 7.0 timeline
 
Is it from Zeev? Please let it be from Zeev =D
 
No…
 
@AllenJB From his minion.
 
@Danack I'm not sure if the +1 from Zeev is replying to Rasmus or to François…
 
5:36 PM
@bwoebi I sorta disagree. If you're looking for a digit you're really looking for a character in a numeric string.
 
@bwoebi It's a reply to Rasmus....Zend (the company) has started doing press releases about the upcoming software releases based on 7 for this 'September'.
 
@PaulCrovella just that weak usually doesn't differ between a numeric string and an int
@Danack fine
 
Call someone call an ambulance please, I think I've just had a stroke - news.php.net/php.internals/85366
 
@bwoebi Oh, sorry, I totally missed your message before that. Yeah, I don't have a well-formed thought on type coercion for this.
(I'm primarily interested in the array stuff anyway.)
 
@Danack Yeah, hell… even in asm you can't do that…
(well, at least as long as you don't do assumptions like always same calling convention etc.)
 
5:44 PM
@Danack Wow that sounds like a perfect way to fuck up the next person who ever needs to use the code
 
return "'cause fuck you, that's why.", 42;
 
Hmmm… we need to introduce longjumps into PHP… with random target.
 
I don't know how you could call it a real major release without them.
 
hehe
 
> I suspect that any code that could be “improved” with this functionality is already in significant need of improvement by more conventional means.
"Nuke it from orbit, it's the only way to be sure."
 
user1648409
5:53 PM
Hi there guys. One question. If i have root.php where i instantiate 2 classes $a = new ClassA(); and $b = new ClassB(); is there any cool way that i can use the instance of $a inside class b like $a->getAttribute();? Shouldn't i be using global there?
 
@Shiuyin How do you normally pass stuff into other things?
 
@Shiuyin If a class needs access to something else, pass it in a a parameter:
$a = new ClassA();
$b = new ClassB($a);
 
user1648409
ye i know that sure
 
And add the parameter to ClassB's constructor.
 
user1648409
but that would be quite a lot of work since i have about 10 of those classes
 
user1648409
5:55 PM
so im asking myself if there is some cool workound in php
 
user1648409
using global should not be the way to go there
 
a real dependency injector that makes it not painful, to do things properly.
 
user1648409
oh ok, thanks
 
also consider that if you've got an object that directly relies on a bazillion others, such that it'd be painful to write it all out, you might just have another problem to address
 
5:58 PM
@NikiC in this nikic.github.io/2014/03/14/… why would you want to use register_primitive_type_handler if this is going to be built-in in PHP. this sounds like a great opportunity to write a consistent OO API for the language. i mean the API shouldn't be written in PHP it should bundeled with the language
 
user1648409
thanks for your quick answers :)
 
@someone It's an experiment to expose it to userland. Real impl naturally will be bundled…
 
if this is true. and got really implemented we will finally have a great consistent api for the language. the old one maybe should be deperecated in php 8 (after 9 years) maybe and removed in php 9 ! and we will get rid of trolling the language
 
6:19 PM
any chance of named arguments in php 7.1 ?
 
no. no. no.
 
hehe, just frustrated by a lib with a too many args in too many functions
 
Kill the lib, not PHP…
 
[= alright
/me kills phpamqplib
 
:-D
 
6:27 PM
Enjoying the weekend?
 
I like this nested enclosing return thing it looks like a nuclear bomb version of shooting yourself in the feet
 
@RonniSkansing Yeah… I'm having fun getting errors I don't understand
 
> To be honest I had not thought about the bad side of this
 
@bwoebi =] ah those are the best. What are you working on?
/me opens a beer ..
 
phpdbg watchpoints.
 
6:30 PM
@RonniSkansing Yeah I like that idea. I'm also thirsty
 
Getting some inconsistent hashtable state I absolutely don't understand
 
Cheers @PeeHaa =]
 
cheers
 
@bwoebi sounds horrid.. I wanted to use phpdbg more (atm xdebug is defacto at work) ..
 
Though… phpdbg before PHP 7 isn't extremely stable either…
 
6:32 PM
Also I had a hard time with docs on it last time I tried getting familiar with it..
No worries, php7 will be a new era of fun
 
@RonniSkansing random ones are even better. :)
 
Yep… docs in php.net manual are obligatory for PHP 7.
@kelunik No, random doesn't exist at that level.
you only get random when using I/O
 
What are you doing this caturday @kelunik? [=
 
@RonniSkansing Waiting for @rdlowrey to modify Aerys for yield from and @bwoebi to merge STHv5 into his yield from branch.
 
sounds abit blocking for async guy like you [=
 
6:38 PM
@kelunik yeah, will do that after having watchpoints fixed
@RonniSkansing haha :-)
 
Other than that, I've done nothing today. :)
 
@kelunik Oh yeah, would be great if you could rebase that PR to master so it only has the yield-from changes /cc @bwoebi
 
@NikiC yeah, but I somehow need to remove your return-commit from history to not fuck it up…
That's going to be some serious git fun
 
@bwoebi a three-way rebase should do for that
(disclaimer: I need to reread rebase docs every time I do that)
 
Keeping a clean vcs history is one of the hardest things…
 
6:58 PM
hi
 
00:00 - 19:0019:00 - 00:00

« first day (1617 days earlier)      last day (3341 days later) »