« first day (3210 days earlier)      last day (1752 days later) » 
00:00 - 20:0020:00 - 00:00

 
2 hours later…
2:13 AM
Getting the last day of a given month failing at months of 31 days – #78355
 
 
2 hours later…
4:09 AM
mornus
 
 
1 hour later…
5:18 AM
morns
 
5:37 AM
Good morning
 
5:56 AM
@Danack Will watch!
> Ignore the noisy minority.
> Build a strong community based on politeness, respect, trust, and humility.
> Have a mission, limit direction with scope.
(That's for the whole project, not a given feature, though it applies there too)
> Document things.
 
6:21 AM
Ha, they literally talk about "flipping the bozo bit", aka, ignoring certain kinds of people.
 
 
1 hour later…
7:31 AM
The "noisy minority" includes, possibly almost exclusively, those who complain about it being "a toxic community" when in fact there was perhaps an isolated incident. Tar brush and all
 
Good morning.
What's this on the right: @Ekin 's going marry?
Ah, BD.
Note to myself: read most starred feats first.
 
8:00 AM
importune to press or urge with troublesome persistence
 
Is it just me or is this a bad idea? pastebin.com/DzNs0E3Y If so, what problems other than being locked into using the alphabet would this cause? My boss' new framework has this in the documentation.
 
8:21 AM
Too much limited (imho) and way much hard-coded.
Suppose you created 'a' than 'b' and suddenly you remembered you needed something between.
 
8:33 AM
o/
Thinking hard about how to manage conditional prices in my DB setup: 3v4l.org/tULNU
 
9:28 AM
Where the shit is @teresko?
 
9:50 AM
@bwoebi Eh, after thinking about the viper pit of path canonicalization, I kinda feel like doing anything directory/path based may not be such a great idea
I'm warming up to the idea of having a per-file package declaration.
 
@NikiC so namespace and package? Now it gets weird TBH
 
It's not my first preference, but it is explicit, avoids loading order issues and is not worse than the current strict_types situation (you would replace strict_types with package)
 
@NikiC what exactly is the issue? just ask the OS for the canonical path and you're fine?
 
@bwoebi Yes but ... streams :(
 
@NikiC eih ... eih ... ....
okay that's indeed an issue
 
9:56 AM
@Jimbo on discord, he doesn't come here anymore.
 
https://stackoverflow.com/a/12152307/9334297

hey guys, i need some explanation here: I want to build a dynamic query but I don't understand where $fields is coming from? I don't want to make any default values
 
@mega6382 why?
 
don't know if that is even the right way to do it since it's a 2012 post
 
@mega6382 did anything happen recently??
 
@bwoebi Cause he got into a fight with a certain someone here, and then decided to leave so that he doesn't get banned on SO again, because he already have warnings from the mods.
 
10:01 AM
@mega6382 I looked it up. I see.
 
10:26 AM
@NikiC Maybe it would be sane to default the package to the namespace - and allow for an override with an explicit package name declaration?
 
@bwoebi Which part of the namespace would you use though?
 
The whole
 
I don't think that matches the package concept we want well
Usually the "package" would be either just the first or the first two segments
 
Yes, a lot of libraries will have multiple namespaces... But as a default, especially the simplest of them don't.
 
@bwoebi only the very simplest though ... and things will stop working right as soon as you add an extra nested namespace, that seems pretty surprising
 
10:29 AM
It's just to actually have a default
I'm unsure...
 
I'm having this really dirty idea where the package declaration can be written as package("nikic/php-parser"); so that on older version composer can declare a dummy package() function and make the code still work :D
 
10:55 AM
Morgens
 
Array returned from ArrayAccess is incorrectly unpacked as argument – #78356
 
@NikiC maybe use sub-namespace for package modifier? In this case A\B can access A\B\C members and methods declared as "package", but not classes in the A namespace and A\D namespace as well.
 
11:34 AM
o/
 
DateInterval throwing more specific Exception – #78357
 
11:58 AM
mornin
@NikiC This is dirty as a namespace_declare('Vendor\Lib', ['strict_types' => 1]); all are strings
@NikiC BTW why would we won't to emulate package in old code if it can work without being in a package? They should be still possible to use in non package scoped concept if packages could live with namespaces together.
 
@brzuchal syntax error
If your package declaration requires new syntax, it will not work on old versions
 
@NikiC Yes, cause it's a new thing
This is a similar as in Rust which you've pointed out on internals@ in Rust edition 2018 there is a new keyword dyn why should it work on old versions? IMO this is always BC as for all new stuff no matter if it is package or not.
 
@brzuchal Possibly, it depends on the type of changes
 
When there will be a time in a future and enums will come some library maintainer may want to use it. It would not work on PHP 7.x and that is always like that.
 
Keywords couldn't be based on this anyway
Well, I guess they could ...
 
12:12 PM
The only thing with Rust what benefits here is possibility to run old code with 2015 edition syntax in a mixed mode and that is cool if PHP would adopt such concept it could keep alive old code without removing things from language, like removing var for properties in old days in PHP4
IMO going along with Rust editions it could be possible only if there is a package/module file with a simple format which can be read without loading any PHP scripts to deduce the way of loading by a compiler and with a set of declares that changes engine way of handling things like strict_types etc.
 
why?
I feel like you're trying to replace composer and it's existing infrastructure for no particularly good reason
We already have a composer.json file that can hold this information and we already have composer successfully managing autoloading. What is the point of replacing that with a new file and a new loading mechanism?
 
As on internals@ someone (don't remember who now) pointed out there are projects which don't use Composer, leaving them with no way to use package/module scoped libraries then.
 
They can still manually register the package. The role of composer here is just shuffling a small bit of data from composer.json into PHP
It just issues a call of the form package_declare(["name" => "foo/bar", "declares" => [...]]) for each package it knows about
If you don't use composer, you do that yourself, just like you currently declare an autoloader yourself
One thing I can tell you for sure is that any solution that involves YAML is definitely not possible, because the format is too complex to allow into the core language. If you want to perform the package specification with a separate file rather than PHP code, then it can only be in ini or json format.
 
It's just package_declare() looks odd to me like a function not a language construct.
Moving a portion of information from composer.json to other package file doesn't have to be bad idea, in a future Composer can deal with it, and if someone is not using Composer it would be easier to bootstrap package/module loading, we don't know what way composer.json scheme will evolve in a future, now it does two things manage packages and handles autoloading, but the autoloading could be moved from there to package/module file - just thinking out loud.
@NikiC Then probably I would opt for ini file. Easier to write and read. Can handle multiple groups in case of multi package libraries likesaid before
And the reason to it being a separate file not PHP code is that it is simple, format is well known, won't cause any BC in language itself and it can skip old unhandled directives
 
12:30 PM
Traditional php.ini with PER_DIR flag? 0
 
No. It has to be per project.....and actually multiple per project.
 
i beliebe the general opinion is that ini options for these kind of things are not acceptable anymore
 
@NikiC another thing to bear in mind is stuff like preprocess.io/# might possibly want to add info when it does its stuff, which might not be available at boot strap time.
 
Alternative: ReflectionNamespace('Some\Package') and method setDeclare(string $option, $value)
 
PHP doesn't ship Composer, Rust ships with Cargo so it's easy.
 
12:41 PM
suggesting ever more different syntaxes for essentially the same thing is not really cosntructive when the problems are still on a higher level on what elements should be combined in which way to achieve this
@NikiC conceptually, do you see users changing these settings on the "root" level for packages they don't own, or would each package be responsible to set its own declares and what you said about composer would be collecting all composer.json declare configs from all packages and code-generating it into vendor/autoload.php ?
 
Motivation behind separate file and not PHP code is that if compiler can read it bootstrapping runtime without Composer would be a lot easier than manually reading them and calling some functions this is first thing, second is separate file in well known format doesn't affect PHP syntax which already is complex.
Each upgrade provides a migration guide cause there are things being removed from interpreter so you don't wanna deal with some old declare flag built-in language in old versions which may cause syntax errors
In package declaration.
 
1:07 PM
Looking at other languages can see Java has module declaration, Python has import and init.py, JS has export and import-from - maybe that's not bad then. Should be flexible IMO not causing syntax errors if some old declare flag would be removed from language. Rust has Cargo.toml with benefit that it is not language syntax where directives changing compilator behaviour resist so this is another approach.
Question is which approach to choose, right?
 
> Java has
Jul 14 '16 at 19:02, by Danack
They are nuts. Seriously, I consider some groups of programmers to have gone collectively insane, and you should do the opposite of what they do, even if you're not 100% sure why you should do the opposite.
The opposite of whatever the java one does.
 
@Danack You've convinced me, so I personally opt for separate well-known format file and package Name; declaration in each file.
 
> for separate well-known format file
please no. It needs to be a function.
 
OMG no, please no.
 
If it's a function we can evolve where it is and how it is called through tools like composer, or just call it ourselves if we don't use composer.
Forcing people to use a particular file format, in a particular place means that it is hard-coded and can't be evolved.
Also, some project will need to have separate defines - e.g. migrating separate projects into one repo.
Functional composition through functions is trivial. Functional composition through magic formatted file is impossible.
 
1:16 PM
declare_package('MyVendor\MyLibrary', ['strict_types' => 1], /* exports */[MyVendor\MyLibrary\Foo::class, ...], /* some library own autoloading */, /* functions loading */, /* constants loading */, '8.0');
 
@brzuchal if you want to, you can have your own format, that you could share with other projects, maybe even have a composer defined file format. But then after that the file format that is defined in userland gets passed to a function in internals.
When you want to evolve away from that format to another.....you can, without having to change php internals.
 
@Danack and if I wanna get metadata from package I can always run the bootstrap which runs PHP and get package/module metadata through reflection and output in form of JSON or any other interoperable format. Great... only thing is I need compatible PHP for that and working for eg. on a indexer or any other utility tool which has different language under the hood. Or better use PHP to run parser of PHP bootstrap file and work on ast nodes.
 
@Danack Not sure I see what you mean there
 
I don't wanna argue anymore, I just see that tools like Docker Compose or tools for k8s which uses YAML regardles of file format, handle different configuration settings due to agreed version of configuration format and are able to handle in case of Docker Compose version: '3.0' .. '3.5' etc. which differs from themselves. And that's where the idea with simple file format was.
 
@beberlei They could do that if they go out of the way, but I'm not exactly concerned about it. It's not something they could do by accident.
 
1:26 PM
@NikiC Program 'boots', does the package declaration it knows about. Program runs, and at some point. preprocess.io magic autoloader gets invoked, and realises it needs to add some package declaration that can only be known at runtime (e.g. maybe something like copying declarations from already loaded package). Is what I meant...I think.
...
 
@Danack It's hard to say in abstract, but probably it needs to hijack the code that declares packages in the first place.
I'm assuming preprocess already hijacks the autoloading process completely, so it can also hijack the package registration
Though I'm not sure why it would even have to touch it
 
$gd = imagecreatefromstring($request['content']);
$dims = [imagesx($gd), imagesy($gd)];
imagedestroy($gd);
Does anyone know what is the equivalent script using Imagick?
 
@X4748-IR you really need to get better at google "php imagick get image width" - php.net/manual/en/imagick.getimagewidth.php
> or tools for k8s which uses YAML
But those are all terrible.
 
@Danack I read that link/doc, I want to load an image by content
 
Good morning, mi amigos.
 
1:35 PM
+ I'm getting image content using CURL
 
@X4748-IR then you should use more precise terminology. It's not 'content' the variable type is called a string and so a google search of "php imagick from string" - gives php.net/manual/en/imagick.readimageblob.php
 
@Danack I read this too :D It reads content from a file
 
@LeviMorrison oops I accidentally found a reason to post that to the list. I hope no one thinks I'm trolling.
 
+ string $filename
 
@X4748-IR Exactly how far down the fine page did you read?
 
1:37 PM
I saw the answer, thanks.
 
Did you happen to fixate on one word, and then make a really huge assumption about what it meant?
 
I think so, I didn't want to spend so much time for Imagic.
This is the first time I'm using Imagick.
 
I heard the guy who maintains is has a nice beard, but is a bit of an asshole.
 
Hehe
@Danack I wouldn't say that. Heard he's very competitive and nice guy.
 
Wow, yet more offtopic drama
 
1:49 PM
@ircmaxell from two of the people who behaved like that years ago, the result of which was to bring in voting, to explicitly get past obstinate objections.
 
Yup. Do people still thing a CoC isn't needed?
 
How long 3v4l.org site will keep code?
 
People who like to do things that would be a violation of a CoC think it's not needed.
 
@Exception I would always consider it non persistent
 
@ircmaxell do you know of a CoC that has explicit rules against demanding people respond to your messages? Pretty sure some have it, but can't find any trivially.
 
1:56 PM
but there should date of expiration of URL?
 
@Danack fwiw, some CoCs do consider regular blocking of progress to be a violation
 
@Exception Why?
 
I mean if I suppose created any code over there and gave that URL to my client, will client be able see that code after say 5 yrs?
 
Nov 13 '15 at 8:20, by Sjon
@Danack until the end of time; or the Internet; or 3v4l, whichever comes first
 
@ircmaxell That would make it "exceptional" to want people to behave in non-toxic and non-antisocial ways. The expectation should be that I can feel psychologically safe without a CoC.
 
1:57 PM
@Exception You are using 3rd parties wrong
 
> should
Have you met people?
 
@Danack not directly (not should it), but threats, derailing of messages (which in this case is clear, and ironic because when Zeev said "let me get back on topic" it was still clearly off topic for the thread, which is in violation of the current mailing list rules)
@Gordon in a perfect world, sure. We don't live in a perfect world...
 
You are putting faith (yes that is what it is) in a random (and free even) 3rd party which is always a bad idea @Exception
 
@Danack Okay so you are suggesting to take code backup from 3v4l rather than dependent of it, correct?
@PeeHaa okay..
 
@Danack I am just mimicking/transfering @ircmaxell's argument when I proposed people should voice their expectations about diverse lineups in conferences before withdrawing from them :)
 
1:59 PM
thanks for the suggestion
 
@Ocramius I don't think that's quite what's happening here. People are making progress, and then two people are being nasty about it. it's the demanding to have their voices responded to that is the problem for me. And then derailing threads when people ignore them.
 
@Exception reliance on third parties is always a risk. Especially third parties you don't pay - meaning they have no incentive to keep anything running for you
 
@ircmaxell I very much agree with that
 
@Exception I think you're doing something wrong. If you're sharing code with a client you should use something more like git.
 
@Sjon Agreed
@Danack okay.. that will work
 
2:01 PM
that being said, I personally expect 3v4l urls to keep working for a pretty long time
 
cmb
@Danack, group@ is well defined, see php.net/credits.php
 
well then how can I share code on git?
 
@Gordon and since that's not the world we live in, we shouldn't make changes that pretend it is. We should make changes for the world we are in today, and then modify them in the future as things chabge
 
@Exception use gist.github.com
It'll never expire, probably
 
@ircmaxell I agree. We should make changes for the world we want to live in.
 
2:04 PM
@cmb thanks. Also, most of those people appear to not be part of the PHP project since a decade or so?
 
cmb
yep :)
 
@Danack and since they haven't enforced the trademark, in the US it is forfeited
 
@cmb I have web karma, let me just go add myself to the list.
/s
 
> That group is simply the key people who created the project some 15+, or rather almost 20 years ago.
now, 25 years ago.
 
2:09 PM
@brzuchal Thanks .. I assume so ;)
 
Trying to use that as leverage to seize back control is..........not likely to be productive.
 
Though I doubt 75% if them would say anything or agree to do anything. The only ones who would participate are Andi and Rasmus, and I doubt either of them would back this particular tirade
And all they would need is a public message that they are trying to take Nikita off the project, the one behind the majority of the popular features since 5.5, and I think the political will for it will dry up quite quickly
 
btw if anyone thinks i'm completely wrong or just being a twat, then please let me know either through a message room here, or through twitter DM. I realise that confronting people's bad behaviour is not as good as stopping it from happening in the first place, but being confrontational back to people who are making up rules to try to get their way is one of the things I'm good at.
For which, I am eternally grateful for to my sister for a whole childhood of training.
@ircmaxell did you see my ping? not sure how to resend it...
 
@Danack You are not wrong, but imo confronting certain people is sometimes a waste of time and dev nulling is sometimes the best option
 
@brzuchal well - github has the same issue - it's a third party you're not paying @Exception
 
2:18 PM
@Danack which?
 
invitation to a room.
the UI for managing those appears to be annoying.
 
@LeviMorrison it's from php-src (ext/standard/credits.c), which you also have karma to edit. ;)
 
@Danack it's not a good idea to drag this sort of discussion out, in replying to his messages you are giving him the impression that there is a discussion to have, without the oxygen of attention he can't really do any damage ... and your life will be easier and more peaceful ...
we need to act when he actually tries to act, while he's just using words, he can be safely ignored
 
@JoeWatkins the one point I would refute there, is he effectively detailed that discussion. If it was in an isolated thread, sure. But in an RFC discussion thread isn't appropriate
 
@JoeWatkins I agree with that, but at the same time, think the behaviour needs to be clearly described as being bad, to avoid people from thinking it's acceptable. I'm not going to reply any more.
@PeeHaa agree in principle, though again also, there's trade-off against not allowing them to say "well no-one disagreed". That's the reason why I don't go in and try to refute them point by point - I'm just calling out their behaviour as wrong. And also....having a CoC would remove the burden from falling on everyone else to learn who to dev null....
 
2:34 PM
The problem is "the rules" he talks about haven't existed for years. He keeps time and again bringing up new rules or ideas and imagines that they are how it was always done
 
Some people just can't be argued with
There is value in saying a person like that is wrong for the other people reading it, but not so much the person itself @Danack
s/argued/reasoned/ I guess
 
i can understand Zeev talking about implicit rules that might have existed in the previous generation of maintainers, but clearly they weren't transmitted to the current generation and that is an organization failure of said previous generation. maybe just acknowledging this helps? there is no way to fix this "problem" now though (if you consider it such)
 
I was going to reply about keeping the thread on topic, but bailed out after considered the irony of such a reply. :P
 
@beberlei as I've mentioned, Zeev is free to introduce RFCs to change the RFC process just like Joe did recently. At least in part he doesn't because the RFC process was introduced to explicitly override people like Zeev and Stas. And I don't mean 'like' as in 'similar to', I mean they are the same people who were objecting continuously to block progress that caused the RFC process to be introduced.
3
 
2:51 PM
@Danack "to explicitly overral people"? I feel there is a wrong word there. i think i understand what you mean
 
/speeling is hierd.
 
cmb
Is there any minimum size for mysqlnd_arena_create()?
I mean would mysqlnd_arena_create(15) even make sense/be supported?
 
@cmb Is that even a thing?
 
cmb
yep, that causes bugs.php.net/78213, I believe
@NikiC, the test uses mysqlnd.mempool_default_size=1; wouldn't crash with > 16
 
@cmb I mean, git grep doesn't give me anything
The mysqlnd arena stuff is based on Zend arena which should support arbitrary sizes, but possibly mysqlnd does something fishy on top of that
 
@cmb oooh 7.3
 
cmb
7.4 seems to be affected as well; maybe only 7.4.0alpha1
arena->ptr is greater than arena->end in this case
 
@cmb yeah, this is bogus
It should be making sure that it's at least as large as the arena header
 
cmb
@NikiC, it does, but it disregards the ZEND_MM_ALIGNED_SIZE()
 
@cmb ah yeah ... in this case the aligned size should be the same though
 
cmb
3:06 PM
no, it's about x86, and the size seems to be 12 there
 
@cmb but isn't also the alignment only 4 on x86? Or is it always 8?
 
Q) Sry guys, one more question. Does anyone know how can I get all of the links that are like attribute=value from an HTML file (using xpath)?
 
