« first day (538 days earlier)      last day (4413 days later) » 

user895378
1:00 AM
Looking at the list of PHP language constructs I see no mention of is_null.
 
user895378
Am I correct, then, to assume that ...
 
user895378
NULL === $var will be more performant than is_null($var)
 
user895378
?
 
1:17 AM
@rdlowrey i dunno if you still wanted to know... but i was curious enough to do this: viper-7.com/z94w6h
 
Yes, it is
one is a function, and the other a language construct
however, null === $var requires a malloc, where is_null does not, so...
 
user895378
Thanks for subsidizing my laziness guys. I know it's a micro-optimization, but I thought I'd ask :)
 
lol
28
A: Is micro-optimization worth the time?

ircmaxellWell, for a trivially small array, $array === (array) $array is significantly faster than is_array($array). On the order of over 7 times faster. But each call is only on the order of 1.0 x 10 ^ -6 seconds (0.000001 seconds). So unless you're calling it literally thousands of times, it's not go...

 
user895378
@ircmaxell Alas, I've already read, appreciated and up-voted that one in hopes that you bypass John Skeet :)
 
:-D
 
1:25 AM
fellas im trying to dive in to pdo for the first time and im confused on something... i thought prepared statements were something you did before runtime, then called by a query like a function call like mysqli_query("some_func_name([params])");... but it seems like PDO::prepare() is all about preparing at runtime
doesnt that defeat the purpose of preparing them?
 
No, that's a stored prcedure
 
ohh
der... thanks
 
user895378
Unless you're talking about very high-performance environments, trying to avoid performance penalties by working around prepared statements is a micro-optimization on the order of my previous question regarding is_null
 
user895378
There are far too many benefits to worry about the extra overhead in normal scenarios
 
user895378
A tiny performance cost is way better than having your database DROPped in an SQL injection attack :)
 
1:31 AM
that's what I say, but Rasmus will disagree with that statement
and I call BS on that
 
user895378
Yeah, where security is concerned I don't know that you should ever take a shortcut, regardless of the performance cost (within reason, obviously)
 
I agree 100%
but I brought it up, and he (and others) seemed to think it was too steep a price to pay to be provably secure
which is why I don't use PDO
 
user895378
Is there something about the prepared statements in PDO that I'm missing from not using mysqli?
 
@rdlowrey i agree with that as well
 
user895378
I've spent the last two days trying to write a completely non-static, dependency injected ActiveRecord implementation and I want to punch PDO right now :)
 
1:34 AM
but the "i" in mysqli stands for improved right? so does pdo use mysqli? or mysql
haha
 
neither
@rdlowrey PDO by default does not use real prepared statements
 
so its just like an alternate api to interact with the db?
@ircmaxell and wait from what you were saying it seemed like you were in favor of pdo
 
Not at all, I'm in favor of mysqli, except that it's prepared statement API needs to be improved. But the functionality is superior...
 
user895378
I don't know how to differentiate between PDO's prepared statements and "real" prepared statements? Could you elaborate?
 
yes, second!
 
1:39 AM
PDO compiles the statement into a normal query before sending it to the server
 
and also what you mean by superior... like performance? flexibility? overall usage?
 
MySQLi sends it using MySQL's PS API, which is then processed server side
PDO is still vulnerable. In fact, depending on how you setup PDO, I can inject into PDO prepared statements...
whereas MySQLi prepared statements are impossible to inject into
 
user895378
So is it correct to assume that's why MySQL can't cache the prepared statement and reuse it in adjacent/nearby queries with PDO?
 
user895378
Or is that a MySQL thing and it also can't reuse them for mysqli prepared queries either?
 
depends on your definition of cache
If you re-use a prepared statement (an instance), MySQLi will re-use the parsing from the first query, making subsequent calls far cheaper.
PDO will not
(by default)
 
user895378
1:43 AM
that's what I was trying to say :)
 
