« first day (618 days earlier)      last day (4556 days later) » 

17:00
hahaha :)
@webarto Static functions are like normal namespaced functions
Everyone can inspect the DOM nowadays
If you do not require an instance of an object to preform an action, i.e. it does not change an object's state
It should be static
@webarto Why not make it a function?
Anyway I'm off to home. See ya in a bit
17:01
Does anyone know if it is possible to call a class function with a dynamic function name
like that
$myClass->{$aVariable}();
@chantheman Why does it have a dynamic function name. And yes it is possible
I am passing in the function name
@chantheman Have you tried it
it is a special case
yea
And?
Thanks
@LeviMorrison @Truth sorry, I haven't expressed myself correctly... it doesn't have to be static, and I understand there is no such thing as static classes etc, I'm just trying to figure out what is better to use in situations like this... pokit.org/get/img/d26d13d15ef2468f2fd8b46f88e9e31a.png
@Truth can you give me an example when is state of an object changed, I mean what falls under the term "state", thanks.
@webarto I think there might be a built-in function doing what you want already..
@webarto . . . is there a reason you can't use PHP's DateTime class?
@webarto if ($student->changeName()) changes the $name field of that instance of the Student object, it changes the object's state
And if $factory->new("student") returns a new Student object, it does not change its own (Factory) state.
And it should be Factory::new("student");
17:06
it's DateInterval I think, I use DateTime but probably not right... pokit.org/get/img/901abd9146d5d3c38450f709354c1e02.png @LeviMorrison @Truth
@Truth understood loud and clear, thank you
@Truth What?
no
@ircmaxell Hmm?
@webarto Could you share a copyable snippet of that code?
Statics are not for when methods don't change state
Methods either change state, or use state
and the factory method uses state...
@ircmaxell They are for when they are meaningless in objective form
Hey, it's perfectly safe to keep $_SESSION['is_logged_in'] and just check that... right?
17:10
No, in OOP code, they have no place at all
and if you're not using OOP, don't bother putting it on a class
2
especially now that we have first-class namespaces
@minitech Nothing is "perfectly" safe, but yes, it is safe enough.
Though it won't allow you to check who the user is logged in as
i am trying to replace the entire link into a button which has the value $row['id_pk']. ........... echo $row['id_pk']. '<td><a href="CompleteSummarypro.php?id='.$row['id_pk'].'"><font color="FF0000">CompleteSummary</font></a></td>'; but buttin is not getting created no does the value ,how can i make button iwht his value inside php ocde
@Truth Well, I'll be keeping a username too. But thank you!
@Truth yes, sorry pastebin.com/2izh8ZXG thanks
I just have a nagging fear of not keeping a password in session storage :P
17:13
@minitech SESSIONs cannot be accessed by any user, that's not the problem
@Truth I know. It's an irrational fear!
The problem is an attacker stealing the user's cookies, over (let's say) an unsecured WiFi
The user's cookies often hold the Session ID, which will allow the attacker to pose the user.
@Truth SSL will stop that, correct?
@webarto chmod 777 filename was needed for me to write to the file.. did the chmod thing and then fwrite and everything worked.. thanks :)
@minitech Indeed it will
17:15
@Truth Well, money well spent then! My users should be safe =)
@PeeHaa
@minitech Note that SSL will only protect your Achilles Heel, but not the rest. Sloppy code will lead to attacker openings :)
@Truth Working on it ;)
$string = "ęēūñ";
echo $string . "\n";
$string = htmlentities( trim( $string ), ENT_QUOTES, "UTF-8" );
returns ęēū&ntilde;
using htmlspecialchars works fine, is this the expected behavior?
htmlentities will HTML-encode everything HTML-encodable.
&ecedil;, for example, doesn't exist.
@f3r3nc
Wait, that's not even a cedilla.
Never mind. The point being, only the latter of those characters has an HTML entity available for it, so htmlentities encodes it.
17:19
Hii
i am trying to replace the entire link into a button which has the value $row['id_pk']. ........... echo $row['id_pk']. '<td><a href="CompleteSummarypro.php?id='.$row['id_pk'].'"><font color="FF0000">CompleteSummary</font></a></td>'; but buttin is not getting created no does the value ,how can i make button iwht his value inside php code
htmlspecialchars is generally the one you should use. @f3r3nc
@mini
@minitech okay, thanks
Just some extra confirmation:
No obvious security flaws here? There's a unique $salt per user.
gist: Secure hashing...?, 2012-06-25 17:31:55Z
    public static function PasswordHash($data, $salt) {
        $result = '';
    
        for($i = 0; $i < 2000; $i++) {
            $result = hash('sha512', $salt . $result . $data);
        }

        return $result;
    }