@cmb Ah, I guess on Windows it's always 8
On Linux we compute alignment in configure
But on Windows it uses the default
In that case adjusting that code to use ZEND_MM_ALIGNED_SIZE will hopefully fix the issue
 
@X4748-IR $nodes = $xpath->evaluate('//a[@attribute="value"]') should work
 
3:11 PM
@cmb great
 
cmb
@NikiC, thanks for helping!
 
Does the "a" mean anchor? If I change it to link, will that work?
 
@Danack I may be misremembering but AFAIR, Zeev was very involved in drafting the RFC process. Before then, internals was much more like the wild west.
 
@salathe ....and the RFC lives on the wiki, so you just put wiki wiki wild wild west in my head, so now it is in yours also.
/adds another item to the CoC
 
@Danack Haha :)
 
3:19 PM
@bwoebi One variant that would avoid having to specify the package in each file is to specify it as part of the include operation. That feels like a bad idea, but I'm not yet sure why...
Probably because people would complain that it makes it very easy to apply something to all code. You just create a strict_types=1 package, register an autoloader and use it for all includes.
 
@beberlei Thanks worked
@cmb Because of sanctions we even can't see Gists on GitHub!
<link href="/App_Themes/favicon.ico" rel="shortcut icon" type="image/x-icon">
 
