« first day (2842 days earlier)      last day (2106 days later) » 

12:12 AM
Segfault with H2 server push – #76675
 
12:45 AM
@LeviMorrison da,m. good luck with that.
 
 
3 hours later…
3:38 AM
Night all
 
 
2 hours later…
5:20 AM
posted on July 28, 2018

New Cyanide and Happiness Comic

 
 
2 hours later…
7:44 AM
posted on July 27, 2018

I seem to have misplaced my sleep. If you see where I left it, let me know. I’d really like to have it back. Oh, and happy Dr. Lobster Day.

 
hi all! I am reading about RESTful API and I still hearing about Put, Delete, Patch... but it still meanless...you can still use a post method that delete a resource, and you still have to programming server code about how that resource would be deleted/patched, right? so...is this just a fancy mode of making requests?
 
8:00 AM
hypnopedia sleep learning.
 
8:19 AM
@BoteaFlorin yes. it's all a load of made up stuff. If no-one else is going to be using your api, just don't worry about the design and just it working.
 
8:36 AM
morning
@LeviMorrison 😐 jerks
@LeviMorrison have you signed any sort of contract that says it's non-refundable?
 
8:59 AM
@Danack 'no one else' - do you mean clients, or developpers?
 
@BoteaFlorin anyone outside of the codebase where it's being written. e.g. if you have a frontend that is part of the same repo, then don't worry about designing it. If you have a frontend that is part of a separate repo (and so can have a different deployment lifecycle) then you would probably need to do some design.
 
9:13 AM
@Danack so, you build restful when you want to left space to others to plug their apps to yours, right? like facebook have Facebook lite
 
morning
 
@BoteaFlorin not so much want, more are forced to. Getting an api design right is really expensive in terms of the number of hours of developer time it requires.
 
curious, @Paul, have you started writing the Paul Crovella Regex Engine yet?
 
PCRE? lol
Clever
 
I think it was Machavity :)
 
9:33 AM
oh, improving regex is one of those things we should list as a thing for php 8...
 
how far is php 8?
 
opinions differ....
 
heh, I see
 
9:46 AM
Apparently Zend the company would like no 7.4 and the next version to be 8. There hasn't really been a discussion of what should be in 8 at all.
 
9:58 AM
@Tiffany No, despite their insistence. It says that they may cancel the contract at any time for any reason, but does not put forth any further terms such as whether a refund would or would not be given.
In other places it says if we violate the contract that we wouldn't get a refund - we did not, and it was them that cancelled the contract.
 
yeah, take em to small claims
fuck that shit
 
 
1 hour later…
bob
11:27 AM
How can you reset all Local Address to default ?
 
bob
11:41 AM
I can't seem to connect to MYSQL via Sequel Pro, all the auth information is correct. gives this error MySQL said: Can't connect to MySQL server on '127.0.0.1' (4) I've checked MYSQL is running and that the port is being listened to. thanks for any help.
 
12:06 PM
Have you connected to mysql using the account you are, under that IP address before?
You might also need to flush permissions or something, I forget the exact command.
 
bob
@Tiffany yes, I've connect to mysql before, with this address, just different project
I'm using homestead, but if i type in homestead it says command not found. but php artisan serve works
 
12:22 PM
I'm going by personal experience. At work, my web server is on the same network as my work computer so I can access it without ssh. When I set up mysql workbench to work with a MySQL database, the MySQL account didn't have access to the database from the IP address (work computer) that I was connecting from... took some juggling to get it working
 
bob
@Tiffany I want to dig my brain out with a blunt spoon. It's rather confusing.
 
 
1 hour later…
Wes
1:49 PM
\o
 
OPENSSL_KEYTYPE_EC (and others) not supported by openssl_public_encrypt() – #76676
 
Morni gs
 
2:10 PM
Hi all, getting this error:
Fatal error: Class 'ODBC' not found in C:\...\odbc_connect.php on line 102

From the line:
return $ODBconnection = new ODBC("DRIVER=$driver; SERVER=$odbc_serverip; PORT=$odbc_port; DATABASE=$odbc_dbname;", $odbc_username, $odbc_password);
I've used this line for PDO, where I defined the line as

return $ODBconnection = new PDO("DRIVER=$driver; SERVER=$odbc_serverip; PORT=$odbc_port; DATABASE=$odbc_dbname;", $odbc_username, $odbc_password);

