« first day (1629 days earlier)      last day (3319 days later) » 

3:00 PM
@nikita2206 If I was a good programmer I'd use the Reflection::newStanceWithoutCtor - but as I'm a hacking hacker who hacks
 
just realized 3v4l has multiple cursors ^^ if you [ctrl] + click
nevermind, it's just HHVM -.-
 
@Danack yeah that's what I thought one could do, but that looks pretty bad
 
Jan 21 at 16:46, by Danack
For the record - to me constructors are just a special case of static methods. PHP might actually be a better language if it didn't have them at all and instead of doing new Foo() you always had to explicitly call a static method Foo::new().
 
add_action('wp_enqueue_scripts', 'update_buyer_post_meta_sms_notify');
?>
<script type="text/javascript"> Cannot modify header information - headers already sent by
 
user895378
@Danack How is that any different from new with __construct()?
 
3:05 PM
. o (I was wondering the same thing)
 
@rdlowrey it's explicit and has one less reserved word ;)
 
Can any buddy tell me why am getting this shit warning...!
 
user895378
How is it any more explicit than new Foo
 
@rdlowrey If the child class doesn't specify a __construct it falls through to the parent one automatically. i.e. it is the only case of 'static' inheritance in the language.
aka
 
user895378
This is all a non-issue to me, of course, because inheritance is rarely ever used in any code I write.
 
3:06 PM
Also, I need that t-shirt.
 
Same
and more glitter
 
More glitter in the hair!
 
new X ===> T_NEW T_STRING
X::new() ====> T_STRING NEPUKODOTAYM_WATHEV T_STRING...

It's moar explicit because new is just a method you execute yourself instead of magically executing __construct()
 
I actually used shipyourenemiesglitter.com/#contact the other day
 
user895378
@marcio I dunno ... I just don't see that as much of an improvement.
 
3:08 PM
@rdlowrey __construct() might seem explicit to some because we are very very used to it, but it's not explicit at all.
 
@Danack But there's still value in the fact that the language gives coders an "obvious" way to construct objects, rather than teaching them many possible TIMTOWTDI approaches. If there's a problem with the magic static inheritance of __construct, then fix that rather than tossing out __construct altogether.
 
user895378
I can agree that non-magic is preferable to magic ... but I don't see it as much of an impediment in this case.
 
Sorry to be all Python about it, but I still think obvious and one right way to do it are good things.
 
user895378
@marcio but that's not possible because then you couldn't have StdClass magic :)
 
user895378
You're forcing the use of a superfluous new() method for property structs that don't need it.
 
user895378
3:09 PM
class MyStruct { public $foo; public $bar; }
 
user895378
^ not possible if I have to explicitly call MyStruct::new()
 
@kojiro I don't think there is a fix. And saying 'just fix that' doesn't help solve anything.
 
@rdlowrey That is a whole other problem :P
 
@rdlowrey languages that use 'Something.new()' usually have a class hierarchy where everybody extends an ancestor obj, so everybody inherits 'Obj.new()' by default
 
@rdlowrey struct MyStruct { public $foo; public $bar; } - boom, done.
 
3:11 PM
ty
 
user895378
you wouldn't even need the public if we had a struct keyword, right?
 
why do we want structs on PHP?
 
user895378
I think it's less cognitive overhead to have objects cover both cases in any case.
 
user895378
@marcio I don't see any need for them TBH.
 
On a different topic, @rdlowrey do you know anything about the default directory reader in PHP streams library, enough to answer the question "Does the standard internal directory give any promise about reading entries in the file system in a certain order?"
 
3:12 PM
ah, ok. Maybe enum, but struct... pff.
 
struct is just a subset of class
 
Or anyone, but I don't think anyone else is stupid clever enough to touch php streams.
 
user895378
@Danack I don't know anything about it, sorry :/ I avoid PHP's filesystem things like the plague.
 
Yes, the plague. A good analogy.
 
user895378
I hate how php streams all act like filesystem things.
 
3:13 PM
@rdlowrey Actually, the plague was eradicated by the introduction of streams
 
Context for those who want to stare through the seventh portal.
 
@marcio I would say we don't need structs as they are, but we need some way to typecheck an incoming array $options and structs could be kinda answer here. Only in case if I could define their layout right in the argument declaration of a function
 
@nikita2206 this would only be possible if you impede to pass struct fields by ref
 
What I mean is: public function doStuff(Related $object, [bool "do_it_fast" = true, bool "do_it_smooth" = true, etc] $options)
That could solve people's problems with positional arguments (at least it would be useful in those cases where named args make more sense)
 
