« first day (3512 days earlier)      last day (1443 days later) » 

4:13 AM
@Danack Good you've solved it :D
 
 
1 hour later…
5:25 AM
Any though on simplifying this expression ((isExist && a==0) || (!isExist && b==0))
 
try, (isExist ? a : b) == 0
 
5:44 AM
nice
 
6:11 AM
respected embers, greetings. how i can read file from google drive and then to display the content in my textarea, I am just trying to read or upload file from google drive to my website. I am getting material to upload file to google drive. But i am looking for to read file from google drive to my website? any best advise ?would be thankful.
 
6:42 AM
Running PHP code in RINIT is technically possible but it's not really expected by any extensions, and now with preloading we hit a new bug.
Using auto_prepend_file is great but what if the application I'm tracing (or another extension) is already using it?
Anyone opposed to adding a hook for additional prepend files? Should be available to both zend extensions and extensions, so something like zend_register_prepend_file that adds to a linked list or something?
/cc @NikiC @beberlei @Gordon @Derick @Danack @bwoebi ... and probably more that I'm missing.
 
7:44 AM
@hirazzz Best advice can be to follow official Google Drive API documentation. Disclaimer: link is for PHP SDK since you've asked in this room; in case of other language need (Node, Java, Python...) it can be found in docs also.
 
ReflectionClass::isInstance() returns NULL for non-object parameter ・ Reflection related ・ #79645
 
@LeviMorrison can you say the exact problem you're facing? and probably would object a bit....the problem is that in another year, couldn't someone say "well, it's nice we've got this hook, but how do we slip some php code before it?"
aka it sounds like instead of a single new layer, it should be more like an event hook system where you can queue things up to be processed in order.
 
cmb
8:16 AM
@Girgias I had a look at the docs, and it seems we just can use the Compiler monitoring system. Could you pass me a license for temporary use?
 
8:31 AM
@LeviMorrison we had this problem back in tideways version 4 and earlier where we used auto prepend file to include our library, we used a trick to store the original auto prepend file in RINIT into a variable, replace with our own, and then call the original auto prepend file as part of executing our own code.
 
@LeviMorrison I already have problems with prepend files, because the prepend, "main", and append files all go through a top-level zend_execute. As I can't detect which one is the "main" one, I have the profiler start too early. Definitely interested in seeing this improved
 
@LeviMorrison code, but please don't judge ;) its old github.com/tideways/php-xhprof-extension/blob/4.x/… + this php code github.com/tideways/profiler/blob/master/…
 
I'm judging
 
Segmentation fault in garbage collector ・ Scripting Engine problem ・ #79646
 
@cmb Just sent via Twitter DM :)
 
 
1 hour later…
9:44 AM
@NikiC check my PR comments when you're back. Cheers
 
cmb
@Girgias thanks! I did a basic run with the compiler monitoring system, and the results are (mostly?) bogus due to missing(?) includes (e.g. "The '_emalloc' function is not declared."). Now I noticed that there is already the configure option --with-analyzer=pvs. Shall check that out.
 
@cmb when are we catching up about XMLRPC? I replied to your email, waiting on a time from you :)
 
@cmb Yeah, I did disable some locally but it turns out that it picks up "bogus" errors due to compiling on WSL so thinking with Linux semantics but having an underlying Windows machine, which when I ran it on CI turns out everything is all green per: girgias.gitlab.io/php-src-watcher
May need to ask them if I fucked up the configuration of it
 
10:02 AM
@cmb Does xmlrpc unbundling depend on github.com/php/php-src/pull/5484 ?
 
cmb
@NikiC I don't think so. I've mentioned that in the RFC: wiki.php.net/rfc/unbundle_xmlprc#future_scope
 
 
1 hour later…
11:09 AM
1 hour later...
 
How's your head?
 
11:48 AM
\o
 
12:04 PM
attached
 
12:16 PM
o/
Beware, it's Thursday! youtube.com/watch?v=ijQgd-xI6IY
 
@cmb So we'd have to update the extension in PECL later?
 
cmb
12:39 PM
Hmm, does ext/xmlrpc rely on these settings?
 
@cmb Not at present, but if we remove them from core, we'd need to move them into xmlrpc
(And we do want to remove them from core...)
 
12:55 PM
Conflict between $GLOBALS["now"] and $now ・ Scripting Engine problem ・ #79647
 
@Jeeves :D You should know better. It's not a bug... It's a feature! :'D
 
let's deprecate $GLOBALS...
 
1:12 PM
no
Any idea when attributes gets merged @beberlei / @NikiC ?
 
hello guys
i'm trying to use ssh2 in php script but not working
getting this error:
Fatal error: Uncaught Error: Call to undefined function ssh2_connect() ...
I followed this article with not success
https://stackoverflow.com/questions/15134421/php-install-ssh2-on-windows-machine
any help?
 
Your avatar looks like the artwork for a cheap "Out of the Box Thinking" poster.
 
1:29 PM
huh ? say what ?
 
@Jeeves I mean seriously, what did they expect?
 