> You just create a strict_types=1 package, register an autoloader and use it for all includes.
:+1:
 
Some websites are using links like this... I don't know how I can get the icon...
 
@salathe you're also on mobile and not getting notifications? aka check your notifications please.
 
@NikiC if you are thinking of tackling packages, can I please make a plea for the ability to "seal" a package so that you are compile time guaranteed no further classes/functions/etc would be defined in it?
 
3:33 PM
@NikiC I agree that it feels wrong … should be a property of the file not of whoever includes it… I think.
 
@Danack sorry, I was being rude and ignoring it (trying to do some work)
 
np - laters.
 
@ircmaxell what exactly would the benefits be?
 
@bwoebi the ability to analyze code. The ability to defensively seal code. Etc
It would also allow significant optimizations at compile time and runtime if you know there can no longer be any more classes in a particular namespace
 
@ircmaxell That's what I'm wondering … we do not have package private classes or such. If we had that as well, then I'd see your point
 
3:41 PM
That would require a package/module to define sort of export symbols list. Then whoever would load class insidr that package/module from other path it would be only package/module private which means useless outside that scope.
 
but as of now namespace does not mean anything in regard to compilation … except that you can assume that every un-namespaced and not defined in the current ns fcall is a global fcall
 
Can't we say select those tags which at least their attribute has an 'x in its value'?
ex) <link rel="foo x">
It seems I need to run regex for each of the selected elements!
 