@nikita2206 that's not a bad idea to have some form of user land named args :)
yup
 
3:18 PM
Guys, opinions? :P
 
user895378
I've softened my stance on named args over the last few days.
 
@nikita2206 in this case the type check would happen only when the typed array is created, right?
@rdlowrey what's your position?
 
user895378
I still generally think they're a bad idea and that if you need them your functions are doing too much.
 
does anyone know how you combine the information from the Domain Models in DTO's in order to make an output for a REST
 
user895378
But I don't think I'd actively oppose them in RFC form as long as the proposal was sane.
 
3:20 PM
I think named args has no chance to fly for internal functions :( (no matter what we propose)
 
@marcio not sure if this should be array at all... arrays, for example, allow to put a reference inside it. That already makes it impossible to be sure that this variable will not change its value and type at some point
 
@nikita2206 yeah, I wasn't thinking of it as array really (typed array was just a sub optimal way to define it) exactly because of refs... '{bool "do_it_fast" : true }' ?
 
@rdlowrey What are you doing with the InjectorBuilder? Currently everything is manual for me, are you implementing an automatic process?
If you did create a standard / interface, people could share their injection definitions with their libraries.
.rdlowrey file ;-)
 
@nikita2206 {bool "do_it_fast" : true, ... } looks like better syntax
 
user895378
@Jimbo The plan was to make it possible to basically dump the injector's contents to a file and reload it all very quickly in web SAPI environments where you have to redo all the logic on each request.
 
3:24 PM
Or to something like APC / memcache, right
 
user895378
Yeah something like that.
 
user895378
Then you could just do eval(...) on it
 
user895378
And avoid all the function calls to load everything up on each request.
 
@marcio probably yeah, I used [] just because it's already in wild use. Maybe even some kind of struct {typename T_STRING ':' default_expression, ...} $arg
 
@rdlowrey Tbh I thought you were already doing that sort of caching, but I just realised - it only caches per-request doesn't it.
If you did though, it'd greatly speed things up. Just would require a manual flush every so often. So the option would be awesome.
 
user895378
3:25 PM
@Jimbo right. TBH it's pretty low on my priority list because I rarely use the web SAPI and have no need for it :)
 
user895378
It shouldn't be that difficult to do though.
 
user895378
The InjectorBuilder is currently absent from the 1.0.0-dev branch IIRC
 
user895378
Should just be a matter of adding something like static Injector::load(string $string): Injector and Injector::dump(): string
 
user895378
And we can kill the InjectorBuilder class altogether
 
I think this was one of my favorite April Fools jokes: isocpp.org/blog/2015/04/the-c-languages-merge
 
3:30 PM
@LeviMorrison the first line gives it, they should have built some suspense
 
> Several other languages, including Snobol, JavaScript, and Rust, inquired about membership but did not at this time meet the requirement of having a capital C in their names.
 
CRust
 
<?php
$facts = json_decode(file_get_contents("http://crockfordfacts.org/.json"));
echo $facts[array_rand($facts)];
Say what you want about PHP, it does make this really simple
The equivalent in Python requires three imports and is longer
The equivalent in JS requires two imports and is also longer
 
At least JS version is async right?
 
It can be, but the async one is longer
Also, only async for the web request. JSON decoding can't be async in node ^^
 
3:37 PM
but in PHP if you need to do a more complex request you will need to require a HTTP client because PHP api sucks. The stdlib of the languages you cited are far much better.
 
@Andrea why not? you just need a module for that ^^
 
@Danack So you're in favor of using TypeException for the zpp failures in ctors? If yes, I'm going to implement that
 
@NikiC Just let me check I understand. You mean that when in strict mode, and a user passes the wrong type to one of the ctor functions, the TypeException will take priority over the exception handling routing setup by the ctor function?
 
@Danack That's what currently happens
 
Otherwise when not in strict mode, the IntlException (or whatever) will still be thrown?
 
3:41 PM
yes, that's the current behavior
 
So, what are you going to change?
 
To always throw TypeException and not randomly change exceptions between modes
 
@nikita2206 will you go on with that idea? I think it deserves some exploration now that we have STH.
 
IntlException will only be thrown for actual intl related errors in the ctor
 
user895378
@Andrea It could be async ... libuv can dispatch any processing task to a worker thread. So there shouldn't be any limitation other than node just doesn't currently offer that json decoding with optional async.
 
