« first day (3209 days earlier)      last day (1963 days later) » 

00:11
@Ekin make sure to drink water before going to bed
00:34
Yeah, this phar file doesn't look right:
> Warning: count(): Parameter must be an array or an object that implements Countable in ...
^ that's in the phar file lol
 
2 hours later…
03:01
Hello guys, need your advice regarding this question:
1
Q: PHP Ignoring background colour on table column based on time master condition

HiDayurie DaveI have table with below code: <table class="tPlan" id="tData"> <?php $sequence = array(); $no = 1; $qTotalHours = oci_parse($c1, " SELECT ROUND(SUM(ROUND('" . $quantity . "' / UPH * 60) / 60)) AS TOTAL_HOURS FROM WA_PSP_TBL_COMPATIBLE_LINE WHERE MODELID_FK = '" . $fg . "...

 
1 hour later…
04:15
Hello,
I need to convert pdf to thumbnail or image.
My Xampp version is 3.2.2
architecture - x86
thread safety - enabled
compiler version - VC11
According to all these in php i installed ghostscript and imagemagick.
ImageMagick-7.0.4-1-Q16-x86-dll.exe
ImageMagick-6.9.3-7-vc11-x86.zip
php_imagick-3.4.3rc1-5.6-ts-vc11-x86.zip
gs927w64.exe
C:\xampp\htdocs\test\pdf_to_thumbnail\index.php
Beside index.php file there is one pdf file named as php-tutorial-pdf.pdf
So i want the first page of pdf to convert to thumbnail or image.
04:31
Hi guys
gd morn'ng
04:54
Good morning...
05:20
Good morning
05:59
posted on July 30, 2019

06:18
php-yaml extension not compiled – #78353
I have been using Lumen 5.7 & using beanstalk as worker processor. The problem is for the last 2 weeks I am getting 'Class not found' Exception. By putting a JobProcessing event listener I just came to know that it's not possible by PHP to json_decode which returns null. Can anyone help me with what happens?
 
1 hour later…
Wes
Wes
07:24
\o
07:39
o/
@kelunik thanks for a review. I made the changes. The thing with rotation test is I've used two nameservers from different continents and they resolve into different addresses. I've noticed AppVeyor failing on x64 platform, dunno how to resolve that issue.
08:00
phalanx a body of heavily armed infantry in ancient Greece formed in close deep ranks and files; broadly : a body of troops in close array
08:58
Good morning! Looking for an answer how to resolve a value for IS_CONST type node for opline->op1.constant (take it from compiler_globals). But this value is too big to be valid offset for op_array literals. Am I missing something?? Node types are valid, but all znode_op values are strange ((
@lisachenko At which point in time are you accessing the value?
There are two different representations for compile-time and runtime
@NikiC during runtime
During runtime using the RT_CONSTANT macro should work
I can not use macros )) Only raw structures
The offset if opline-relative
you add it to the address of the opline
09:01
@NikiC So, it's raw memory offset and not an index, right?
cmb
cmb
@lisachenko, you could wrap the macro call in a function, though.
@lisachenko yes
You basically do (zval*)((char*)opline+offset)
@NikiC Ah, that's the key! Thank you!
@lisachenko out of interest, why can't you use macros?
@Danack FFI probably
09:04
no details yet, just work in progress
but Dmitry told me that it will be atomic bomb )
Every time when I look at the PHP source code and macroses, I wonder why PHP so macros addicted?? ) It is ok to use them for cross-platform structures and defines, but I'm curious why PHP uses them everywhere?
10:02
How do I log a call I make to external API
$transfer = $apiTransfer->payment->fetch($respObj->id)->transfers(array('transfers' => [ ['account' => $dbres[0]['account_id'], 'amount' => $validationObj['maintenanceCharges'], 'currency' => 'INR']]));
This is how I call it. I want to check the request
!!debugger
put a breakpoint on the code that is actually doing the request?
Is phpstorm free?
you can a free version if you're a student or work on an open source project. You can also keep downloading new versions of their trial version, which they allow as it acts as a beta test for them.
Also, your time is hopefully more valuable than the price.
10:12
Ok thanks
10:40
@NikiC Why is it that we have so many macros which could actually be static inline functions?
@bwoebi I'm not sure ... I would say faster debug builds, but probably just habit
@NikiC I just had been thinking ... if we had less macros and more static inline functions it could be reused for ffi ...
(e.g. with Anthonys FFIMe)
@bwoebi this idea is in progress ) already discussed with Nikita
PoC is almost ready
oh well, just discuss it here in the room :-P
@bwoebi Static inline functions aren't usable via FFI anyway
10:43
@bwoebi Generally, it works, so we will have runkit in userland
@NikiC yes, but you can parse that code directly and generate functions in the target language generating ffi code
@bwoebi uh...
this what I'm doing right now
unlike macros which are not self-contained
:-D
@bwoebi yeah, macroses are bad ((
This library will be a new engine for my Go! AOP framework, working directly on byte-code level and Zend hooks
@NikiC is it possible to change FFI a little bit to specify namespace or class map? So each struct could be mapped to PHP class?
This will simplify FFI usage in PHP libraries
11:01
At the beginning of my index.php i have a sql that get all information about the current page, which is get from the variable $_GET, example:
$slug = $_GET['page'];
$sql = $conn->prepare("SELECT * FROM table WHERE slug = ?");
$sql->bindParam(1, $slug, \PDO::PARAM_STR);
$sql->execute();

if(!($result = $sql->fetch(\PDO::FETCH_ASSOC)))die(header('location: error.html'));
After this code above i have this: pastebin.com/raw/DgD8UR4x This code was made by a friend some time ago, i think that this sanitize function is useless, the variable $slug don't need to be sanitized because i have the sql above, so all possible values for the variable $slug is in my database, if not, it will be redirected to error.html, and instead of this sanitize function i coud just write this code bellow:
$loadPage = dirname(__DIR__).$slug.'.php';
right? I'm not sure about it because the guy who made this code have some reputation here on SO, and i'm kinda new to PHP.
@lisachenko that sounds highly incompatible with jit ...
@JoeWatkins opcache_invalidate should trigger invalidation/initialization of JIT cache? at that point of time opcode array will be changed...
the file will be reparsed though right ? the original source will be loaded again ...
I will look for the place where to put my callback
I think there's no place to interrupt between compile to opcode and compile to jit, if you want to inject anything it will have to be in the ast, I think ...
11:08
At least, I can unload existing class and register another one with same name. It works
that depends when you register the new class
if you register it after the original class has been referenced in code, it will fault
ACC_LINKED?
the original zend_class_entry* might exist in the rt cache of another function, and you can't change it, because it might exist in shm ...
I've checked runkit source code, it checks all runtime caches and clean them all
you want to do that in production ?
11:11
Of course, yes ))
I like to implement impossible things in raw PHP ))
Previously I've found a trick to include PHP source via php://filter stream filters to apply my own hooks. Now I have a FFI and a little bit knowledge in C, it should be enough to hack PHP global structures in memory ))
0.o
😳
No surprise, Ruby is at the top of that list.
cmb
cmb
11:33
@JoeWatkins, 7.1.31 today?
@cmb yes, I'm just a little busy at the moment
cmb
cmb
fine; no need to hurry :)
12:28
morning dorks
morning shitpot
12:56
can anyone help me with this cutting list problem
0
Q: How to place the cutlist part in right position for 2D cutlist