@X4748-IR Use xpath
 
@PeeHaa I know this much: $selected_items = $xpath->query('//link[@rel]');
As I said sometimes attributes have two parts for example rel="shortcut icon"
 
Try googling harder :)
 
3:50 PM
Ok...! thanks. I hope something can be found.
$link_tags = $xpath->query('//link[@rel]');
$href = '';
foreach ($link_tags as $link_tag) if (strpos($link_tag->getAttribute('rel'), 'icon') === 0) $href = $link_tag->getAttribute('href');
I think this one is better lol
 
cmb
@PeeHaa, googling "harder" gives 400,000,000 results ;)
 
@cmb To limit that I would suggest OP to just start googling :P
 
@cmb Thanks...
I didn't know how to google it
 
cmb
I used "xpath attribute value contains"
 
It's simple... I should have known that.
+ You googled the answer lol
 
4:02 PM
@bwoebi yes, but talking to package/module it can mean something
 
@X4748-IR a new rule that applies to you in this room. Instead of asking your question, you have to ask, "what should I google to find X".
 
We already want it to have declare directices
 
@Danack hmmm...
 
4:28 PM
@bwoebi chicken and egg. Without sealed packages, package private is useless. It goes both ways
 
4:47 PM
@ircmaxell so you want both - then it's okay.
 