user895378
3:43 PM
Of course, that's a CPU-bound operation and unless you're decoding really large/complex json there would be no good reason to offload that work to another thread.
 
@marcio I don't know... Maybe. I'm waiting for first beta to make some rfcs for 7.1 first (you know about callable and some other stuff). If you want you can take over it :)
 
user895378
Seems kind of silly to bother supporting it as an async operation.
 
@NikiC I think the current behaviour is the most correct. I could definitely be wrong - but it reflects what would be happening in userland code.
let me do an example.
 
Hmm… if a parameter is optional, do I need to explicitly document it, or will phpDocumentor inspect the code and indicate it appropriately? Manual unclear, but makes me think maybe I don't have to be redundant. manual.phpdoc.org/HTMLSmartyConverter/HandS/phpDocumentor/…
 
@nikita2206 I have a medium list of found bugs I had no time to triage yet, after that I can start new RFCs and this one (and variations) seems worth it. I'll give it a shot.
 
@NikiC I think the key thing is that more specific Exception message are more likely to be correctly handled within a chunk of code, and that the less specific an exception is, the higher up the function chain it is likely to have to travel before being caught and handled.
In general it is better to throw the most specific Exception you can, as it allows the finest grain of handling. Strict mode does overrule this, enabling it means that the user is telling PHP "I want you to give a generic TypeException wherever I have given the wrong type".
That means that the code will no longer be able to handle those errors in a local block, but instead the error will propagate up to a higher level.
 
@Danack However, why would anyone ever want to catch a zpp failure?
If I catch a PDOException on the PDO constructor, what I want to catch is a mysql server that has gone away
Not ME passing totally wrong params to the ctor
 
user895378
@NikiC I want to catch it in my server so that if the user is stupid and has bad code I can send a 500 response instead of tearing down the entire server worker process and firing up a new one.
 
The zpp exception and the domain specific exception have totally different causes and purposes
 
....I misread it. So it's just ZPP errors?
 
3:56 PM
@rdlowrey Exactly!
@Danack Yes, this is about invalid types or wrong number of args being passed
Anything else isn't affected by strict mode in any case
 
Yeah....I definitely misread it - I can't see a problem then.
 
@rdlowrey Sorted, tnx. I've just pushed a new tag, you may want to update the dep in amphp/dns (I don't have time atm).
 
Project A is a bare local git repo, contains a composer.json in the first commit on master. Project B is trying to use Project A as a dependency. I've added to Project B's composer.json a repositories element, as vcs with the local file:// URL. It is borking hard.
> proc_open(): CreateProcess failed, error code - 267
^^ Any clues?
 
@DanLugg don't use file:// - just use a directory path.
 
@Danack Doesn't work either though
 
4:00 PM
/documents/github/projecta
 
    "repositories": [
        {
            "type": "git",
            "url": "file://c:/path/to/myproject.git"
        }
    ],
    "require": {
        "php": ">=5.6",
        "myvendor/myproject": "dev-master"
    }
I've swapped file:// for just /c/path/...
and /c:/path/...
 
    {
        "type": "vcs",
        "url": "/documents/github/projecta"
    },
 
Oh, I had it set as VCS before too, every permutation...
 
 
@NikiC I forgot to ping you about it the other day. Isn't a good idea to check the namespace segments here too? github.com/php/php-src/commit/…
 
4:02 PM
0
A: Composer - using a local repository

MaxIn addition to Danack's solution: Changing the path from /d/ to d:/ worked for me. Like this: "repositories": [ { "type": "vcs", "url" : "d:/workspaces/util" } ],

 
@marcio why?
 
It may be a permissions issue if that doesn't work?
 
@NikiC mostly because we allow namespace aliases and if you use a reserved class name in the middle of a namespace you can no longer alias a part of it in some cases.
@NikiC And (maybe not less importantly) reserving these names homogeneously across namespaces and class names won't create even more trouble in case it becomes possible to have semi-reserved names for classes too but that is pure speculation on my part.
 
@Danack I think it's a permission issue then... still getting 267
Fack, even as admin its failing
 
@DanLugg NB: valid file URIs for Windows paths are file:///c:/... (note the triple slash)
PHP handles it, not everything will
and yes, Windows is ridiculous
 
4:11 PM
@DaveRandom I thought that was for relative? Like file:///../../something
Either way, composer doesn't like anything
 