you'd need to call $pdo->setAttribute(PDO::ATTR_EMULATE_PREPARES, false) to stop emulation
 
wait so without that attribute set to false, this:
 
user895378
When you say "how you setup PDO" do you mean compile flags or runtime setup using attributes like above?
 
is the same (performance-wise) as if you just prepared the exact same statement again?
 
user895378
> In fact, depending on how you setup PDO
 
user895378
1:44 AM
^
 
@rdlowrey if you don't pass the charset to the constructor, but just call $pdo->query('SET NAMES UTF8'); it's possible I can inject into your queries
 
user895378
wow, that's kind of frightening.
 
@rdlowrey (quick chat question) how do you reference what somebody said earlier like this
 
user895378
Use the "greater than" sign at the beginning followed by a space: "> "
 
user895378
That's a blockquote
 
1:46 AM
got it, thanks
 
user895378
if you want to actually reference a previous message, just copy its permalink and paste that, like so:
 
user895378
2 mins ago, by AndyPerlitch
is the same (performance-wise) as if you just prepared the exact same statement again?
 
1 min ago, by rdlowrey
Use the "greater than" sign at the beginning followed by a space: "> "
sweet
 
user895378
There's also a Sandbox Room where you can play around with formatting so you don't annoy people with 20 messages in a row trying to make something work.
 
awesome
hm so PDO is looking less and less attractive..
 
1:52 AM
Question: Is there a reason to NOT use mysqli prepared statements for all queries?
 
user895378
@Hamster Haha good timing. The short answer is NO. Just use them.
 
other than laziness
@rdlowrey ah cool thx
 
wow great timing
@rdlowrey i was lookin at that starred comment you made on zend's autoloader... is it seriously that huge?
 
user895378
@AndyPerlitch That's actually the CodeIgniter autoloader, but yes.
 
user895378
They should maybe consider renaming it from Loader.php to KitchenSink.php
 
1:56 AM
stackoverflow.com/questions/10038264/… evidently adding filler text is not good practice for SO questions...?
 
@rdlowrey lol
 
user895378
@Hamster hehe, yeah, you'll be regarded harshly for that. Next time just put your full question in the body, even if it means repeating what's in the title. Also, you'll always get a better response if you include some code to illustrate what you mean.
 
user895378
A SO question without code is like asking blind people what's wrong with your outfit.
 
lol
 
user895378
@Hamster It's a little difficult to understand what you're asking. A single query is a single query. You can't prepare one query in two parts. The LIMIT clause is part of the rest of the query.
 
user895378
2:01 AM
You can bind parameters one at a time, if that's what you mean.
 
I meant it as a single query.
I was told earlier I couldn't parameterize the two values under the LIMIT clause, but I want to verify this.
 
user895378
You were told wrong. You can bind parameters to any part of a query.
 
i know you cant do this with pdo:
$stmt = $pdo->prepare("SELECT * FROM Table ORDER BY ?");
 
user895378
Right, because that's not a value. That's the name of a field
 
but, to be semantically correct thats still part of the query right?
 
user895378
2:04 AM
You can only bind parameters to a value. I should've probably been more clear :)
 
i should probably not be as much of a douche heheh
 
user895378
No, it's good to never assume things are understood, which is what I did. Of course everyone knows you can only bind parameters to actual value parameters, right? Wrong.
 
user895378
Anyway, enough fun SQL talk for me, back to work.
 
aight, take 'er easy
 
been looking about an it seems that others have experienced the same issue, but the solutions I've come across don't work. When submitting a form to a database (it is an order form) I then want it to redirect. I am currently using "header("Location: "); but when that is present it doesn't submit to the database, any ideas?
 
2:12 AM
@PurpleSmurf that's the kind of question you'd need to provide specific code for.
 
Okay, give me a second, I'll type out a short-hand, if you don't mind looking at it?
 
What I'm saying is it seems to be a logic error in your code.
But sure, I don't mind.
 