@ircmaxell Those seem two independent concepts?
Actually I don't think I understand what benefit the sealing gives us
The guarantee that package-private classes cannot be extended? I think that would be of fairly limited usefulness
Though I guess that depends on what fraction of classes would be package-private in the future
@ircmaxell I think package private is quite useful independent of sealing. It limits your public API.
@bwoebi btw: bugs.php.net/bug.php?id=78356 rw fetch for unpack doesn't seem to work out...
 
5:06 PM
@NikiC but without the ability to seal, it is more like protected, isn't it?
@bwoebi totally.
@NikiC they are independent, but they play off each other well, no?
 
@ircmaxell well, they could of course create a file with the wrong package declaration and access it that way, but that seems on the same level as using reflection or closure rebinding.
 
5:20 PM
How may I Google this question: "How can I make an object of DOMDocument from an HTML tag like <img> without loadHTML method?"
The crawler is made by PHP
I had written a python version before, but this one works well too.
 
@X4748-IR "from an HTML tag like <img> without loadHTML " why don't you want to use that method?
 
@NikiC aaah damnit
 
Possibly just create a new DomDocument and start adding DOMElement to it directly?
 
Becuase I've used that method before, don't need to repeat.
There is a loop like foreach($dom_images as $image) I wanted to append another tag to this loop
 