And it works. Just wondering what the equivalent for ODBC would be and whether there is a specific class name for it. I tried COM, but apparently that's for ADOdb.
 
2:29 PM
@Ekin no. I did start adding pcre's partial match support to php though... should probably finish that at some point.
 
@PeeHaa I don't even know where to begin to look regarding something like this.
 
@Tucker is the ODBC driver installed?
make sure that the driver's installed, and that your php.ini file has the path to it
it's possible it's commented out
 
@Tiffany Yes. I connected just fine, but I'm trying to define a function so I can just use a single world call. I've done it for PDO and it works.
function connectODBC(){
try {
Oh, I'm using a Custom Driver for InterSystems ODBC
@Tiffany I did this. Works.
 
2:45 PM
working now?
 
I have two separate connections. 1 is PDO and the other is ODBC.
The PDO works flawlessly.
ODBC only works if I define each instance. This is a nuisance if I have to program each instance per page (which I have been doing). So I tried to create a function to call.
 
it's probably not global, you'll need a wrapper for it
PDO has global state
7
A: Saving my PDO connection as a global variable

Yang Is there any fundamental flaws in using this approach? The very first thing you have to understand, is that $pdo is a part of storage logic. That means, it should be only used inside classes that do abstract data access, be it a SQL table or a collection. Let's look at your code, function ...

 
[ExtensionList]
extension=php_mysql.dll
extension=php_mysqli.dll
extension=php_mbstring.dll
extension=php_gd2.dll
extension=php_gettext.dll
extension=php_curl.dll
extension=php_exif.dll
extension=php_xmlrpc.dll
extension=php_openssl.dll
extension=php_soap.dll
extension=php_pdo_mysql.dll
extension=php_pdo_sqlite.dll
extension=php_imap.dll
extension=php_tidy.dll
extension=php_pdo.dll
extension=php_odbc.dll
extension=php_pdo_odbc.dll

These are enabled in my php.ini
 
that's not the point
if odbc works like mysqli, then you have to pass the connection between files
it's better to wrap it in a class, and inject the connection where you need it
using dependency injection
 
Okay. For my PDO, I have the following:

function connectPDO(){
try {
/* Login Credentials */
$DBname ="XXX";
$DBusername ="XXX";
$DBpassword ="XXXX";

/* Connection */
return $DBconnection = new PDO('mysql:host=localhost;dbname='.$DBname.';charset=utf8',
$DBusername,
$DBpassword);
} catch (PDOException $e) {
header("Location: error500.html");
die("error page redirect failed: DBconnection");
}
} ?>

This works.

I repeated the same (basically) but replaced PDO with ODBC and got a Fatal Error (cannot find the class).
 
2:58 PM
@Tucker You could have started with reading the introduction, installation, and skimming through the functions mentioned in the link PeeHaa sent you?
as you might notice, there is no object oriented documented way of creating a odbc connection.
which is hinted at by the error telling you that there is no class named ODBC :)
 
morns
 
Wes
3:19 PM
i don't know why in the f..... i keep hitting the page file... despite i have 8+gb of free memory
 
3:31 PM
Morning Everyone
@LeviMorrison Are they filing bankruptcy?
 
4:23 PM
Anyone knows how to create a file name: "\?$*’KwaMe’*$?\" (literally), where running:
ls -lRa waM | cat -e
will spit back the file name intact
Mine gives me:
"\?$*M-bM-^@M-^YKwaMeM-bM-^@M-^Y*$?\"$
 
 
1 hour later…
5:35 PM
@PeeHaa About your ping from a few days ago, am still on vacation, so have no context and have no idea what's up.
 
@StatikStasis No.
 
Hehhe k no worries @MadaraUchiha
You in US?
 
I am
Los Angeles
My flight back home is on Tuesday
 
Nice
How long you been there?
 
Since the 5th
Almost a month in total
Cool country, weird toilets
 
5:46 PM
:-)
 
!!dad
 
I'm not addicated to brake fluid I can stop whenever I want
 
@MadaraUchiha you enjoying your vacation?
 
Very much, lots of stuff to see/do
 
Don't you love it when you edit a file and try testing it, nothing happens, spend anywhere from a couple of minutes to a couple of hours pulling your hair out wondering wtf is wrong... only to realize you're editing the wrong fucking file you're trying to test
Luckily or unluckily, it's happened enough for me that I figured it out in a couple of minutes
 
