« first day (3685 days earlier)      last day (1487 days later) » 
00:00 - 19:0019:00 - 00:00

19:01
Array
(
[0] => stdClass Object
(
[slug] => home
[name] => home
[children] => Array
(
[0] => stdClass Object
(
[slug] => contact-us
[name] => Contact Us
[children] => Array
(
[0] => stdClass Object
(
[slug] => new
[name] => new
[children] => Array
(
[0] => stdClass Object
(
[slug] => km
[name] => km
)

)

)

)

)

)

)

)
can anyone tell me how to get all children with in array
19:15
Here is a weird thing that happened today, there is a project that they(the company i work for) estimated to deliver to client in 4 months, they already charged the client for that time, its been a month and they are asking the team to get it done in 1 more month, and here's why, the COO told me "they have already spent the money so they can't spend anymore time on it than that, cause then we would go in LOSS", I am baffled by this reasoning, does his statement make sense in anyway?
Are you working for an agency?
Pop quiz: I don't want to call this a "static constructor", because it's not really a constructor, just a wrapper around one.  So... what do I call it instead?

class Foo {
  private function __construct() {}
  public static function  makeFoo($a) { ... }
}
(For the docs, to avoid confusion.)
It is what it is :)
it is commonly called as static constructor (or at least from what i've heard)
A named constructor?
19:29
yeah, named ctor sounds good too
@Crell afair thats called a static factory method
@PeeHaa yes, an outsourcing firm
@makadev That's a bit better, but "factory" tends to scare people who have Java PTSD...
Context: In the example above, "the constructor" refers to the __construct() method. If I call makeFoo() also a constructor, then "the constructor" is ambiguous. But "the for-reals constructor" just sounds dumb. :-)
might as well call it "static constructor method", "method" to hint that it is not the constructor
But __construct is a method.
19:34
@Crell again "named constructor" ?
What's the adjective to refer to __construct then?
the constructor is a constructor or not? if you call it as method it's not a constructor anymore
You can do so, weird as that is. :-)
ye, I know that principle from other languages.. doesn't swift allow calling init as initializer?
IDK standard constructor, or something which relate to when using "new"
19:36
@Derick "A small regression was found in JIT observer hooks used by some extensions. This is unlikely to impact most installations, so we expect to proceed with GA on schedule next week."
@makadev You can call the constructor as a method in PHP tho, it's just a normal function/method
I know what it is, I receive all the emails from that repo :)
@Crell will it be a singleton?
No.
19:38
if not then its a factory
@Girgias You like spam? To each they're own...
last day of the month causes runway cpu usage ・ Date/time related ・ #80376
@Crell Tbh the volume on that repo ain't that big
And I'm subscribed to internals so...
@Girgias ye.. uhm.. isn't that what I said?
I didn't understand it like that but maybe just me :)
19:47
np, my english is pretty bad and mostly self tought, soo.. meh
20:12
@makadev fyi, everyone who says "my English is pretty bad" is wrong about that :-P
/cc @Shafizadeh :-P
Hello
is anyone here?
haha
yes :-)
I'm not here, btw
i have weird problem that i face right now haha regarding htaccess
i put this on htaccess file