@NikiC with the ability to seal, you can be certain about the possible methods which can be called at all and deduce possible optimizations like method inlining from it
otherwise you'd have to guard against whether it's a "known" class
 
5:36 PM
@X4748-IR I don't understand why repeating is bad, but you can create DomElements directly and/or clone them, rather than creating a new document each time. then add each of the elements to the document.
 
Actually it's so complicated, I didn't want to make it more complex.
I thought maybe there a method like $dom->push('<img>'); or something.
 
* 500 lines of code for this spider/crawler
 
Thanks again.
 
5:46 PM
np.
 
@beberlei Should the hooks examples in the internals put the previous hook into the ZEND_BEGIN_MODULE_GLOBALS() section?
Rather than a file global?
 
6:12 PM
Grant Thompson, the host of King of Random youtube channel just died. bbc.com/news/world-us-canada-49182815
 
@bwoebi only for the package private classes though, which seems like a fairly narrow scope
 
@NikiC yeah, the most power is in whole-application sealing, i.e. telling PHP code will only ever come from a given set of files
(which is unrelated to this)
 
6:29 PM
Hello,
I face some problems trying to implement cacheable paginations for items that are suppose to be created/updated/deleted by users. I ve found this article https://www.google.com/amp/s/www.freecodecamp.org/news/how-to-implement-cacheable-pagination-of-frequently-changing-content-c8ddc8269e81/amp/ - for short - fetch paginations of IDs from db then match them with cached items. I am using Laravel default cache driver. The short question...should I cache each item separately (I can imagine server browsing like 30 times for each cache file...), or cache and keep updating an array of all i
 