Sridhar GThe panel is 2400 * 1200 and I will get cutlist inputs. There maybe better way to do this but I am using this simple concept to do this. Initially I placed larger part in cutlist based on area. Then I check for similar length or width in available parts. Then I decided to place it on right side...

@SridharG I read that 3 times before I realized that you're not trying to place 2D cultists.
Morngins
13:26
@MadaraUchiha that's what you get for reading so many many animes
@Gordon Actually haven't seen/read a cultist anime/manga in quite a while.
Exactly. Withdrawal symptoms.
morns
14:16
sup
really tempted to edit the cultists in here.
14:30
have a nice day everyone. catch ya on the flippity
 
1 hour later…
15:33
Literal int64 min is treated as a float – #78354
15:46
Hey room! Please look at the author and act accordingly (hint nudge wink point at a certain button): reddit.com/r/PHP/comments/cjtju2/…
3
Thanks! <3
flagged. np.
:D <3
... did Zeev just say he's going to "pull rank"?
He can't stop anyone from ignoring members of internals. Has he gone insane?
/cc @bwoebi @NikiC @JoeWatkins
I'm not going to reply; I've said all I cared to about that. At least for now.
16:06
Hey, I have a server which on I use things like include('inc/bootstrap.php'), in that bootstrap i use ../inc/another.php (for example), but on one server it searches another.php in the correct directory and on another it searches wrongly relatively to the first file which included the bootstrap
@LeviMorrison just ignore him, this is how he makes things look controversial ... let him shout into a void, his vote is worth no more than anyone else's and there is no such thing as pulling rank ...
this sort of language makes it clear why he behaves the way he does, he really thinks he has the role of benevolent dictator to fallback on if he can't get his way, I've not seen him actually say he'd try to use that kind of power before, but it doesn't and can't exist whatever, let him try ...
16:22
@brzuchal \o/
16:38
How can I force PHP to use relative path to the current file (file2.php) and not file I included the file from (file1.php) without using DIR?
How can I force PHP to use relative path to the current file (file2.php) and not file I included the file from (file1.php) without using DIR?
@beberlei Here's our test case for the nesting issue we hit with zend_execute_ex: github.com/DataDog/dd-trace-php/blob/master/tests/ext/…. You don't have any issues with something like that?
@Martin. Your requirement of not using __DIR__ is weird
And possibly wrong
ThW
ThW
@Martin. best option is to use __DIR__ but you can change the working directory using chdir(). Most of the time I would not suggest doing that.
My only use case so far is the router script for the built-in webserver
17:00
@LeviMorrison technically, he said "we're going to pull rank.", which is even more discombobulating.
Wes
Wes
@Danack nice verb
Thanks, I like to word well.
Wes
Wes
it just has to derive from the italian word scombussolato
meaning the same thing
scombussolato = being without a compass (bussola = compass), like losing one's way
> Another theory relates to the Italian word scombussolato, which can be loosely translated as craziness, disturbance. Despite the similarities between the words, there is no evidence that the Italian expression led to the English word.
@PeeHaa I use it in all of my projects but I downloaded a software which uses only these relative paths and you have to include the software in your own wrapper
What software?
17:10
there's a editor/example.php file which if I edit it works correctly, but if I want to have it accessible via index.php and not editor/example.php, it fails. I would have to replace all the includes in order to use it.
Adminer Editor
Do you have a link to the offending file?
The problem is I feel it's about config or something. It worked before without any problems, which is even more weird. I
> it fails
Why can't you just replace this line to the correct include? github.com/vrana/adminer/blob/v4.7.2/editor/example.php#L52
you might want to specify exactly what it is doing wrong, in your own head if nothing else.
17:15
There is no reason for you to change anything else afaics
The include is correct here
I linked you the software I use, not my code.
So what is the actual problem than?
so if I access like mydomain.com/admin/editor/example.php
it works without problems
If I copy example.php to admin/index.php and change the include to editor/index.php I get this
Warning: include(../include/coverage.inc.php): failed to open stream: No such file or directory in /data/web/virtuals/225695/virtual/www/adminer/include/bootstrap.inc.php on line 4