if(isset($order)) { mysql_query("INSERT INTO Orders (firstname)VALUES('$firstname')"); }

$page_location=$SERVER["PHP_SELF"];

<form method="post" action="?php echo($page_location) ?>
<p>firstname:<input type="text" name="firstname"/></p>
after that the form's closed with the input buttons appropriately named, then in another <?php ?> the header("location"); comes in
extract ($_POST);
if(IsSet($order)){

mysql_query("INSERT INTO Orders (firstname,surname,address)
VALUES ('$firstname','$surname','$address')");
}
//if ($result=mysql_query("SELECT * FROM Orders"))
// {
//while ($row=mysql_fetch_array($result))
//{
//extract($row);
//echo "<p><b>Order $orderID: $firstname $surname </b>";
//echo "<em>Destination</em>, $address to be dispatched soon.</p>";
//}
//}
$page_location=$SERVER["PHP_SELF"];
if(!errors)
?>

<form method="post" action="<?php echo($page_location) ?>">
 
wait, why would you output html then redirect the page?
or am i misunderstanding...
hang on
IsSet isn't correct i think
 
sorry for messy code, my ftp decided to die so I couldn't copy in the cleaner version
 
2:23 AM
isset is lowercase
 
I'll change that back to lower case, but it works when the header part isn't present, so would still be the issue?
 
uh, i think using header after outputting html is wrong, if i recall
 
oh right, I thought it would have to go at the very end after everything else had been executed
 
 
2 hours later…
4:38 AM
using INSERT . . . ON DUPLICATE KEY UPDATE for object oriented style mysqli, and I cannot get - $dbh->insert_id to show the insert ID when the table is empty.
 
 
1 hour later…
5:56 AM
oh I forgot to say... I've tried ... DUPLICATE KEY UPDATE id=LAST_INSERT_ID(id) ... to no avail, how would that help me get the ID?
 
 
2 hours later…
7:40 AM
@andrewjackson if the table is empty, nothing was inserted...?
Also question: Is this valid use of a reference: $arr[] &= $this->Test?
 
8:03 AM
@andrewjackson , since id is usually a primary key , just don do it
 
8:14 AM
Basically, what I want is to insert a new ip address into the database, or update the hits when it already exists, and get the id of the ip address. the table looks like:
primary_auto:id	unique:ipx	vc
		1	iphexvalue	10
I'm also planning on inserting a new row with a timestamp in a different table for every time an ip address loads it.
 
Hi, do you have any idea about this encoding problem: stackoverflow.com/q/10031064/1315533
 
that's basically why I need the ip id... I think 8 bits is more than <= 4-5 bit long integer...
there's the log table which is:
	ipid	timestamp
	   1	0000000000
I just need to know, is it stupid? lol
 
jay
hello
any one help me in wordpress
hi
hello ircmaxall
 
@Hamster what I meant by the table being empty is just what I did to see if inserting a new row into the database would cause $mysqli->insert_id to have some value...
 
jay
8:27 AM
hi
 
@tereško I'll figure out some other way to do it. It's for a picture that get's updated every time it is loaded. There's got to be some efficient way to do this.
I can generate some PHP code that would load the image with static settings...
 
Quick question: Is this valid use of a reference: $arr[] &= $this->Test; ?
 
@Hamster I think that depends on your version of PHP
I know that $array[] = 'something'; is valid in 5.4
an I think that $something &= $object was deprecated some time ago
 
@Hamster that's not using a reference... it's a "bitwise and" assignment.
You were probably thinking of =&
And yes, it's "valid".
 
@salathe Yes =& was what I meant. Thanks!
And then I'd use something like $array[ count($array)-1 ] to call it back, right?
yes, yes i would
why'd i ask that :P
 
8:39 AM
@salathe isn't it "deprecated"?
 
@andrewjackson no
 
Hamster this will give You the last element of array, so yes.
 
@andrewjackson "new by reference" is.... $foo = & new Blah;
@andrewjackson see the bottom of php.net/operators.assignment
 
and that doesn't throw any errors in strict, or E_ALL?
@salathe well, that's a variable reference.
what about constructor references?
 
what about them?
 
8:44 AM
All I know is there's some deprecation warning related to some object referencing.
I haven't tested that, but I'll get back to you on it
@salathe that doesn't have any error
 
@andrewjackson what doesn't?
 
@salathe haven't you ever played around with the different syntax patterns and came across a bunch of deprecation warnings?
 
@andrewjackson sure
 
@salathe then you would some of the deprecated references?
 
@andrewjackson sorry, what?
 
8:54 AM
@salathe lol nm
I think I'm having flash backs from the 80's
 
Good times! :)
 