@BoteaFlorin do the items need re-arranging constantly?
 
Not really. I expect max 5 delete actions per day
but much more updates
 
@BoteaFlorin do you actually have a problem with performance currently, or are you just planning ahead?
 
6:45 PM
for now I don t implemented a cache system, is not a big project, much for learning. I expect max 200 users per day, but I am not ignoring scalability. Each item - comment - will have max 6400 characters
@Danack is caching in my case a waste of work and energy?
 
@BoteaFlorin with modern SSDs, I would recommend just not worrying about it right now, but worry about it when it becomes a problem. Top-tip - adding a piece of middleware software to log slow requests is really useful.
Then when it's a problem, throw a cache in front of the DB, to cache the data for like 30 seconds and a time. That will last as a solution for a reasonable time.
Then if there was still a performance problem later, I'd probably copy all the data about items into Redis, and do the querying there, as it's fantastic at running custom queries.
 
So, for now I should not worry about caching?
 
that would be my recommendation.
 
@Danack That I want to hear. I am new to caching and made some tests and it seems bizare to me that I have to cache each item in its own file for future flexibility. Is it not expensive to browse for each of that file separately, or wasteful to retrieve an array only for few items?
I am not doing it wrong, right? :D
 
"that I have to cache each item in its own file" - what do you mean by that? You might be doing something very wrong.
in particular - "file"?
 