Warning: include(../include/coverage.inc.php): failed to open stream: No such file or directory in /data/web/virtuals/225695/virtual/www/adminer/include/bootstrap.inc.php on line 4

Warning: include(): Failed opening '../include/coverage.inc.php' for inclusion (include_path='.:/data/web/virtuals/225695/virtual:/data/web/virtuals/225695/virtual/www/admin/editor') in /data/web/virtuals/225695/virtual/www/adminer/i
You have two options as I see it
1) stop using broken software
I also tried adding

set_include_path( get_include_path() . PATH_SEPARATOR . __DIR__."/editor");

before that include but it hasn't changed anything at all
17:18
2) set the cwd
!!chdir
Ow it got kicked :(
It actually works
Like I know I can change it
My question was more about how the hell could have it worked before
You probably called it from a different directory
BTW may I suggest to use an actual sql client instead @Martin.? :)
So Isn't there any way to change this like in config or something?
I am quite surprised it doesn't work with include path tho
sql client such as .. ?
Mysql workbench
Re the config I have no idea what config it takes
@LeviMorrison 100.000k function depth is extremely deep, even our magento or wordpress customers with huge installations don't hit it. now that you say it, i might add a depth counter though to track this as a metric for customers
17:25
I didn't mean the editor config but php config
include path probably works just fine if you set it up correctly
adminer editor is like easy admin panel with quite a lot usefull stuff to edit, search and add anything you like
But I am not a big fan of global settings like that
Although chdir is also pretty much global
@Martin. So is workbench only sane imo :)
or I MAYBE can use modrewrite to treat index.php as editor/example.php
idk
17:36
Morning
night
@beberlei We hit it with a customer, apparently. With opcode handlers we don't have an issue; we do with zend_execute and co.
18:30
@JoeWatkins I think he needed a few words more to hear. But I won't engage any further I think.
@PeeHaa when you mention chdir, I'm reminded on how working dirs are reset before register_shutdown (apache at least) ...
@bwoebi wut
That;s some weirdly specific behavior
@PeeHaa yeah, I have a few places in my code reading $cwd = getcwd(); register_shutdown_function(function() use ($cwd) { chdir($cwd); /* ... */ });
lol
18:50
Bleh, xdebug 2.7 explicitly denies PHP 7.4.0-dev.
@PeeHaa *down votes* :-P
\o/
reddit looks weird (or my browser messed something up)
19:24
> Before I answer on point - I'd like to thank you that despite the fact you clearly disagree with me - you wrote your message in a courteous, respectful tone. ~ Zeev
Well … thanks I guess?
...the rest of the email.
:-p
oh.....so we = two people with four letter names.
looks suspiciously at an ex-kitten person.
@Danack (Stas is actually called Stanislav :-P)
btw - replying.
I don't think Zeev realizes he's like 1/4 of the toxic kindergarten. Somehow.
Did he even realize how long of an email he wrote? sheesh...
19:40
meta.stackoverflow.com/questions/387883/… May the lord have mercy on my soul.
> especially if it has a negative influence on my mental well-being.
Is it really that bad, @NikiC ?
Link for the uninitiated?
I don't think externals has updated yet.
Oh yeah, that's a thing.
19:45
@bwoebi Reading Stas' mails regularly leaves me annoyed
@NikiC yeah, I agree about being annoyed … but does it really affect your mental well-being, as you describe it?
@bwoebi I refer the honourable gentleman to the number of people who have left the PHP project shortly after getting an RFC across the line.
@bwoebi It compounds over the long term
@Danack I can't say anything about that … And I'm not in the position to speculate why. Perhaps it was because they just wanted to have that one thing … or whether it was how they were treated.
@bwoebi I find doing RFCs really tiring, even for the one's where people do all the actual work of coding for me.
19:49
@Danack yeah that really. It's just so, so exhausting
> The amount of energy necessary to refute bullshit is an order of magnitude bigger than to produce it.
@Danack It's true
Personally, if Nikita, Bob, Joe, etc left the project because of Zeev and chose to start a new engine... I know which one I'd use. Personally.
For PHP rfcs it's even worse than that quote - there are people who are making 'valid' points, that are not rubbish, so can't be just dismissed, but at the same time, you can't provide a cast iron 100% foolproof perfect solution for their concerns.
@LeviMorrison My guess is it's just two people who have agreed to back each other up.
I doubt it's going to come to it, but we out vote them here even without it being a time when people are often online.
I don't like open source without ownership, like PHP has. Without ownership, to root out trouble makers you have to make a lot of trouble. If there's ownership, the owners can just take action.
19:52
yes.
The ridiculous thing is that if we were basing voting rights off php core contributions in the past decade, I would have a higher position than Zeev, even though I almost don't contribute to core.
His main contribution used to be employing Dmitry...
That's a pretty good contribution tho...
Also, I think he might be frustrated from things outside of the PHP project, which might be making him to seek more validation in the PHP project. But that's a reason, not justification for his behaviour.
@NikiC Yes, it was.
On Thursday I'm going to explore the AST processing hook to instrument function and method of interest for APM. Anyone aware of any big gotchas?
@LeviMorrison you seen my prototype?
19:59
No, I haven't.
So you basically wrap the whole body of a function/method in try/finally.
20:22
yes, i think that should be bulletproof
> What could possibly go wrong?
i did some testing around with nested try finallys and couldnt construct a case that breaks. maybe i forgot something
Theoretically the approach should be good back to PHP 5.5 then... except ast only came in 7, right?
yeah its 7 only, and not sure how large changes to the AST are to be expected in the future, not sur eifits stable enough in the long term
 
2 hours later…
22:09
Hello PHP World!
 
1 hour later…
23:20
chrome://net-export/ is a thing.
Hello!

« first day (3209 days earlier)      last day (1963 days later) »