and I was born in 90 =S
@salathe did you play atari games?
 
@andrewjackson not many, I was a Commodore-64 kid
 
@salathe jw... so then did you develop some game for it ever?
I can see developing for Commodore-64
well, just thinking about it... I never actually tried it, but from the looks of it, simple-compact-micro-optimized-machine-code seems like something that would get me interested in computer industry. lol
I guess the Commodore-64 was a BASIC SDK
 
 
 
1 hour later…
10:38 AM
Hello Everyone! I need some urgent help.
 
With ? :) hello
 
10:54 AM
@user950146 The answer is 42. I don't have any time to explain it though.
 
Oo
 
11:17 AM
i want to export a single table from the the database witout using phpmyadmin
i have only ftp credentials in which i am using this script
$r="mysqldump $dbuser $dbpass $dbname wp_posts > table1.sql";
system($r);
anyone thr???????????
 
@jassi9911 I'd avoid using system
 
then what will you use.?
 
your password then is involved in a direct system call which may be okay security wise depending on the circumstances
do you need it to be automated?
 
i didn't get it!
 
Can you login and retrieve it manually?
oh, wait, only via ftp?
 
11:26 AM
yes i've only ftp credentials and don't have phpmyadmin access
 
to get it working just quickly using system, I think that command should be: mysqldump -u $dbuser -p $dbpass $dbname wp_posts > table1.sql unless you were adding the -u and -p into the shell variables.
 
from the mysqldump manual page it says:
> Specifying a password on the command line should be considered insecure. See Section 5.3.2.2, “End-User Guidelines for Password Security”.
 
i've also tried with -u & -p but again i getting a blank page in result
 
did you check the error log?
 
11:33 AM
i've also tried the same script on my localhost but again facing the same problem
 
hi
Any of you guys got any node.js experience? Because I was researching it with a view to building the server side of a COMET app in it. Then I found teddziuba.com/2011/10/node-js-is-cancer.html and... damn.
 
@jassi9911 what did the error log say?
 
m opeing it
its a large file will take sum time
 
the problem is that you can't have a space between -p and the password. It should be -p$dbpass
 
11:39 AM
ahh, good point. But did you make the same mistake as me @jassi9911?
 
ok let me check this
 
hi @RepWhoringPeeHaa, check this out: misko.hevery.com/2010/07/29/…
It's probably very cool for the setting page etc.
 
its not related with my question.!
 
will be afk now, have a nice day everybody.
 
11:59 AM
@hakre I haven't got sound here at work will check it out later
 
12:37 PM
morning
is it just me, or is mr coding horror writing crap again?
probably just me hating that guy, but imho especially his use of terminology is very misleading and leads to some wrong/misleading statements
That shouldn't happen for security related articles
 
huh?
 
Yeah, sorry, I just really dislike him :( For some reason
 
eih, whatever
 
12:54 PM
@ircmaxell Do you know the difference between emalloc() and emalloc_rel()?
 
rel? No...
not sure what that's for
 
One sends malicious emails to your relatives and the other sends them to anyone? :)
 
I wonder because the FREE_ZVAL macro in lxr.php.net/opengrok/xref/PHP_TRUNK/Zend/zend_alloc.h#164 seems wrong
it uses efree_rel
 