@DanLugg No, look at the structure of what you are writing, file: <-- scheme // <-- authority delimiter / <-- root of path (authority was empty, assumed to be .) c:/... <-- file system path, relative to root. If you omit the 3rd slash it's technically a relative path, but since windows has the special drive: construct the "system root" doesn't really mean anything, so everything is assumed to be relative unless it starts with a drive letter.
3 mins ago, by DaveRandom
and yes, Windows is ridiculous
 
23 secs ago, by DaveRandom
3 mins ago, by DaveRandom
and yes, Windows is ridiculous
I think the real take-away here though, is:
6 mins ago, by Dan Lugg
Either way, composer doesn't like anything
 
@Danack Duh, no longer sure I want to do this. Just found out how much of the shared procedural + OO API bullshit we have around
 
So Microsoft's gag was [DOS for Phones](http://youtu.be/irJQDGw8Ptk) But towards the end (starting at 1:35) he says "People said it couldn't be done and questioned why it should be done. And they told us we shouldn't do it. But, you know what, we've done it anyway."
I think he just unintentionally summed up Internet Explorer.
 
4:28 PM
"repositories": [
  {
    "type": "vcs",
    "url": "D:/PhpStorm Projects/LibDNS"
  }
],
"require":{
  "daverandom/libdns": "dev-master"
},
composer update --prefer-source
@DanLugg ^ #worksforme
Point it at the root of the repo, not the .git directory
 
Anonymous
@DaveRandom still using centos?
 
I will never drink again....
 
@RonniSkansing E_BLATANT_LIE
@sam_io yes, 6.5 mostly
 
Been throwing up all dayz...
 
user895378
@DaveRandom No problem and thanks. No composer update should be needed on my end since the dependency is "daverandom/libdns": "~1.0" and composer will automatically pull in 1.0.1 with that.
 
4:33 PM
No composer.lock?
 
user895378
Bump that noise.
 
Oh, I suppose you wouldn't with amphp/dns
 
user895378
@RonniSkansing bummer man :/
 