@Derick i hope in the next two weeks
@NikiC @Derick as for errors, the "notification" API that is zend_error_cb independent is more important than the display replacement API. the later one would need more work to adjust SOAP with potential to move away from jmp based error handling there
 
@NikiC PHP used to have magic quotes but you removed them. Just put the magic back in and it will solve the problem
 
cmb
1:44 PM
@Girgias what is/was your configuration? I've managed to do a full build with configure --with-mp=disable --enable-analyzer=pvs (and added lic-file and output-file), and got a 500 MB log. Still lots of bogus messages due to unrecognized includes (or whatever).
Generally, that analyzer looks somewhat doubtful; fe. see the [spl_fixedarray_object_write_dimension() "bug"](spl_fixedarray_object_write_dimension). That the tool reports a false positive is slightly concerning; that it passes a manual review is embarassing.
 
@cmb for the analyzer or the output log filtering? Because initially I needed to filter out some warnings that are bogus due to ZPP but that seemed only to arise on WSL because the Linux CI run doesn't generate any warning what so ever
 
@beberlei That sentence didn't parse for me
 
@NikiC look at this one instead please, its way more important: github.com/php/php-src/pull/4555 - i take up the display thing for 8.1 it requires more work
 
with 4555 essentially nobody else will care about xdebug overwriting zend_error_cb anymore (except SOAP, and xdebug caring that SOAP does it)
 
1:50 PM
However it's in Linux format
 
@beberlei ok, thanks, I hadn't seen that one at all
 
@NikiC yes it is already 9 months old :)
 
cmb
2:10 PM
@Girgias thanks. That doesn't look particularly special. I converted the raw log (using -a GA:1,2): gist.github.com/cmb69/6fc754a4c62c994281e7b1f265cf3937.
 
@cmb looks like the V1031 is totally bogus here
V616 is due to ZPP
IIRC the flag to use is -d V616,V1031 to suppress them
 
2:51 PM
@beberlei Yeah, we are experimenting with such a hack.
@Danack In my opinion, extensions should have an opportunity to go before the user. The user has control of main and the prepend and append files.
The order between extensions I'm not sure I care about -- you can't guarantee that you'll execute before all other extensions, for example.
 
cmb
Filtered log: gist.github.com/cmb69/5e724d2b81ae7b940703ff1ee091d2d6. At least some of the issues look valid.
 
@LeviMorrison when you redo everything in C in a few months expect "i told you so" from me :D
 
@Derick What do you mean by too early? You don't want to profile the prepend hook too?
 
@LeviMorrison I do, but I want to know which file (prepend, main, or append) I am currently at
 
@beberlei Highly doubtful -- too much room for sigsegv. We are trying to remove the amount of PHP code we run on rinit, though, because of these issues.
 
2:56 PM
We did that for the MongoDB driver at some point too. It's not worth the hassle.
 
@Derick Without thinking too much about it, how would you like to know which one you are in?
 
@LeviMorrison a flag to zend_execute_internal perhaps?
let me see whether this was a problem
bugs.xdebug.org/view.php?id=407 is the problem - it had to do with the naming
 
i think it calls require correctly on each file in succession, so its possible to see this based on zend_execute_ex calls for require at the top level (when enabling in RINIT)
that bug makes sense, you look at the first file executed
 
@Derick Wouldn't be a hassle if we had a hook that's designed for it ;)
 
@beberlei yeah, but I can't mitigate as there is no way of knowing whether there is a future file still coming (so I can rename)
 
3:06 PM
Okay, so let's say I add zend_register_prepend_file and a global enum of {PREPEND, MAIN, APPEND} that says which phase we are in, where PREPEND is set for the extension's prepend_file as well as the ini auto_prepend_file, MAIN is set for the main script, and APPEND is set for the auto_append_script.
 
what about preloading?
 
Any other objections?
 
That'd likely be handy for me, yes. But, why should there just be one prepend file?
 
@beberlei Happens before the first prepend file.
@Derick It's a linked list, sorry.
Maybe zend_add_prepend_file?
Preloading assumes everything in the globals at a certain point is there because of preloading, so you can't run code before it. At least not without redesigning that.
^ This is the first reason I am aware from the engine that you can't run PHP code in rinit. Before that it was just difficult because of assumptions by other extensions.
 
@cmb Looks like, would probably suppress the built in PCRE lib (except if it turns out legit and we may want to report those upstream) but it's indeed way more readable
 
cmb
3:15 PM
@beberlei if we move xmlrpc_errors and xmlrpc_error_number from core to xmlrpc, wouldn't we need the display stuff?
 
@cmb xmlrpc errors is just a side effect of this attempt, the major offender is soap
 
cmb
Yeah, but my point is that if display stuff is done only for 8.1, we cannot remove the INI settings for 8.0. Right?
 
ah
yes that is right
 
cmb
@NikiC Thanks for the confirmation.
Wrong mention. Sorry.
Anyway, seems removal of xmlrpc_errors has to wait. :|
 
@cmb not necessarily, if we revert all the soap changes and just go with the minimal support
and then for 8.1 do the rest
 