#define ZEND_FILE_LINE_C				__FILE__, __LINE__
#define ZEND_FILE_LINE_RELAY_C			__zend_filename, __zend_lineno
 
What's coding horror guy up to?
 
12:58 PM
Both FREE_ZVAL and FREE_ZVAL_REL are using efree_rel
 
yeah, that may be an issue, not sure though
 
FREE_HASHTABLE and FREE_HASHTABLE_REL on the other hand are using efree and efree_rel respectively
 
Well I can see something wrong with the first sentence on his hashing article, for a start. Who said a hash was supposed to be unique?
 
@GordonM: it is, practically, unique
So far, with the wide-spread adoption of sha512, not one single collision has been found
 
@ircmaxell nice
 
1:01 PM
My first exposure to hashing in comp sci was as a way of "bucketing" data, which means that the hash is by definition not unique and isn't meant to be.
 
You crypto people have to work harder :P
 
From a practical standpoint, with a modern hashing algorithm, the chance of a collision is so bloody small that it's practically 0
 
@GordonM It always depends on what the hash is for
 
@GordonM he's talking about cryptographic hashes
 
And that exactly is what I don't like about the article
 
1:01 PM
not general purpose hash functions
 
He should have said cryptographic hashes then ;)
He just said hashes
 
He doesn't make clear what hashes he's talking about and uses some unclear terminology ;)
 
then comment on the post ;-)
 
@ircmaxell no
 
I wasn't talking to you @NikiC :-P
 
1:02 PM
I know that this is a problem on my side, not on his side
ah, okay ^^
 
:-P
off to work
later
 
later
 
hi guys
 
1:25 PM
@ircmaxell _rel will provide the file/line of the PHP script :)
Which is currently execd
 
1:45 PM
whereas non-rel will provide the file/line of C
 
yup
 
cakePHP how do i customize the forms being rendered from it?
 
1:59 PM
@Yohann quit using cakePHP is a good start :]
 
By reading the documentation on customizing form rendering? :)
 
@CarrieKendall then what do i use?
 
Never used cake, but if it's anything like zend forms then it's best off just writing the form markup yourself.
 
user895378
When someone asks a how to do something in a framework, all I hear is ...
 
user895378
> "I learned a framework so I could write web applications without actually knowing how to write web applications."
 
2:05 PM
@Yohann i really would suggest you be knowledgeable about the language under the framework before you CHOOSE a framework. if you do that, then you surely will not choose to learn cakePHP :P
 
well i was trying out symfony too, and it also had the form thing in it...generates the code automatically which i hate....i like writing the markup myself but the action in the controller needs the forms to be rendered by cake inorder to use the data from the form...the frameworks dont seem to care much about frontend i guess, routing is something useful so is mvc design, but the crappy code generation
@GordonM
 
or else you'll be that jackass who is loyal to a crappy framework because it's what you decided to learn PHP in
 
I utterly hate form classes that generate the markup. Doing markup is the designer's job.
 
user895378
@CarrieKendall "what you decided to (framework) PHP in."
 
@rdlowrey haha touche
 
2:07 PM
@CarrieKendall Unfortunately if you do PHP these days then you MUST know Zend Framework. It's all anyone ever asks for in job applications anymore.
 
@GordonM uhmmm, i don't know what interviews you're going on but i know little about zend framework and i survive and then some ;]
 
@CarrieKendall i've already built some test sites with and done ajax and http auth and stuff on dummy sites for practice, but these frameworks are hard to use in co-ordination with frontend js and markup
 
I think managers hear a few devs talking about stuff and hear frameworks getting mentioned, then find zend framework because it tops the list on Google and they follow the following logic chain. (Framework == good) + (Zend == framework) = Zend == good; use (zend);
Carrie: Most PHP jobs on monster.co.uk have a tendency to list Zend as a requirement.
@CarrieKendall
 
