« first day (3698 days earlier)      last day (1243 days later) » 
01:00 - 18:0018:00 - 00:00

6:02 PM
@Tiffany I am trying to connect with LDAPS but it says it can't connect. Did you ahve to do anything to enable TLS for AD?
 
@user3942918 or just sending email in general.
 
@user3942918 You should know me by now :P
 
@Girgias ha, do they have that a bad reputation?
 
@bwoebi Probably one of the worst Phone/Internet provider
 
@JukEboX yes, it's been awhile since I've done it, I had to do a lot of googling. It requires a certificate and a configuration file that points to the certificate. The server I had to do it for was Windows/IIS and I can't remember if the same instructions apply to Linux
I would just start googling for "configuring ldaps php" or something along those lines
I should note, that was for ldaps specifically, cause a switch from ldap (unencrypted) to ldaps was done long before the switch from TLS 1.0 to 1.2
 
6:31 PM
@JukEboX what is the ldap server you're trying to connect to? (sorry missed some of what you may have posted earlier)
 
1@Tiffany best part is I am using it for Windows. Have th elink?
@Stephen my DC01
ldap_connect ($server, $user, $password) ...etc
 
sorry what I meant is, what type of ldap server is it
AD, OpenLDAP, Apache DS, 389DS, etc
on a different note. "VAF" is a term used for electrical wiring that's double insulated. I'm sick of removing the outer layer of insulation by hand when wiring stuff, so I tried looking online for a tool to strip the insulation. The problem is, my browser keeps auto-correcting "vaf" to "van"... And thus "van stripper" is not at all what I was looking for.
 
Can't always get what you want but you might get what you need
 
@JukEboX do you have a question with the details posted on SO, or did you just ask here? I could be asking a bunch of questions you've already written about
 
6:40 PM
ok, so it sounds like you need to use TLS, as @Tiffany said. the question is whether you need to use LDAPS or StartTLS
also it depends if your ldap server has a certificate from a CA the php server trusts.
is the php running on a windows server in the same domain as the AD server?
 
Yes
XAMPP is running on a member server of the domain
 
ok
that should help
ok so first off you could try just changing the ldap_connect call to use ldaps://hostname:636 rather than ldap://hostname
 
@JukEboX I don't have the link anymore as it was on my computer at my last job. After work, I can try digging for it. It was a text-only webpage that had step-by-step instructions.
 
you might not need the explicit port number, but ldaps isn't really a standard thing, 636 is just an informal standard port number for it
@JukEboX are you trying this stuff as I type, or should I just continue with the other things to try?
im just gonna type an answer to the question.
 
@Stephen i am working on 4 things as once as usual. I have been trying things all morning. I have tried LDAPS://XX.XX.XX with and without the port number but it always says "Can't Connect"
 
Wes
6:46 PM
 
onlything that gives me something different is when I use jsut the normal DC01.XXXX.XXX
 
ok, so it wants starttls.
give me a few minutes I'll post an answer to your question you can try whenever you have time
 
6:58 PM
answer's posted. I'm heading to bed but if you have further issues either leave a comment or @ me here.
 
@Stephen thanks dude. I am working on these last couple thing sthen heading home. I will get back to you.
 
@StatikStasis just fyi, I received the push notification for this ping at the exact moment I put my phone in the cradle in the van, still swearing loudly after I had banged my head really hard on the door frame while getting in. Supreme trolling work, sir.
 
7:28 PM
so i have phd generating me output, including a php-web folder, however the files include a file shared-manual.inc that doesn't seem to exist
hm, the chunked-xhtml looks more reasonable, but generates empty titles in the nav
i'll study the README harder
maybe instead of naming the folder "en" I should name it "doc-en" like suggested, then it works
 
@cmb Which exact SSL-related information were you talking about?
 
7:52 PM
I encountered a method call that's like $this->somePropertyAccessor()[$arrayKey] which I understand how it works, but how common is code like that? Is it a code smell?
It just seems so bizarre to call a method like that just to access a member array
There's a static property which I feel like may be better off not being static, but I'm unsure
 
@Tiffany A static prop should usually smell worse than the array access
 
"There's a static property" - that sounds like a different issues from the slightly rare syntax.
The code you posted is 'fine', but I personally hate it. I prefer having each line do one thing, even if that means I need to create temporary variables, as I find it easier to read and/or debug.
 
8:12 PM
So good enough reason to ask the dev who wrote it "why?"
 
....not really. the bit you posted is fine, it would only be a personal preference to break it into lines.
 
cmb
you need a web-php clone, and have to replace manual/en with a symlink to output/php-web
 
but the static stuff that we can't see might be an issue.
 
cmb
@Dharman there is some info in the changelog of php.net/pdo_mysql
 
8:20 PM
@cmb i used --format xhtml now, that did the trick
 
cmb
yep, works well, unless you need the menu or such :)
 
Strange out of memory error when running with JIT ・ Unknown/Other Function ・ #80447
 
8:54 PM
@cmb That's only the changelog. I though you meant the information which I removed from mysqlnd and then I put back again
The PDO_MySQL changelog doesn't contain any information other than when it was added to PHP. Which, given that it was added all in PHP 5 is now irrelevant
 