I got as served =] same with the gf.. lol... just ordered a shitload of food, hope it stays down [=
 
@rdlowrey Even though that's a perfectly normal turn of phrase, I read that as a homophobic slur :-S
 
user895378
4:34 PM
hehe
 
user895378
I think it has probably been 7 or 8 years since I drank so much I threw up the next day ...
 
@RonniSkansing Recommend a couple of cold beers, hair of the dog really takes the edge off
 
user895378
^^ that
 
Even though it's the last thing you want, it really is the best thing for you
 
[= okay, I´ll try that
but really... alot of drinking costs more than alchohol itself
it just completed ripped this day out of my schedule
 
4:36 PM
@rdlowrey That probably says more about your iron stomach than your drinking habits, at least I'm pretty sure that's what my experience is
 
user895378
I have a pretty good handle on what I can and can't drink these days if I want to avoid Armageddon the following day ... 32 years of wisdom and experience ;)
 
user895378
No shots after midnight. No tequila after midnight.
 
Yeh, those hangovers involving Bruce Willis and Ben Affleck are never good
s/after midnight//
 
user895378
Liv Tyler helps a bit, but not enough to make up for Bruce Willies sacrificing himself to blow up that asteroid.
 
user895378
I once stopped hanging out with a girl because she said Armageddon was her favorite movie of all time. Once you lose all intellectual respect for someone there's no going back.
 
4:39 PM
I watched that quite recently when I couldn't find the remote, I'd forgotten just how bad it is
Also I noticed that Looper is currently available for free on demand, might have to watch it just to confirm that it's as bad as I'm expecting it to be
 
user895378
I can't remember if I saw that one.
 
It was relatively recent, last year or two I think
Currently listening to bbc.co.uk/podcasts/series/timc though, which is taking up all my spare time
 
user895378
oh sweet, thanks for that link
 
Recommended by me, certainly. Not very good for trying to work at the same time though, requires concentration - good for having on while you do housework though
 
@DaveRandom I'm pointing at the bare; does it need a working tree?
I can't imagine it does...
Nah, shit be failing; must be something else.
 
4:54 PM
@DanLugg It needs to be pointed to a directory with a valid composer.json in it, that's all
It will also need to have commits/tree that matches the version you specified
If you're having problems, make sure there's at least one commit to master and specify dev-master, then work backwards from there
 
good morning peps
 
@Orangepill OH YEAAAAH!!!
 
@DaveRandom That I've done. No working tree because it's a bare repo. I dunno duder.
Wait, there's no valid composer.json because there's no working tree. Should I clone it and target that?
 
Wait... what? What do you mean by "working tree" in this context?
 
@Ocramius i'm bickering with named constructors already
A::make("one parameter")
BextendsA::make("two parameters", "and this isn't optional"); // can't do this B::make must be compatible with A::make
BextendsA::make2("two parameters", "and this isn't optional"); // so this
BextendsA::make("one parameter"); // this constructor shouldn't be used
cc @Danack
 
5:01 PM
@worf you could make B::make throw in the event that the second parameter isn't supplied..
 
so, as opposed to the actual constructor (which can change signature at any time) a named constructor must be always valid for all children classes
that may be fine in some cases but not always
 
@Worf What do you mean by "named constructor"? You mean static factory?
 
A named ctor is some sort of a static factory, yes.
 
@DaveRandom As in, the repo I'm targeting is bare, so there's no working tree.
 
5:04 PM
I can clone it, and try that then.
 
we already argued about named constructor - static factory :D
 
@Worf Don't understand why you would want to do that
 
@DaveRandom that was just the beginning of the argument
 
@DanLugg Bare meaning "no files" or "no commits" or both?
3 hours ago, by Worf
i'm extending a class that has a public constructor, and i want to make it hidden in favor of two static function constructors
 
$blameOcramius++
 
5:06 PM
^ there's no reason to "hide" the constructor, just add the methods. But also, don't do that, just use the ctor...
There's a reason that ctors are exempt from LSP checks, and this is pretty much it
 
@DaveRandom Bare = no files
I have a commit on master
 
i agree
in fact i already experienced several problems with the static constructor design
 
@DanLugg If there are no files, how can there be a commit? In any case, I imagine that the HEAD commit would need to contain a composer.json in order for composer to be able to make any sense of it, since the child deps are variable depending on the version you check out
(HEAD for dev-master, relevant commit for other version constraints)
 
@DaveRandom ^^ That's what I mean.
Its a bare repo, not a working one. It has no working tree of files, just the binary data. Which consists of a single commit with some shit, including a composer.json.
So I should be able to target it, but its borked. Which, at this point, I'm believing is because something else is borked.
 
@Worf The fundamental issue here is that PHP does not have method overloading. You can debate whether it should or not until the cows come home, but it won't change the situation so I suggest you just use the real ctor to avoid this problem. Static factories don't gain you anything and they potentially cost you a lot.
 
5:11 PM
@Worf you could also avoid extending, heh
 
@DanLugg Can you pastebin your full composer.json files?
 
@Ocramius ?
 
@Worf why would you extend: is there no interface for that stuff?
 
you mean i shouldn't extend A and use instead traits to reuse code?
 
no, you shouldn't reuse code
or use composition
 
5:14 PM
@WebInDev @devWasik <scr<>ipt>alert("XSS much?");</scr<>ipt>
So... the OP favourited my tweet instead of removing dangerous code...
 
@Ocramius not understanding. if i have a bunch of method whose implementation is valid for several classes i try to reuse them
 
Then compose it?
 
If you can't compose the logic, then I can guess that there is some LSP violation?
 
compose how? wrapper?
 
kind-of, yes
 
@DanLugg "psr-r"?
 
generic composition, ya know?
 
FOR. FUCKS. SAKE.
 
Also "url": "c:/dev/projects/git/myvendor/projecta.git" -> "url": "c:/dev/projects/git/myvendor/projecta" unless the directory is actually called projecta.git @DanLugg
 
5:18 PM
@Machavity oh god
 
@Ocramius The DB sanitize makes my eyes bleed
 
i hate wrapping @Ocramius :( i wish php had chat.stackoverflow.com/transcript/message/22225031#22225031
 
@DaveRandom It is, convention of bare repos as I understand.
 
oic
 
@Worf wrapping is actually how you're supposed to do it.
 
5:19 PM
Well, the psr-r thing has to be a good shout
 
regardless of the implementation, that's the right concept
 
It's probably worth just running composer install on the dependency repo before you try just to validate the composer.json @DanLugg
 
or traits then, i don't see any other alternative?
 
just stop worrying about code reuse
seriously
it's bullshit.
Code first, abstract/compose later (if needed)
 
i know. changing something and worrying to break other classes that use the same thing is terrible
 
5:21 PM
Oct 9 '14 at 17:24, by NikiC
Official statement: PHP does not make any backwards compatibility guarantees for code written by @Ocramius.
^ worth noting
 
Hey, @tereško has his seal of disapproval. I want my "seal of not giving a damn"
 
user895378
The official @Ocramius Seal of Zero Fucks Given.
6
 
:+1:
 
/cc @salathe ^
 
user4180960
hi
 
5:23 PM
I like how I became a black hole of voodoo practices
Yes, use your anger
 
must... resist... @PeeHaa's mother jokes...
 
@Ocramius thanks - will give static constructors another chance :D
 
@DaveRandom hah
 
5:38 PM
@NikiC Yes. You can see why I had zero objections for Dmitry to be the last person to touch it. ;-)
@Worf Yes, that would appear to be quite annoying. But just calling them different and semantically meaningful names is probably a good idea anyway.
 
lol dat timing
morning all
 
Mornin' @PeeHaa
 
i'm doing as ocramius suggested, using traits or wrapping @Danack read: a pita considering it's just for a single method :P
 
/me goes drinking
laterz
 
enjoy
 
5:50 PM
later @DaveRandom
 
@NikiC with the new HashTables is relatively efficient indexing by order (nth item not [n] item) possible?
 
@Andrea If the array is never deleted from, yes
if the data array has holes in it, you'll have to scan
 
6:06 PM
@Tyrael Consider yourself poked.
/missus
 
bug fixes are going quick, many frameworks test suites that weren't even running before are not crashing
 
yo
 
@FlorianMargaine ping
 
@Ocramius that post has some outdated assertions though. they are mockable. they can be overridden with the conflict resolution, albeit a bit hacky.
 
I just threw up a bit in my mouth while doing a DB schema review...
@StefanoTorresi not worth the effort
plus mocking them does not make them usable anyway
 
6:17 PM
imho they have tradeoffs like everything, i'm certainly not amongs the ones that said "don't use abstract classes anymore, trait all the things"
e.g. they're incredibly handy when composing entities or VOs
 
Traits are kinda ok for some things, yeah, I use them for the getIdentifier method on aggregates, for example
but the only decent use-case I had so far is a hack
 
yeah i used that sometimes :D
but eventually i felt uncomfortable with it :p
btw i use the following rule of thumb: whenever a trait needs a dependency, it's a sign that it's involving something more important than it should. they should be little snippets doing boring stuff and nothing more.
but i wouldn't completely dismiss them, they have value.
 
user895378
There is a small handful of times where traits are genuinely useful. Otherwise they should be avoided IMO.
 
6:32 PM
Yeah, point is that things aren't bad … they just may be misused…
 
@bwoebi agreed 100%
 
So.....variadic functions. With non-variadic functions you can just add another parameter when you want to hack on an option of how it should behave. How can you do that with a variadic function?
e.g. function foo($bar) {} can be changed to function foo($bar, $flag = DEFAULT_FLAGS) {}
 
You can't
 
@Danack Given that the variadic has to be at the end, you don't.
 
Well, variadics suck then.
 
6:53 PM
build better apis then
 
would a good synonym for "class factory" be "compound class constructor"..?
 
@bsapaka not really.....that's more confusing than explaining.
 
@danack well then would a a good explanation be that a class factory instantiates a class which uses instances of multiple other classes?
trying to grasp the idea here
 
@bsapaka I am probably not the best person to ask, but something like "a factory encapsulates the details of how another class is created, by hiding all of the details, and providing a simple interface to the outside world".
That applies to both factory classes, as well as just functions which act as factories to create 'stuff'.
 
7:57 PM
Would anyone mind looking here: pastie.org/10070467 I am trying to get my __autoload function working. but there must be something wrong because it is not working.
 
@Zerp You need to register it - php.net/manual/en/function.spl-autoload-register.php also, you probably want to just return false if the class isn't available, rather than throwing an exception. That way your autoloader could work alongside other autoloaders.
 
@Danack Great. Thanks. I thought __autoload was a special name (like __construct) that would be recognized automatically. I guess not though.
working now!
 
8:18 PM
@Danack hm?
 
8:30 PM
> If you find something(like this) which was pushed after tagging the RC, feel free to poke the RM(s) for getting included.
/poke, poke, poke
 
I see
ah, ok, I already took a mental note
 
but reminders are good
 
8:54 PM
Anyone know how I can run a cron job every day at midnight?
 
@LiamHardy I think @google does.
For example there seem to lots of results for: google.co.uk/…
 
@Danack Cocky aren't you? any quick links...
 
I am cocky, that doesn't mean I'm wrong.
 
Will this work?
exec("30 1 * * * /assets/script19425.php");
I can't be bothered waiting till 1:30 too see..
 

« first day (1629 days earlier)      last day (3319 days later) »