<-- doesnt look on monster
 
@GordonM i bet those interviewers also googled "PHP Interview Questions".
 
2:11 PM
if you're really struggling to learn a framework, you really need to reconsider your assumptions about how well you know php. frameworks are not the solution to 'i want to learn more'
 
@Yohann I'd be surprised if they hadn't.
 
@CarrieKendall im not having a hard time following the documentation , just a hard time getting things done my way
 
user895378
@Yohann Sounds like you shouldn't be using a framework, then. Frameworks aren't about autonomy, there about convention over configuration.
 
I find it really frustrating because I perused the Zend source and it just doesn't live up to the promises made in the blurb. They say it's loosely coupled, but it just isn't. Zend_Session has a hard dependency on zend_validate, and zend_validate has hard dependencies on a crapload of other stuff.
 
@Yohann i know that sounds like harsh criticism but it well help you in the long run, not becoming dependent on a framework. and also that defeats the purpose of a framework.. when did you ever hear custom and framework in the same sentence
 
2:15 PM
@rdlowrey @CarrieKendall i guess i should stick with php then
 
sounds like a reasonable approach :P
@rdlowrey well said.
 
user895378
@CarrieKendall Only I wish I could edit out my grammatical error (there !== they're)\
 
@rdlowrey fix it
 
user895378
Can't, missed the three minute window before realizing it :(
 
user895378
I wish chat gave you a little more time for editing.
 
user895378
2:20 PM
The worst is when you start editing then try to send and it yells at you because the edit window has already closed when you try to submit ... ANNOYING
 
well, prepare for a royal flaming, because i am starring it
 
user895378
lol dammit
 
@rdlowrey it's they're* nub
 
user895378
Now everyone will know I have grammatical foot-in-mouth disease. YE GODS!!!!
 
user895378
You'd never know I got a superfluous English degree in school.
 
user895378
2:24 PM
So, a funny thing happened to me ... I decided to visit myspace.com (I know crazy, right? What heck is myspace? Nobody uses that.)
 
user895378
And the music player is actually about 10,000 x better than Pandora.
 
oh wow, you creep. check this out:
 
user895378
From what I can tell I can just listen to music that I like advert-free
 
@rdlowrey You mean, they've been improving their product despite the falloff?
 
user895378
@LeviMorrison It must be Justin Timberlake. He bought a big share of MySpace. Dude's like Midas.
 
2:26 PM
 
@rdlowrey By the way, I haven't had any more hickups.
 
user895378
@LeviMorrison Good :) It's always frightening when someone finds a bug in the first five minutes.
 
@rdlowrey i discovered the myspace player about 3 days ago accidentally and converted from pandora
 
user895378
@CarrieKendall Oh, I guess now would be an appropriate time to tell you that I hacked your box and I've been running an X-session and siphoning off your resources. Which also explains how I knew you were listening to myspace radio.
 
@rdlowrey Those are usually caused by different use-cases.
 
2:28 PM
well, luckily for you i am accidentally brilliant
 
user895378
@CarrieKendall lol
 
user895378
@LeviMorrison I don't know if you've used the feature or not, but the provider instantiations are nested ... so if it loads a class that has dependencies, it auto-instantiates those dependencies and if they in turn have constructor dependencies they'll be automatically instantiated as well (and on down the line) all subject to the definitions you've specified.
 
@rdlowrey Yep, used it :)
<3
 
user895378
Sweet. I'm starting to love it because it just allows you to write 100% dependency-injected code without having to think about anything.
 
It's just magic.
 
user895378
2:32 PM
You just say, "here's my controller and this is what it needs to function" and everything is just handled with basically zero performance cost.
 
I don't even care about the performance cost. I don't have to instantiate things myself. That's worth it.
 
oh, hey @LeviMorrison
 
@NikiC Sup.
 
nothing in particular :)
you?
 