RewriteRule ^campaign?$ ilias.php
20:20
as tempting as it is to just link to you nginx manual, I have to drive so I will spare you that pleasure
:-P
hope you get it sorted, I can't help rn sorry
@DaveRandom let's rephrase that: I'm pretty bad expressing myself in (technical) English. :P
when i browse using ip address it working
however when i browser using domain name doesnt work at all
@DaveRandom ouch :(
check the DNS record actually points to your server (ping <name> and make sure it's correct IP), check the ServerName and ServerAlias directives, and if you have made any changes to Apache config restart the server
really actually got to go, sorry
well i can browse normally using domain name
it working
@Fiido93 actually I will say this much: it's almost certainly not an htaccess problem, it's a problem getting your request to the correct vhost
20:23
but when i want to browse based on my condition htaccess
I really have to go sorry, if you still haven't solved it in ~3hrs I will be back :-P
domain.com/campaign

it says The requested URL /campaign was not found on this server.
@DaveRandom aww okie
@Fiido93 did you try RewriteRule ^/campaign?$ ilias.php ?
i think i did that before
lemme check
aww didnt work
now my i trying browse Ip_address/campaign showing The requested URL /campaign was not found on this server.
if i use this
RewriteRule ^campaign?$ ilias.php
its working
is this caused of SSL cloudflare issue ?
i can view the webpage normally if i using domain name
it just i have some condition need to prettier the url
seem rewriterule doesnt working based on my condition needed when view as domain name
20:44
dunno.. typical pretty url rewrite rule is something like RewriteRule ^(.+)$ index.php?url=$1 [QSA,L]
so might be the missing L flag or something else
hmm but when view in ip address its working
this so weird
this are the example result when browse domain name
did you check your server/vhost configs? maybe an AllowOverride none in there that disables htaccess?
21:00
@Fiido93 a notable difference is https, it may be hitting a different vhost because of that
(stopped at services so my colleague can take a piss, you got me for 5 mins max :-P)
:(
hahaha
see if accessing it via http://domain.com/campaign/ssm instead of https://domain.com/campaign/ssm works?
it may be that the vhost is not configured to listen on SSL
@DaveRandom you mean SNI?
oh also that I suppose, but that looks like a modern browser
@makadev I was thinking more a missing Listen 443 directive
21:03
ah ye
RewriteEngine on maybe?
dunno why it works without anyway
@DaveRandom so i need turn off ssl engine
@Fiido93 unlikely since it looks like you have a valid cert, I think probably your vhost is not set up to handle https requests, your request is hitting the default host
you'll have to confirm that by inspecting the access logs
I need to get on the road again, bbiab ~1.5hrs
awww
okay
thanks dave
do i need to add this

Options Indexes FollowSymLinks MultiViews
AllowOverride All
in VirtualHost 0.0.0.0:443
21:17
@Fiido93 apache2 -t -D DUMP_MODULES | grep ssl
Is it enabled?
yes it is
using cloudflare
@DaveRandom Hi dave, if i disable the ssl it will show me SSL handshake failed
@Fiido93 ye, that directory rule is only used for your *:80 config
afaik you need it in both vhosts or in the root level
Chris told me to tell you that you should just change the original host to 443 and then redirect 80 to https
omg its working
I don't know what that means, he gave me his laptop while he is driving
21:30
@makadev yes correct
thanks for hint
@DaveRandom hahaha stay safe
thanks @makadev for the help as well @dave
@DaveRandom
he said you're welcome
@DaveRandom bahaha
Chris is invested in this conversation
Hopefully he is focusing on the road since he said it's raining
He told me to tell you to stop distracting him
21:47
lol
cmb
cmb
22:43
@Crell maybe "static creation method"?
22:58
nothing is happening
Why is the highlighter in VS Code ignoring this constant: stackoverflow.com/a/64884591/1839439 Is it because it is not documented in PHP manual?
@cmb Hm. I like that better than the other options so far.
...which constant?
MYSQLI_OPT_READ_TIMEOUT
I mean idk how vs defines shit like that but being that it's ms and vs, there's probably an XML document you can edit somewhere, maybe packed in a cab
a bit of googling around "vs code syntax highlight define symbol" and variants on those keywords (prob not all at once) will prob yield results
23:03
Interesting, but that would work only for me. I am interested in a general case. Are these constants documented in PHP somewhere. Where does VS get the XML list from?
no idea, this isn't the right place for that question tbh, the vs code forums are :-P
I would imagine it has already been asked though
I think it's coming from doc-en\reference\mysqli\constants.xml
That constant is not defined there.
I wonder if we were to document it would VS Code pick it up automatically
if you put it in the right place maybe, however it's probably not as simple as that, the file ou referenced is only a fragment of an XML document that is generated during the doc build process, so it's unlikely you could use that file in it's raw state
it's most likely stored somewhere in the app data in a much more compact form
but because it's MS, it probably is in an XML document somewhere
but it might be packed inside something else
also if it's missing from the manual, please add it to the manual :-)
(which, logically, would also eventually fix the problem)
yeah, I'll put it on my long to do list
23:29
Chris Wright committed a changed to DOC-CVS, there's a name I haven't seen in awhile
Argh, I'm going to shut up and watch TV shows the rest of the night. My brain is dead and protesting
...yep. I have a to-do list like any other human, yet I found the time to edit the manual
also I either I don't understand svn.php.net or it is broken because I definitely just edited 2 files and it thinks I edited one
or possibly svn is broken or the doc editor is broken maybe I guess, I don't really know where docs source of truth lives any more, did it ever get moved to git?
cmb
cmb
@DaveRandom I just updated, and got only 1 modified file; PhDOE may be broken. SSOT is still svn, although there's a Git bridge for EN and doc-base.
does "git bridge" mean "writable git repo", and if so will my PHP SSH keys have write access to it by virtue of that?
or is it PR-driven?
(either way is fine by me, ftr)
if it's not obvious by now, I 100% do not comprehend svn, it makes no sense to me at all :-P
and I have tried really hard a few times, I've concluded it just doesn't make sense
cmb
cmb
23:47
@DaveRandom yes, mostly PR driven. I think you can even commit to Git, but I usually don't do that (I think that messes up history).
ah kk cool I'll just PR shit
although I will try and fix via 2nd doc editor commit this time since it's like half a commit atm
@cmb it seems to be this specific file, tried it 3 times now (including original commit)
cmb
cmb
which file?
^ that file :-P and there's what happens
cmb
cmb
that appears to try to change props only
yeh
it's weird
I've tried the exact same patch to the file 3 times and the same thing has happened every time
patch is just copypasta the first option and change "connection" to "command execution result" and remove the ref to 5.3.1 because that seems unnecessary in 2020
00:00 - 19:0019:00 - 00:00

« first day (3685 days earlier)      last day (1487 days later) »