17:36
/**
 * @param DateTime      $start
 * @param DateTime|null $end
 *
 * @return string Difference in words
 */
function calc(DateTime $start, DateTime $end = NULL) {
    /**
     * @param int    $n
     * @param string $str
     *
     * @return string
     */
    function get_plural($n, $str) {
        $str .= ($n < 1) ? "s" : "";
        return $str;
    }

    if ($end === NULL) {
        $end = new DateTime();
    }
    $interval = $end->diff($start);

    //...
}
@webarto
@minitech Yes, obvious security flaws. It's not using a vetted algorithm. And you're using hash instead of hash_hmac...
@ircmaxell Since when is SHA-512 not a vetted algorithm?
And what's a keyed hash going to improve...?
You should probably rename that function to something more normal, and no it should not be wrapped in a class.
You're using SHA512 as a primitive, but you implement your own non-vetted algorithm on top
@ircmaxell I'm just iterating the hash. How will that make it less secure than one hash?
@Truth "Normal"? Define, please :)
And I reserve the right to stay out of your OOP arguments.
Assuming SHA-512 is good, why would iterating/appending make it less secure?
(I'd like to assume SHA-512 is good.)
According to this:
4
A: openssl_digest vs hash vs hash_hmac? Difference between SALT & HMAC?

DarkDustHMAC is a specific way to use a hash algorithm (like SHA512). It's used to sign a message and you can then verify that the message is from a specific signer and has not been altered. So this isn't what you want. A salt is used to add a bit of "randomness" to a text that should be encrypted or ha...

hash_hmac would be "incorrect" to use here. I'm not sure of the advantages of either way, though. Could you please explain? @ircmaxell
Seriously, use bcrypt or PBKDF2. Don't try to invent your own
Nice to see you here @minitech
Listen to @ircmaxell, he is our security expert :)
:)
@minitech Using crypt (with bcrypt) gives you the advantage of being able to easily change algos in the future
And you'll also be compatible with the password hashing APIs which will be introduces in PHP 5.5
@NikiC Without breaking existing passwords? How does that work?
(Or is that not what you meant by "easily"?)
18:01
@minitech The algorithm and all options are encoded into the hash
So the verification will always work
@NikiC Right, but they'll still be using the old hash.
Hey, I have problem with Symfony2 formbuilder. I am trying to create simple form with username, email and password in it. And then trying to send data to a mysql database. But my problem is now that formbuilder, I can do that form with plain html + php but I would like to do it "proper" way with builder. Where should I send my code, if someone would like to help me? Thanks!
@Truth function inside function, sweet, thanks, like your coding style
@minitech That answer is actually incorrect. One of the benefits of hash_hmac over hash is doubling the number of hash cycles per round at approximatey 1.5 times the cost.
@minitech Sure :) You can't do anything against that. You can only update their hash once they login :)
18:03
@ircmaxell Ah, okay. You should post a new one =)
I absolutely will
@ircmaxell Can you give me the link to your implementation again?
hey hey
@Truth A function within a function isn't good, it makes it look like it's not thrown into the global scope, when in fact, it is.
18:12
Thanks
Worse, it only starts existing after you've called the "parent" function. Plz don't
@ircmaxell Why did you include support for md5?
That doesn't make sense to me
Especially as it's non-iterative
it is iterative, I thought...
@ircmaxell Well, it does not have a iteration count or cost parameter, right?
18:16
Now my CreateAccountAction look like this; pastebin.com/kXCDdVYb
it's just not adaptive
Hardcoded iteration count means non-iterative
Imho
It's iterated
just not adaptive
Those 1k iterations are getting cheaper and cheaper
and you can't change them
18:18
I don't want to argue about terminology, just saying that it's not suitable for use as a password hashing algorithm
@ircmaxell Why are you providing the option of using non adaptive hashes for a function specifically meant for creating passwords. Honest Q
@Gerry You're speaking to the MD5 version? That's fair. I've been debating it back and forth. I may pull it prior to RFC...
I think you should drop all apart from bcrypt
Unless they are better than bcrypt
In some way
The multi-algo part imho should be used for providing new algorithms in the future
like scrypt
not for providing old ones
sha256 and sha512 are plenty good enough
@ircmaxell hmmm
But for how long?
@ircmaxell Yes, but are they better than bcrypt?
I mean, I don't see a point in keeping algorithms which aren't better
18:24
Wondering if anyone could help with this error im getting:
https://i.sstatic.net/raqFj.png
Doesn't the error state what is wrong?
You are using $sqlquery somewhere which isn't defined
@NikiC better does not apply to cryptography. There is only strong, weak and broken
http://stackoverflow.com/questions/11194414/sql-syntax-error-invalid-query-wamp-phpmyadmin
My code is up here.
Ive trouble shooted this problem for a quite some time now, and I cant figure out why its Null
@Nuktu I see the error
However I suggest you take a hard look at it again yourself. Helps you learn how to debug :)
@ircmaxell Ok, then let me rephrase it: Are there any reasons why you'd want to choose sha512 (or whatever) instead of the default bcrypt (or won't it be the default?)
18:27
@PeeHaa Its not the backtick thing? Cause I now know about that.
@Nuktu Nopez. It isn't. Have you tried checking the error message. Start with that
Anyone know of an ereg to preg_match converter?
@hanleyhansen What do you mean?
Or an easier way handling many of these conversions?
18:28
@NikiC Legacy systems...
@PeeHaa Yes I have tried that, and usually for others the problem was a SQL syntax problem.
I can think of a reason to choose PBKDF2 over bcrypt
@ircmaxell Legacy systems for a feature that will only exist in a year or so?
@PeeHaa I just got a new job and I'm looking to update a bunch of old code full of eregs. I was looking for a quick way to convert them all, maybe an online tool or something.
@Nuktu Just read the error message. It tells you what is wrong. Does it tell you anything about sql syntax? No it tell you about a undefined variable
@hanleyhansen I've always done that manually, not that many ereg in most projects anyway. Sound like you have just hit the ereg jackpot ;)
18:31
@hanleyhansen Replace ereg with preg_match and add delimiters ^^ That's usually all it takes...
@PeeHaa Tell me about it. Tell me about it. It's only my 2nd week here and I already have a headache lol
@hanleyhansen Don't they have a temp for that stuff? :P
Or are you the temp? :)
@PeeHaa Yep it does, im thinking if its undefined that means that im not connecting to that table properly and retrieving information.
@hanleyhansen hehe
@PeeHaa I wish! I'm going to get the secretary to do it.
18:32
lol
@PeeHaa Very funny -_-!
@Nuktu ...I do not think undefined means what you think it means...
:-)
@Event_Horizon Lol
Thoughts on scrypt, @ircmaxell?
18:33
@Nuktu Just read carefully what is happening. It is bitching about a variable being undefined. Wait what? Undefined? I just thought I defined it???? Guess again. Or better read again
@NikiC I'm going to cross my fingers and hope this works lol it's spread across like 200+ files.
@minitech I like it in principle
drupal.org/node/1201444#comment-4675994 <-- a basic analysis I did on scrypt
hey @ircmaxell
hello guys
may I ask a question
@ircmaxell would you be interested in making a chat for drupal?
brb
18:35
No
@ircmaxell What I mainly don't like about supporting multiple algorithms is that it gives people choice. And I feel like choice is something good in this context.
@ratzip I wanted to copy the chat topic but that's where the cv backlog now is, but yeah: just ask your question and if somebody wants to help he/she will
@NikiC choice is good. If you don't give it to them here, they'll choose a different API...
@ircmaxell In my eyes choice is the thing that we're trying to eliminate here. At least it is my goal. Uninformed developers had the choice far too long on this. And you clearly see that they mostly do the wrong choice.
Heh, maybe I'm just too much of a dictatorship guy ^^
To me, I'd rather give them choice that they can make if they choose. Otherwise, make it so braindead easy that any simple dev can just $hash = password_create($password)
18:38
@PeeHaa what you mean?
@ratzip nvm :) just ask your question and if somebody wants to help he/she will
He means don't ask if you can ask a question, just ask it, its in the room description
@ircmaxell Oh, btw, I wouldn't call that function password_create. Rather password_hash_create or even just password_hash. password_create to me sounds like a function for generating random passwords for users or something like that ^^
@PeeHaa ok, but what is CV?
close-vote
18:40
@NikiC yeah, that's fair
@ratzip There's a pinned message explaining it...
gist: A brief description of cv-ring and cv-pls, 2012-01-27 15:55:00Z
# What is 'cv-ring' and 'cv-pls'