5:57 PM
@MadaraUchiha cool :)
 
@MadaraUchiha what's wrong with our toilets?
and what part of LA?
 
@Tiffany Encino
 
@Tiffany lol
 
@Tiffany Normal peoples' toilets aren't halfway full with water, and flushing doesn't violently suck the whole thing down to oblivion.
Also your showers, why is the water current strength and the temperature are controlled by the same axis?
 
@MadaraUchiha commercial toilets are like that, but residential ones aren't
unless you buy something fancy
 
5:59 PM
@Tiffany Every residential toilet I've seen so far has that
In both hotels and homes
@Tiffany You around here?
 
I used to
 
Oooh, neat
 
I lived in El Segundo for a whlie
southeast-ish of where you are
like five minutes from LAX
okay... approximately nine minutes... pfffft
crazy thing for me when I lived in LA was distance traveled was measured in time, not distance
 
Wes
\o
 
o/
 
6:07 PM
\o
 
@Tiffany That's true for most places, but people don't realize it
Distance means nothing if you can get there in 5 minutes
But yeah, we've been to Las Vegas, and after one hour of driving away from Las Vegas, you aren't closer to anywhere else, you're just an hour away from Las Vegas
 
yeah, I figure it's typical of any major city, it's just weird when I've learned to drive in a town with almost no traffic
...but I lived in CA before that too, but I was a kid
 
Yeah traffic here is pretty... amazing
So many cars, and so many of them with just one passenger...
 
and the car pool lane!
what do you think of our oh-so-lovely (processed, sugary, fatty) food?
 
Wes
6:40 PM
i updated phpstorm on computer number 1 and guess what... settings are all fucked up
 
have a backup?
 
Wes
yes but i don't want to downgrade to the old phpstorm
and already tried loading them in new phpstorm.. no change... styles are all fucked up
i should probably start with a blank one given the mess that this is
gods
 
7:27 PM
When you place php on an HTML page, is the php also revealed if a person clicks view source?
 
7:39 PM
no
but there are ways of finding out if PHP is being used, if they're clever
sitepoint.com/how-to-expose-phps-private-parts for example, but that's an old article
 
8:27 PM
@DMop what do you mean by "place"? Writing php code in a .html file?
 
8:49 PM
ping @bwoebi @NikiC @JoeWatkins or anyone else who can translate C stuff into something mere mortals can understand: as far as I can work out zend_error() has similar semantics to invoking a PHP function which calls exit(), that is it doesn't require a return; following a call to it because control flow will never return to the caller, but looking at the implementation I can't figure out how that is achieved. Halp?
I think I figured out the NORETURN stuff, that seems to be a mechanism for explicitly declaring those semantics to suppress compiler warnings that would result from missing return in the caller. Right?
 
Wes
9:01 PM
@LeviMorrison if i went through php-src to fix indentation and code style, will i be wasting my time?
 
@FélixGagnon-Grenier I occasionally wonder if it would be possible to create something like wamp/xampp, but without mutilating the underlying components to the extent that there's no practical path for gradually learning how to configure them properly. The question phrasing betrays a lack of understanding of HTTP request flow concepts, but that is really complicated and it's not reasonable to expect beginners to learn all that stuff when they are just trying to grasp basic programming...
 
@DaveRandom "because control flow will never return to the caller" - that doesn't appear to be true.....most uses of it appear to have returns straight after.
 
@Danack indeed, most
but not all
 
Wes
for example someone in this room said (maybe it was you) that it's not necessary anymore to have stuff like #ifdef at column 0 and we should really indent it as a regular if...
 
I am trying to ascertain whether the missing ones should be added, of the existing ones are superfluous legacy cruft
 
9:04 PM
@Wes there's many better things to do, that wouldn't be annoying. 'Fixing' white space on old projects where multiple branches are maintained is very low value and can make merging a lot harder.
@DaveRandom looks like the missing ones are indeed missing.
 
Wes
ftr i'm asking if this kind of pr is welcome, not if i should spend my time otherwise :P
 
@Danack ...then why the ZEND_NORETURN...
@Wes I don't see why not, e.g. github.com/php/php-src/pull/3409 was accepted (via an external merge process that github doesn't interpret as a merge, which is why it appears as just closed)
 
@DaveRandom maybe check to see if that stuff was around before exceptions became a thing in the language? If that's the case, then maybe the code did used to just die inside the zend_error functions.
 