6:55 PM
yes
 
Hello aliens :p
How to define a OneToMany relation with multiple mappedBy columns in doctrine 2?
 
@BoteaFlorin stuff like redis.io is a cache. Files probably shouldn't be used as cache for the type of things you're describing.
 
I should think more of caching responses then caching items, right?
 
@BoteaFlorin let me right some code as an example.
 
oh...I have some tests using facade default from laravel cache, is not something signifiant. So...redis is not using files...I am out of subject and I need to read some docs about it. Lol
 
7:05 PM
@BoteaFlorin gist.github.com/Danack/6eaa8bd614676b426176e694e1898b89 - short version, you cache the results of queries, not individual items.
 
Wes
lian-li.com/pc-a75 can't bloody zoom in the pictures i just can't believe it
 
Wes
7:25 PM
@Danack all with windows
it's not that i dislike windows, but metal conducts heat better than acrylic plastic or glass
like, so you don't need a million fans
 
anyway to emulate iphone x on a device other than an apple product?
or notch
 
@IPAddress chome mobile phone emulation not good enough?
In which case, you might need to specify exactly what you need to test.
 
@Danack doesnt emulate the notch and safe-areas
 
Wes
i think i found one that doesn't look idiotic youtube.com/watch?v=CgdQoMB6iTQ
 
7:43 PM
@Danack ah! Thanks! You are so kind, sir!
 
7:54 PM
Hi Guys. I am looking for someone to help me investigate a SEGFAULT in MySQLi
Using DebugDiag I managed to get this result:
php7ts!mysqlnd_pfc_free+400
php7ts!mysqlnd_protocol_payload_decoder_factory_free+548
php7ts!mysqlnd_result_buffered_c_init+2c23
php7ts!mysqlnd_result_buffered_c_init+3c2b
php_mysqli+1133
php7ts!php_json_parse+2f8b
php7ts!mysqlnd_protocol_payload_decoder_factory_free+439a
php7ts!mysqlnd_protocol_payload_decoder_factory_free+43f7
php7ts!mysqlnd_result_buffered_c_init+2274
php7ts!mysqlnd_result_buffered_c_init+22b1
php7ts!mysqlnd_pfc_free+2d84
php7ts!ecalloc+b9
 
00:00 - 20:0020:00 - 00:00

« first day (3210 days earlier)      last day (1752 days later) »