cmb
3:31 PM
Ah, okay, fine for me.
 
i need to chcek xdebugs error cb to see if the combination of notifications and display cbs would allow derick to remove his overwrite :D
 
unlikely
 
4:06 PM
I have a table which holds a list of items that are part of various shipments (Table has a primary key for each item entry and an id for the shipment id itself.) I have another table that lists items that were rejected from a shipment and records the item_entry_id, reason for rejection, and the author. After all of this is in place, when you click on a shipment you'll be able to view which items were rejected and see a rejection rate for that shipment...
All of these shipments are tied to an origin store that sent the shipment. I will have another page that will provide a rejection rate for the past 30 days for all shipments, by origin store.
What I am wondering is... should I add a column on the item table that holds a 1 or 0 for whether an item was rejected to allow for a quick way to calculate the rejection rate, or should I have it go through the process of looking at the reject table and counting all entries for a specific shipment id and then calculating the rejection rate.
A rejected column would at least provide a straight forward way for looping through all shipments by each store, counting the number of entries with a '1' in the rejected column and dividing by the total number of entries for all shipments for that specific store within the date range...
versus looping through all stores, and then having to count all entries in the reject table that tie back to a shipment id from another table, and then counting all entries for that shipment, in order to get the rejection rate. While fast for a computer... it doesn't seem to be as easy on the server as just having a reject column on the same table with the list of items.
looks at duck ...what do you think?
!!coinflip
Jeeves needs a D20 dice roll command.
!!reboot
@PeeHaa Jeeves is either down in playground or was removed. Not sure.
 
4:22 PM
Control + Arrows not working in Interactive PHP php -a ・ Readline related ・ #79648
 
4:47 PM
@StatikStasis it's back
 
 
1 hour later…
5:59 PM
@StatikStasis If item belongsTo shipment or vice versa shipment hasMany items you can't set boolean on item. I am telling from perspective that item could pass second shipment and be rejected on third one.
 
@Tpojka There is another table that I did not mention because I didn't think it was relevant; it is a shipment table. Shipment table has an AI primary key which is the shipment number. The separate table shipment_item is the detailed list of items. On that table the primary key is also an A int which is unique to the individual item, along with a column holding the shipment number it belongs to from the shipment table. So a boolean on this row would be for that specific item.
 
Sorry again, option is that item is to be rejected or whole shipment?
 
The 1 or 0 will be on the shipment_item table which is for the individual item.
I decided to move forward with that. =)
 
Yes, you are rejecting primary key of shipment_item so you would know later which item on what shipment is likely to be rejected (for example).
Seems reasonable to me to have column in shipment_item for that.
 
Correct. That part I had down. My question was basically around whether it was worth adding the column to the item table indicating whether a particular item had been rejected so that it would be quick and easy to determine a rejection rate for each shipment.
...rather than having to do another set of queries to gather the data from multiple tables to get the same result.
After I wrote that above, thought it over, got sidetracked watching an interesting WW2 YouTube video, and came back- I decided that was the best way. =)
 
6:15 PM
That was my first post: if the same item is used to be connected with various shipments (and shipment_item pivot says so) then I can't see use of having it in item(s) table because it could not be rejected in some other shipment. Maybe I don't get it 100%.
 
Is there anything wrong with doing something like this: Just as a fallback if header has already been sent?
header('Location: url');
exit('<script>window.location = url<script>')
 
@Ghostff Better to use/set session and to check on 'Location: url' if exists => execute JS. It is not good practice having anything else except PHP in file.
 
6:34 PM
@Ghostff Yes the fact that you need a fallback
It mean you are not control of the output at all
Which is a bad spot to be in :)
 
@PeeHaa yup am not in control, its a script that have gone through different hands in different countries.
but Okay.
 
I am sorry for you :)
 
6:52 PM
Altering disable_functions from module init corrupts memory ・ Reproducible crash ・ #79649
 
7:06 PM
 
php-win.exe 100% cpu lockup ・ *General Issues ・ #79650
 
8:03 PM
Wow, Ben changed his vote, you've seen thath @Girgias ?
@ramsey thank you for wide explanation of your decision :)
 
@Tpojka =O
 
Found that amazing account.
 
oh my... this will keep me preoccupied for a bit. I'll have to keep that tab open and check it out later.
 
@brzuchal Just saw it
 
:D
@StatikStasis Why would you be way more productive than myself, here is one more found yesterday.
 
8:11 PM
I have ADHD... I'm always looking for something else to give my attention to.
@Tpojka Alright... I am officially distracted. LOL! twitter.com/fjamie013/status/1259516774044913669/photo/1
 
xD
 
One of the best, agreed. :D
 
8:30 PM
@brzuchal No problem. It's something I've been thinking about for a while. :-)
 
8:42 PM
I also think it's better to deal with it now than later and was one of the motivators to write the RFC
 
9:10 PM
@MarkR Inquiry regarding our Namespace discussion from a few days ago. Should I try to turn that into a new RFC, or update yours, or just sit on it, or...?
 

« first day (3512 days earlier)      last day (1443 days later) »