@DaveRandom just because it was accepted doesn't mean it didn't annoy the shit outta someone
 
Correcting typos > standardising whitespace.
 
9:10 PM
that too
 
@PaulCrovella submitting a PR to php-src and finding it has a bunch of whitespace changes because of editor auto-fixes is more annoying, imho
 
Wes
@Danack well, it's not that it would be a complete change of style.... just a few lines would be actually changed
 
ThW
it might be less annoying if you fix the formatting on all active branches :-)
 
Wes
many files use both tabs and spaces at the same time... what do you do with those?
 
If whitespace really annoys someone, the way to fix it is to have something that checks it on changed lines in commits, rather than make just whitespace changes.
 
9:17 PM
@DaveRandom yes, that's right
zend_error_noreturn is used with error types that perform a bailout
 
@Wes It's welcome, but needs to be coordinated.
 
The bailout itself isn't in zend_error though, but the zend_error_cb callback
 
Otherwise you end up breaking everybody's work-in-progress.
 
@NikiC right, but it seems to terminate like any other void function and return control flow to the caller?
 
I'm sure Dmitry would hate the diffs on his JIT optimization branch...
 
9:18 PM
@NikiC hh
ffs
 
@DaveRandom Nope, there is a longjmp performed at some point
 
Wes
@LeviMorrison makes sense
 
inside zend_bailout
@Wes Speaking from myself, formatting changes not welcome
Fixing typos is fine
 
This is why generally people who do reformat code do it on code they already touch, since it would (probably) cause diff errors anyway.
 
@NikiC I was failing to account for the fact that a user-defined error handler might be able to prevent the bailout, and also that clarifies why there are some returns following calls and some without, any of these don't need one because they are guaranteed noreturns /cc @Danack
 
9:23 PM
Lol decided to test out siteground.com for a wordpress site, within 30 minutes I asked for a refund and they wouldn't give it. It was riddled with bugs and wouldn't let me upload database nor SSH into the servers. So I asked for a refund and they're like nope. Did a chargeback, and they came at me with threats and saying I'll never get a loan again and that I owe them even more money now because I did file a chargeback.
 
tnx very much
 
This keep in mind, happened after 4 trouble tickets were issued and they couldn't get it resolved until 7 days after chargeback. I gave a 2 day grace for chargeback and option of refund and closing my account.
poor poor customer support :p
 
@Darius you should probably just use digital ocean...
 
I do, customer just wanted siteground
because their competitor was using it
I like vultr too
 
@FélixGagnon-Grenier yes, that's what I mean
Thanks @Tiffany!
 
9:40 PM
@DMop then, yes, it would be shown.
 
Wes
also comments in php-src would really help
 
yes. that's definitely worth adding.
 
10:34 PM
@Wes comments? who uses those?
 
Wes
hipsters don't use them. people that will tell you "LET THE CODE SPEAK FOR ITSELF"
by the way if someone tells you that, kick them in the teeth
 
self-documented code
 
Wes
it's bs
 
god, I'll spend half an hour agonizing over a variable name, think it's good... but still add a comment just in case
but then I come back a year later with a better name
 
Heh, I have approximately that conversation with a colleague every other week.
He generally incarnates the hipster who despises any and every comment
 
10:39 PM
what about todos?
 
are they really comments?
 
they are in my code :S
// TODO: convert this into an array and do XYZ
 
Oh, that was a joke, they're indeed written, inside the file, as a comment
 
I'm slow
 
I meant that, do we really consider them as comments, as far as the "self-documenting code" conversation goes
 
10:41 PM
I'd figure if he hated comments, his hate would be indiscriminate
"visual debt"
 
Wes
self documenting code is a thing, but if you have a big chunk of code, like an algo, chances are you need to leave a comment here and there
 
11:06 PM
@FélixGagnon-Grenier how come when I text my code using xampp and then click view source I don't see any of the php code?
 
@DMop The .html file can be processed by php anyway, possibly through a templating system. Or maybe apache have some strange settings and I forgot. Or maybe the file is not really .html. Really, there are plenty of reasons. A static .html file, served "normally" without changing the content, will contain whatever is in the file, including php code.
 
@FélixGagnon-Grenier that makes sense. Now that I look at it, it is a .php file actually so it looks like only the html parts are being show
That should be correct, right?
 
Great. Thanks!
 

« first day (2842 days earlier)      last day (2106 days later) »