cmb
9:15 PM
@Dharman yes, I see that now. But that was more a general note: whenever you're removing some old changelog entries, make sure that still relevant info in the changelog entries is already somewhere else in the manual.
For instance, a changelog might note that a parameter now supports stream protocols and not only files, but the respective parameter may still be documented to only support files.
 
9:26 PM
programming php 8 is ... funny.
 
9:36 PM
Yeah, the ungraceful handling of math/bitwise ops with non-numeric strings is severly annoying
 
9:50 PM
is there a tool that reliable formats php docbook pages according to style? my vim does weird things using the indention instructions
i see myself deleting and adding gazillions of individual spaces :D
 
10:12 PM
maybe some setting on the XML parser on insignificant whitespace?
@bwoebi not my matters, but thanks for sharing. I find it funny to type-hint mixed actually. weird.
 
@DaveRandom LOL! Glorious!!
 
@DaveRandom I found it that day: xdebug.default_enable=0 and then the stack traces go away. don't ask for the year I answered that SO question.... .
 
@IluTov @IluTov My intent was to just avoid implicit primitive equivalents entirely. There may be an argument for them, but my gut feeling is that most cases where you would want them, it's because you don't actually care and a pure-unit enum will suit you better anyway.
 
God the IMAP extension makes my brain hurt
 
@IluTov @IluTov Spiffy! Something I can help with? I know I can write tests, but not sure what I can help with beyond that. :-)
 
10:22 PM
@Girgias at least there are some IMAP bindings ... .
 
@hakre I'm working ON the extension
And it's utterly stupid
 
@Girgias isn't it a C binding?
 
As I said I'm working ON the C code
Which again, is utterly stupid
 
Why does it need to even still exist?
 
One reason is to test the mail() function on Win
But there is a bug ticket for it don't recall the entry tho
 
10:25 PM
hey, don't drop imap.
 
@Girgias Seems like a legit reason :D
 
is mail() using lib-imap?
I thought it is smpt.
 
@hakre Honestly, as the person who's touched that code base the most in recent times, DONT USE IT
No mail() does not use imap
But the Windows test uses the imap extension to test that SMTP works or IDK what
 
@Girgias yes libimap has no good standing I hear that years ago. but still imap is great.
@Girgias ah. dependencies. on windows also called dependency hell.
 
We depend on an unmaintained lib which hasn't been maintained for over 10 year
Just use a PHP implementation instead of the extension
Like seriously
 
10:28 PM
@hakre On Windows also called: Linux ;)
 
I'm not saying don't use IMAP, I'm saying don't use the PHP extension for it
 
@Girgias at least it somehow still works :). but yes, this is only for the brave ones.
@Girgias because it's using a C-lib that has not been updated for a decade or two.
 
I know that
You don't need to tell me that, finding docs for it is a PITA
ah great this function has no tests fml
 
cmb
there are somewhat useful docs in the libc-client sources
 
keep up the upstream in any case. I patched a shell lib library that was not updated for quite some time. but it was actually working at the end of the day. and upstream took care within 24hs. didn't expect that, nevertheless all fine.
 
10:31 PM
@cmb Did you just tell @Girgias to go and screw himself? :P
 
@cmb I can't seem to find them, I found github.com/uw-imap/imap/blob/master/src/c-client/mail.c but some of the functions which are used in ext/imap are not present there
 
(not doing it, but) I found a somewhat interesting project that is generating various bindings for C libs automatically in GNU utilities.
not to re-invent the wheel all day long.
 
cmb
@Girgias I mean the docs directory, particularly github.com/winlibs/imap/blob/master/docs/internal.txt
 
Gonna bookmark that
 
cmb
@hakre well, the damage^Wbindings are already done; it's more about fixing bugs and moving along :)
 
10:37 PM
@cmb reminds me I still have to do a release ^^
 
I wonder if there is a way I can pass a stream to php.net/manual/en/function.imap-savebody.php ... would save me from needing to compare two temp files and cleanup
We do have a stream which one can just read right? Or am I imagining PHP capabilities
 
@Girgias in PHP userland stream there is the memory stream. Helpful? If it goes over X mem will create TMP file (and I guess it cleans that up, too).
 
Possibly
 
Otherwise in PHP userland I also have a "DestructibleString" that for example can represent a path and if __destruct() is called removes the file / directory (recursively). also handy especially in testing.
Especially w/ directories you can't have PHP remove the "file" (those UNIX days are over) when runtime exits. (for /tmp)
and if you run into stream handling segfaults, nikic has been a very helpful person patching PHP within hours. at least from my perspective.
 
Weirdly shaped dildo you have there
 
"nice" I found another regression bug I introduced into IMAP :))))))))
 
@Crell I'm with you. We could make that a bit more clear in the RFC (although there is a sentence that hints at it).
@Crell I think it's fine for now, I'm still writing tests as I add more stuff. Probably when it's less fragile ^^
 
@Girgias woops
 
I'm amazed it's only 2, because one WTF comment I made and didn't act on prevented me from introducing a bunch of other ones
 
11:21 PM
it was still useful to me in like 2014-2015, but again, I was on PHP 5.3
@cmb should I do this via a global config or is there another fancy way of doing it?
I figured it out, I think
 
@IluTov I'll clarify that there are no auto-primitives.
Hm. Should enums/cases support traits?
 
11:50 PM
mornings / evenings
 
01:00 - 18:0018:00 - 00:00

« first day (3698 days earlier)      last day (1243 days later) »