« first day (4273 days earlier)      last day (666 days later) » 

7:56 AM
morns
 
8:28 AM
hayo
 
 
2 hours later…
10:32 AM
This idea just came to my mind:
public function getName(): !null
the function should not return null
 
11:08 AM
Then don't include it in the return type definition
 
cmb
11:36 AM
@Derick I agree, although DNF would allow not operators. cc @Girgias
 
I don't think that's in DNF
 
Buenos días, me amigos!
@JRL Ever tried sending him an email?
 
cmb
11:53 AM
@Derick The RFC links to en.wikipedia.org/wiki/Disjunctive_normal_form, and that says it is.
And actually, it has to be (would otherwise be incomplete).
 
I don't think that's in the DNF RFC, is what I meant.
 
cmb
Indeed it is not (yet), but in theory it could be supported.
 
12:32 PM
Morgens all
 
12:43 PM
o/
 
buongiorno/
 
1:21 PM
@cmb FYI github.com/nih-at/libzip/releases/tag/v1.9.1 but if you want it, notice that archive is broken (1 commit missing), but the tag is OK.
github.com/nih-at/libzip/commit/… is important, as version is tested in php-src/ext/zip ...
 
cmb
@RemiCollet Ah, thanks! Not sure when I'll come around to that, though.
 
it brings support for fseek in stream, but only for uncompressed file, so probably not a big feature ;)
 
cmb
1:35 PM
yeah, uncompressed zip archives are (hopefully) uncommon
 
cmb
2:26 PM
@RemiCollet seems to have been resolved with 1.9.2. :)
 
if ((ce->ce_flags & (ZEND_ACC_IMPLICIT_ABSTRACT_CLASS|ZEND_ACC_INTERFACE|ZEND_ACC_TRAIT|ZEND_ACC_EXPLICIT_ABSTRACT_CLASS)) == ZEND_ACC_IMPLICIT_ABSTRACT_CLASS)
I wish we had comments above lines like this.
 
cmb
A self-descibing function/macro might even be better.
 
3:12 PM
I have the first step for default methods for interfaces implemented!
interface Interface1
{
    function method1(): void { echo __METHOD__, "\n"; }
}

interface Interface2
{
    function method1(): void { echo __METHOD__, "\n"; }
}

class Class2
    // There should be a conflict for method1.
    implements Interface1, Interface2
{
}

$object2 = new Class2();

$object2->method1();
The output is Interface1::method1. As you can see, I haven't implemented conflict detection and resolution.
 
I am searching a way to store IPv4 and IPv6 addresses in a MySql table.....I have found this solution which uses a PHP function: stackoverflow.com/questions/37353628/… what do you think?
 
@Mwthreex falsy logic is bad and should almost always be avoided. What's stopping you from defining a positive statement about what that function will return?
@DimitrisPapageorgiou I think the way I learned was trying stuff out and seeing if it worked or not. And maybe write some tests for it if you're worried.
 
@Danack certainly this is one way....
 
4:06 PM
silly Linux question, is is possible to have a line in .bashrc that echoes into a restricted file? echo '2' | sudo tee ~/fix_fn_keys is what I want to run when my machine restarts, but the terminal will give me a "permission denied" error
not sure how to google this because the keywords I'm using gives results thinking that I want to echo into .bashrc, but I don't
maybe I need to add it to root's bashrc
 
4:24 PM
@Tiffany Put that whole thing into a script that is only writable for root and set up passwordless sudo to execute that specific script.
your_user ALL=(root) NOPASSWD: /usr/local/bin/fix_fn_keys
Something like that in your sudoers config should do the trick. Then create the command in question, make sure it's secure and call sudo /usr/local/bin/fix_fn_keys in your bashrc
 
 
5 hours later…
9:12 PM
Oof, I was really hoping we had fixed OuterIterator::getInnerIterator() to always return an Iterator (not nullable) but it seems there is more work to do.
 
9:38 PM
@TimWolla cheers
 

« first day (4273 days earlier)      last day (666 days later) »