In the [Stack Overflow](http://www.stackoverflow.com/) [PHP chat](http://chat.stackoverflow.com/rooms/11/php) you may notice that the regulars use a tag called `cv-ring` and `cv-pls`.  These tags are used only in the chat room to communicate with other users that a question or answer may need more votes to be closed.  You see, PHP has a lot of inferior quality and duplicative information on Stack Overflow.  We feel that these questions bring down the site and make it harder to find good information, particularly about PHP. By closing and merging these questions as appropriate you'll find the information you need quicker.

`cv-ring` is just a 'funny name' we give to the process and `cv-pls` is simply an in-chat tag that communicates "Hey, this question may be of inferior quality.  Check it out and, if you feel appropriate, cast a close vote."  

There's been a question on [meta.stackoverflow.com](http://meta.stackoverflow.com/) that [asks whether the community should vote-to-close in this way](http://meta.stackoverflow.com/questions/120275/is-asking-others-for-a-close-vote-appropriate/120278#120278) if you feel the need to provide feedback.  If you have a problem with the process or notice abuse please post something on meta or talk to us in chat.  This process is meant to *help the community* but can easily start *hurting the community* and that is not our intent.  I hope this clears up a little more about what `cv-ring` and `cv-pls` means.
Jun 18 at 10:19, by Gordon
What does mean: https://gist.github.com/1689430
18:41
@ircmaxell In any case, you know my opinion. You are free to ignore it obviously :P
for the newbies here...
I want to match the following string: employee Type="entry" id="mmop" location="somewhere", using the following regexp: [regexp {id=(".*")} input]
@NikiC No, I feel that putting in SHA256/512 is good, but I can't justify it even to myself. It feels wrong to pull them, but if I can't rationalize it, they should be pulled
I'll think on it for a day or two
18:42
but how can I avoid the "*"
@PeeHaa Thanks for the help, but that has just confused me more. ha
@Event_Horizon could you un-onebox that? Takes up so much space :/
1 message moved to bin
Not now, thanks @ircmaxell
@Nuktu Still didn't spot the error?
BTW I still hate those gist oneboxes :(
18:44
oneboxes need a height limit
what have i missed ?
@tereško everything
@Event_Horizon And grippie
@PeeHaa No unfortunately not, I bet its something simple too.
@Nuktu You know variables in PHP are case sensitive right?
18:46
@PeeHaa quite
@Nuktu What are you guys trying to do?
Redacted
@PeeHaa Thanks! I saw that straight away, spent too much time thinking it was a complicated problem.
@Nuktu now you'll remember for the next time (I hope) :)
18:48
@PeeHaa I will indeed! ;)
in php variable names are case sensitive .. function and class names are not
@NikiC: any feedback on the implementation/
i would consider it to be a design mistake in language itself
which goes to show how Wonderland PHP is at times
is still prefer php's "workflow"
18:51
@tereško Ye I knew that, one just got away from me and I thought it was another problem
@PeeHaa what happened to your CV-PLS on github?
@ircmaxell Sure
@Event_Horizon Moved it to organization :)
/me remembers never to ask questions you don't want to know the answer to
18:52
@ircmaxell What strikes me most is that you call PHP functions in there
yeah, I wish I didn't but crypt() and mcrypt_create_iv() both aren't exposed to C without a lot of work
I acknowledge that it does not have a significant perf impact, still I think that one shouldn't do it
@Nuktu btw I don't now whether that is new code and I'm pretty sure someone already mentioned it to you, but you should really consider learning PDO
@ircmaxell At least for the salt generation you should be able to use the internal APIs
On Windows you can simply use php_win32_get_random_bytes (which is always available there)
18:55
@rdlowrey Excited to do content negotiation?
On Linux you can either read /dev/*random or RAND_pseudo_bytes (what openssl uses)
@PeeHaa PDO? Im just learning PHP to handle requests using AJAX and JSON. Would PDO work for that?
fair enough... I'll refactor that
@Nuktu PDO is for accesing the database in favor of ancient mysql_* functions
18:56
@Nuktu Please stop writing new code with the ancient mysql_* functions. They are no longer maintained and community has begun the deprecation process. Instead you should learn about prepared statements and use either PDO or MySQLi. If you care to learn, here is a quite good PDO-related tutorial.
@ircmaxell sorry, I missed your "why not make it a function message", how do you suggest loading a file with functions in eg Zend Framework, just include it in bootstrap?
@PeeHaa Ah ok, Ill look into it now then.
@Truth Thanks for the information, Ill look into it now.
@Nuktu That tutorial linked is quite good
:)
18:58
@webarto Why not?
no reason not to, thanks.. but someone might ask me not to use "procedural" code inside framework :P
@PeeHaa Does WAMP support PDO?
@Nuktu Idunno (I don't use WAMP :) ). What version of PHP does it run. Also you could check the output of phpinfo(); to find out
@Nuktu You said you were new in PHP right?
when have i ever asked anything of you
@webarto not to use procedural code inside of a framework that has a lot of it already, hidden behind the disguise of Class-Oriented-Programming?
19:03
@PeeHaa Yes im new to PHP, I just looked in the PHP extensions folder of WAMP and it contains php_pdo_mysql and other php_pdo names. So im assuming it does support it.
@Nuktu Looks like it
@Nuktu Do you have a github account by any chance?
@PeeHaa I dont have one, should I?
Aaaaaand cap reached :)
why do people use WAMP ?
@tereško Because they like hurting themselves?
I'm 20% legendary :D
19:05
Hi guys, I'm a hobbyist developer with a little knowledge of some languages including PHP, however for the first time I'm looking to recruit someone else to develop my next website. I'm struggling at the moment to step back from looking at it as a programmer though whilst trying to work out how the database will be done.
I'm just curious, if I am outsourcing it would it be best to completely forget about database structure and literally had someone with a lot more experience a spec that just details how I want the site to work and let them figure it out? What do you guys prefer if you take on freelance work?
And now the good questions are gonna start :D
*hand it to... :-s
@James Try Careers
@Nuktu Neh. I'm not saying that you should (altough it is nice). But I'm currently in the process of writing a beginners guide into PHP. And I need some beginners to have a look at it at some point
@tereško It was suggested to me by College
19:07
yo
@Nuktu , I suspect that they suggested for you to use w3schools too
@GordonM 'sup
@PeeHaa OK cool, Ill have a look if you want me to.
@tereško I would star this, but the context will be misunderstood :(
@tereško Yes they did, but you cant learn everything from w3schools.
19:08
@Nuktu His point was that you shouldn't use w3schools, but your college recommended it to you.
@Nuktu , actually , you should not learn ANYTHING from w3schools
@Truth Thanks truth, I have been there before. I'm just a little unsure how far you need to be along with your ideas before you start looking for a developer. Is it generally better to leave all technical to the developer to figure out and just provide functionality descriptions.
@ircmaxell yeah I know, something like that :) its that people think if it begins with "class {" that it is completely OOP... thanks again...
@Nuktu It's a work in progress and far from finished. Although you always make take a look and tell me whether it is clear: github.com/PeeHaa/php-net-tutorial/tree/master/topics
19:09
@James You should have a clear vision
there's nothing wrong with procedural. Don't let anyone tell you otherwise
this would be the point, when I recommend to change the college
@tereško They all suck
When hiring a developer, you should tell him exactly what you want your application/program/website to accept, and what you want the user to have in return
@Truth Thanks, that's what I'm putting together now. Would you usually expect mock-ups of pages, or interface or anything similar?
19:10
@James No, but it sure is helpful
@PeeHaa , mine was pretty good ( but it was brand new, the got accreditation only on the same year that i finished it)
@tereško I go to college only on Sunday, every third month :D
The more information regarding what you want you give, the more accurate the end product will be
.. didn't come out in english
The technicalities of "how" should be left to the developer, just make sure that the "what" and "why" are as clear as possible
19:12
@tereško You're lucky or maybe the educational system is better there in Latvia. But generally speaking students know better than teachers here (on the programming topic at least)
@Truth Okay thanks, that's what I was thinking, I've been reading recently that long-winded specs are generally not the way to go for this sort of thing. More just. like you say, what the app is expected to do and the user to experience.
@tereško In the end they have to recommend something, so that is probably the easiest choice for them.
@James Let's pretend I'm the developer you're hiring
Show me your stuff
@Truth Haha, at the moment its spread over about 15 different Evernote and Onenote, notes! Might need to get it together a little more first. Definitely appreciate the offer though!
@James Aight than, anytime :)
19:14
@PeeHaa , we had only one such subject .. and the class petitioned that i become a substitute teacher for that course .. which was kinda fun (but did not happen, because one need at least master's for it)
1
Q: Native prepared statements: are they so limited?

dotancohenAn informative-sounding blog post from 2006 states these facts about using native prepared statements in PDO: Native prepared statements cannot take advantage of the query cache, resulting in lower performance. Native prepared statements cannot execute certains types of queries, such as "SHOW T...

What do you guys say?
@Truth Thanks for the help though.
user895378
@LeviMorrison sigh
@Truth , that guy recommends to use emulated prepares .. i think that's enough to pass the judgment
@rdlowrey No? How about Language negotiation?
user895378
19:17
@LeviMorrison I'm not really excited about any type of negotiation at this point :)
0
A: openssl_digest vs hash vs hash_hmac? Difference between SALT & HMAC?

ircmaxellSo, first off, let's clear one thing up. openssl_digest() === hash(). It's just another function by a different name that does the exact same thing. It computes a cryptographic hash of the input. So, now we have the question: When storing passwords, which is better: hash or hash_hmac? Short Ans...

@rdlowrey Oh, okay. What are you excited to do?
user895378
@LeviMorrison hehe I'm not sure. In ~2 hours I should have all the stuff I mentioned before pushed, 100% test-covered and easy to understand. After that I'll be ready to get excited about whatever the next thing is (probably content/language negotiation)
@rdlowrey Also, remember how we talked about a class for each HTTP verb vs a method for each verb?
user895378
@LeviMorrison vaguely
19:22
@rdlowrey Does Atreyu support both?
user895378
Yes.
I haven't looked at that portion of it in a long time, figured I'd ask.
user895378
That's the kind of stuff I wanna walk you through so you know how everything works.
@Truth According to MySQL docs prepared statements are compatible with the query cache as of 5.1.17. Does that apply to PHP PDO real prepared statements? I'm pretty sure it would.
user895378
@LeviMorrison Currently it checks for the appropriate method in the routed controller. So if you make a POST request that's routed to the MyResource class, it will automatically send a 405 if MyResource::post isn't callable.
19:24
@ircmaxell learned a lot from your answer
thanks!
user895378
@LeviMorrison Actually, I take that back. The route definitions don't specify an HTTP method. They just specify the URI path pattern and the relevant resource class. The only way the router knows the method is okay is if the routed resource class has a method matching the HTTP verb.
user895378
But it's the same concept as a 1:1 class:verb mapping
user895378
To change that the Route objects would need to each be defined with a single HTTP method in addition to the URI path pattern and the resource class
user895378
I don't see much advantage to doing that, though.
@rdlowrey My thinking was that I would possibly need some more classes to handle one request verb than another. For a get, I probably need a gateway, but for PUT I might need something to convert the PUT data to something my gateway can understand. Does the auto-instantiation work on methods as well as the constructor? If it does, my point is moot.
user895378
@LeviMorrison It does.
@rdlowrey Then no worries. Carry on.
user895378
@LeviMorrison It provides arguments to the MyClass::put like so:
user895378
1. If the parameter name matches a capture value from the Route, the
capture value is used (i.e. /myPage/:paramName)
2. If the parameter has a default value, the default is used
3. If the parameter is typehinted with a class name, the injection container
attempts to provision an instance of the specified class
4. If none of the other requirements are met, a null value is passed
user895378
19:34
@LeviMorrison If you'll be around later tonight I can give you a full rundown of all the features and behaviors
user895378
Of everything, not just routing
@rdlowrey In how many more hours?
^ Poorly worded question.
user895378
@LeviMorrison Whenever. I was going to create a new Atreyu-Example repo in a bit. After that I was going to go the gym for a workout, but my schedule is totally fluid. So if you have a particular timeframe that works for you I can adjust to walk you through the example.
hey @rdlowrey
user895378
@GordonM yo
19:36
@rdlowrey I'll be at work for 3.5 more hours. I don't think I can guarantee I'll be on after that. Maybe tomorrow night?
user895378
@LeviMorrison Sure, no problem.
Was hoping to get a bit of advice on a PHPUnit mock for that session class. I built one with a subclass, but if there's a pHPUnit way to achieve the same thing i'd be keen to know.
user895378
@LeviMorrison If you feel like being an overachiever you can just check out the soon-to-materialize Atreyu-Example-App
Serious is there any decent IDE / texteditor / whatever out there that won't display somewhere the fact that a file has a BOM?
They haven't said me those, and that's where CuteFTP and File BOM Detector comes to my rescue! :) — Praveen Kumar 1 min ago
user895378
@GordonM I can't promise I can get to it this afternoon, but I'm happy to help. I'll check it out ASAP
19:37
@PeeHaa Using a decent IDE is the problem. I have tried with NetBeans IDE, Expression Studio, and Dreamweaver. All insert the UTF-8 BOM at the top! One thing is, the editor of CuteFTP will be able to detect the BOM at the top and show it in plain text. Have you people noticed it? — Praveen Kumar 4 mins ago
github.com/gordiansolutions/reefknot/blob/master/_unittest/… is what the unit test looks like now. Basically it adds a subclass with a few statics I can use to tweak the behaviour.
Hey @PeeHaa, if the routes in my application are already determined. Does it make sense to make an array containing all the routes and check that way, or can I just check if it's a valid Controller?
@Nick Array, yaml, xml, whatever :) All should be fine for the job
@PeeHaa Thanks :)
I also gave the whole RMR architecture thing a serious rethink and I think I've come up with a better solution than the one I was originally going to use. Was hoping I could run it by you guys
19:42
posted on June 25, 2012 by Stefan Koopmanschap

The PHP TestFest that Dutch usergroups PFZ.nl and AmsterdamPHP organized last saturday was a huge success. About 15 people made their way to the office of WEBclusive to collaborate with three key figures from the PHP-world, who travelled to Amsterdam to be a mentor, to write tests for PHP.

@Feeds Oh noes I missed a TestFest... :|
@PeeHaa I wonder when we'll see those tests
I've only seen three PRs for tests
yup
Sweet. Kraftwerk on the radio. And not The Model.
PS that site sucks :P
19:49
Also I wonder whether 15 people => 55 tests is a big success
Or does writing tests take much time?
@NikiC I suspect there was booze involved
At least that's what I would do
:D
@NikiC imo if it takes that much time to write a test, the test probably isn't really that good
multiping
19:51
Oh, PHP has a different sort of test than the usual phpunit ones
Well you couldn't test PHP with PHPUnit because PHP isn't written in PHP!
@GordonM Still you can test the outcome :)
@PeeHaa yes, like these
those are the language tests though
user895378
Is github doing strange things for anyone else? I'm starting to lose my sanity because it keeps giving me a 403 when I try to push things to a new repo I just created.
19:56
@NikiC Yeah, but I figured the others tests would be something alike

« first day (618 days earlier)      last day (4556 days later) »