I'm tired. I tried to go to bed at 10:30pm and didn't fall asleep until 3:00am.
Similar things have happened all week.
I've never had trouble sleeping before.
I'm sure next week I'll look at my code and go, "WTF were you doing, Levi? This is awful!"
 
2:38 PM
hehe
 
Luckily things have been straightforward. I haven't had to code anything complex.
By the way, why does this not have more upvotes?
Apr 2 at 21:53, by Carrie Kendall
user image
 
@LeviMorrison because people are intimidated by the awesomeness :3
 
@rdlowrey what is this you're talking about, is it some DI container you've built for your framework? I'll have to take a look if it is. If not, then link please! My DI container just ended up causing more work :(
 
@NikiC What have you been working on lately?
 
user895378
@GordonM Yeah, that's what it is. The Artax-Http submodule uses the Provider to automatically instantiate the controller class (or, in the case of a callable controller like a function or closure, provision typehinted class arguments) after routing.
 
2:45 PM
@GordonM And it sure is nice. Best implementation of a DI pattern I've ever used.
 
@LeviMorrison Nothin in particular
Oh, I already said that above ^^
 
Okay, cool. If it's that good I'll have to look into ripping it o... er, adapting my own DI container to better match your functionaliry.
 
I don't really have any interesting projects right now :(
 
Ah.
No PHP internal investigations lately?
 
Just curious, what's with that use atatement at the top of the class that seems to just reference a load of built-in PHP classes anyway? Are you implementing your own versions in a different namespace?
 
user895378
2:48 PM
@GordonM Feel free. I don't know if it's documented to the point that if you came in cold with no knowledge of how it works you'd instantly know what was happening. I'm more than happy to explain any part of it.
 
@GordonM If you use a public class in a namespace, you have to proceed it with `\`, which is just annoying.
 
user895378
@GordonM Oh, no, that's just because the Provider exists in the Artax\Core namespace and the use statements let me reference those class names without a namespace path
 
It's also clear what you depend on.
 
@rdlowrey Well really I'm just looking for ideas more than anything. The stuff I read that led to my current DI was really interesting, but like I said, it seems to have resulted in a DI system that actually ends up being more work than just instantizing everything yourself :(
@LeviMorrison Oh, okay. Netbeans just puts the \ in for your automatically so it didn't really bother me.
Also, doesn't PHP just use the built in class if it can't find a matching class in the namespace anyway?
 
@GordonM No, it raises an error. Yay!
 
user895378
2:52 PM
@GordonM Hopefully I'll spend some time before I go on vacation next week writing the definitive guide to how the thing works ... feel free to rip any/all of it :)
 
ok, thanks
 
My name is Levi Morrison and I am a web developer. I used to write my PHP code like this:
$pdo = Database::connect();
$model = new Fsl\Model\User($pdo);
$hasher = new Fsl\Account\Password\Hasher;

$controller = new Fsl\Controller\ChangePassword($model, $hasher);
$controller->post(new Fsl\Request);
But now I use Artax and it just happens magically.
(By the way, I know that static is bad. Not my fault. Legacy code. Don't try to tell my you don't have any. You do. All PHP apps are legacy.)
 
@LeviMorrison so Kohana framework is bad :) ? (statics)
 
user895378
lol this chat room is where static code goes to die.
 
@webarto Uhm. I am too tired to have an intelligible about this. Short answer: Yes, Kohana is bad.
 
2:57 PM
@rdlowrey My autoloader was originally static. Now it's not :)
 
we should include that in the room description
 
then PHP is bad
 
user895378
@NikiC Yes! Welcome to PHP chat: where static code goes to die.
 
@webarto You noticed that only now?!
 
Nobody reads it anyways. How many people ask if anyone is here or can help?
 
2:59 PM
I used to write static code, but then opened chat #php
 
@webarto You are correct, my friend.
 
@webarto It was really really bad, but it's getting better. For the most part. Not so sure traits were a great idea though, but that's just me.
 

« first day (538 days earlier)      last day (4413 days later) »