i am torn by the namespace rfc failing implications on PhpAttribute. Keep on renaming to Attribute in global namespace? Or is a specific feature better suited to get a namespace like Attributes\Attribute?
folks, natural order means: 1- order that feels natural to humans 2- order that is intrinsic to some particular data type, because math (small than, equal, greter than), or convention (ie alphabet is a conventional way to order letters)
@cmb Not strictly true, there is a @voting group for wiki users who don't have VCS accounts. That said, I've no clue of when the last time was that someone was added to that group.
@cmb my end goal would be not to end up with "PhpAttribute" but either "Attribute" or "Attributes\Attribute", but I don't see how thats going to work out process wise :D
@Derick Not purely by virtue of being an RFC author. To further muddy the waters, RFC authors automatically count as +1 (according to the voting RFC) if they can vote (but chose not to) -- though I don't think that's ever been taken into account.
@beberlei If we got away with stopping folks from using "Object" (in 7.2; even inside namespaces) then I really don't see how "Attribute" can be refused (in the global namespace).
I agree that the PHP namespace should be used, but for packages, not for core stuff. I would still keep main interfaces and types in the root namespace, like Iterator, Attribute. Instead I would progressively move packages in the PHP namespace, like PHP\MySQLi\MySQLiResult
hm anyone seen this kind of error before? We precompile the tideways binary, so regularly this is a ZTS vs NTS failure, but for this customer the so is the right one: PHP Warning: PHP Startup: Unable to load dynamic library tideways.so: undefined symbol: zend_empty_string in Unknown on line 0
@Wes yeah i sort of agree specifically, because then you can skip the import for global attributes and just do <<\Deprecated>>
i can't find any precedent of php having to use the php prefix. there are some php_s but it's actually stuff that refers to php, like php_strip_whitespace
<<\Deprecated>> at least would allow to show internal attributes in a short way inside namespaced code without also requiring to show the import statement. that is a documentation win
@IluTov Sure, if you want a short email thread of folks arguing between themselves on who gets to vote, followed quickly by total silence and no action on your request. :P
I'd suggest getting a php.net VCS account instead, if you're planning on being a longer term contributor to the project. A side-effect/benefit of that is you get to vote.
@NikiC what? you mean that the people who do the working maintaining PHP are just going to decide amongst themselves the best way to maintain it? How are people on Reddit supposed to have their voices heard !⸮
@TheodoreBrown "but before I bring it to the mailing list I'm curious what other voters think about including support for nested attributes." Why do you write that, and then not leave a day to people to say anything?
I would have advised you to have the RFC just be i) @@ is better for nesting ii) A small section about your personal preference for that syntax. The rest of the RFC is picking a fight.....
As such, I'm not sure it makes sense to deprecate it
Generally no longer convinced we should be deprecating any of get_class(), get_parent_class(), get_called_class() without args. They do either have about 200-400 uses each in the top 2k composer packages
@NikiC yes, 'b' is default on Windows as of PHP 5.0.0: svn.php.net/viewvc?view=revision&revision=350008. Maybe docs should be simplified further (there's barely the need for CRLF on Windows nowadays; even Notepad understand LF since Windows 10 1809).
@beberlei @TheodoreBrown What do you think about making #[ a symbol? It looks better than @@ (IMO) and there are also other languages that use it. Both are breaking.
@NikiC I'm not super convinced about the parent version either, but can't you get the same behaviour by doing get_parent_class($this)? And I would still argue that the get_class() version without argument is pretty confusing in it's behaviour IMHO
@TheodoreBrown More verbose how? because of the closing bracket? It's also less exotic. I think consistency with other languages is extremely important. If you asked 10 people what the @@ symbol does they probably couldn't tell you. #[] is more obvious I think. But hey, it's your RFC, I just wanted to mention that this was also a possibility :)
@salathe The best one :P (everybody knows I'm a Rust fanboy :D) It's also pretty close to the usual [] but I realize the same could be said for @@
But as I've mentioned, I realize this is all personal preference. Some people will prefer @@, some #[], I just wanted to mention both are a possibility.
I usually use the Sandisk Ultra for general moving things about although they're a bit long for my liking so more chance of damage if hit.
Forgive me if I'm talking out my ass, but last year I remember reading about a bot that scanned github repos for vulns and automatically submitted PRs with fixes in (I think it was just catching buffer overflows where it could determine the buffer length).
If get_class() is in heavy use, don't you already have 95% of the tooling that would be require to automate the submission of a few thousand PRs?
@kooldev @NikiC ah ok so the amendments RFC has one open issue I was reminded of :) Should we go <<RepeatableAttribute>> or <<Attribute($target, $flags)>> where $flags could be Attribute::IS_REPEATABLE?
its funny how you add an open issue to the RFC, and nobody discusses that in the mailing list, but everything else ;
hm right, we dont need to seperate targets from other things. it feels a bit weird, because targets are a set of values on their own, and repeatable is osmething different, but essentially they are all flags
@beberlei I think switching to one flags argument only makes sense at this point. No need to remember argument order and maybe some day there will be more flags.
@NikiC I've mentioned one time if we should maybe deprecated switch ($a) { case $b; echo 'foo'; } (the semicolon after case) for no other reason than it being weird.
I don't have much to say about the other ones as I don't use most of them :)
> In the meantime, I have created a tool called jc that converts the output of dozens of GNU and non-GNU commands and configuration files to JSON. blog.kellybrazil.com/2019/11/26/…
@Wes If I was creating videos to upload I would normalize everything. If I am doing a live video I will monitor the volume on another PC/phone and make adjustments. In the beginning of a new game I will listen to the feed later to make adjustment or make adjustments based on user feedback.
@PeeHaa LOL! Sorry, man. I've been away for a couple of days. My son graduated from high school. I will go check it out now.
or is there a way I can have configure/render spit out a log?
hmm
I kept getting validation errors while trying to tweak the <table> and <title> around, so I decided to remove most of the changes and add them back piece by piece to see where it flops, but if it gives a segfault on a clean build ... (on the other hand, even though configure threw a segfault, rendering it worked fine...)
I believe the message about 'expected' segfaults should probably be removed, as it was put there ages ago when there were more known segfaults happening. But most of them should have been fixed now.
Checking whether to enable detailed error reporting (may segfault)... yes
Checking whether to optimize out the DTD (performance gain, but segfaults)... yes
I love those bits :)
Did you try running configure.php with --disable-segfault-error @Tiffany ?
I added all the changes back, ran configure, it complained about XML validation errors, suggested I run --enable-xml-details, so I did... and it segfaults the next time I run configure...yay
going to turn off opcache and see if that makes any difference
@Siva have you read the comment on your question? you need to see what the error message is... is it possible your script is unable to write to the file due to permissions or some other extenuating circumstance? that is something you need to figure out. (sorry for double ping, typo was bothering me)
@salathe how can I display a title, or something similar to a title before a table? I tried replicating what was on functions.xml, without adding an extra <sect> tag, which it doesn't like... I'm thinking of separating my changes in its own sect tag, but I'm not sure if that's semantic...
("which it doesn't like" = I get validation errors when running configure)
@Danack I've put the strict operators RFC in markdown and applied all remarks. I really appreciate it if you take a look and possibly create a PR. github.com/jasny/php-rfc-strict-operators
I've reduced the text and example from the motivation.
@Tiffany is this for the typed class/object properties page? If so, that page would benefit from some restructuring to be more like functions.xml, with a bunch of sections.
@NikiC I'm still struggling with `==` and `!=`. I've changed to RFC so they only support int and float (similar to `>`, `<`, `<=>`). However, I'm not really happy about that approach. Do you have any suggestions/alternatives? https://github.com/jasny/php-rfc-strict-operators/issues/2
@Tiffany I'm not sure about the backtrace... since it successfully validated and created the .manual.xml file, I wouldn't worry too much. Your changes look okay, we can worry about restructuring it / splitting the page into sections separately.
@cmb eh, that's complicated (unless it just returns nNextFreeElement-1 internally ... threading it through the internal APIs is what would make this ugly)
@salathe should documentation be formatted according to American English or British English?
> Class member variables are called "properties". You may also see them referred to using other terms such as "attributes" or "fields", but for the purposes of this reference we will use "properties".
punctuation should be inside the quote marks, if it's supposed to be formatted according to American English
unless the quote marks are changed to a tag like <literal> or something
@Tiffany I'm not sure we've ever stipulated one English or another; so long as it's consistent within a page I guess. Also, prefer <emphasis> rather than quotes.
@Tiffany I would argue for "technical" English (which I made up, if there is such a thing then it's coincidence) where literal terms never have extraneous punctuation in them, as in technical contexts those punctuation bits may mean something.
just want to verify - if I want to add <sect2> or <sect3> tags, <sect2> must be inside a <sect1> tag, and <sect3> must be inside <sect2>? russiandoll.gif
I'm trying to upload product to my PHP upload system, that includes multiple variables, images among them.
I'm using ajax function to transfer string variables and newForm() (that related to images fetched from input[type="file"]). The main goal is to upload the image and strings in upload.php f...
@NikiC thank you - it wouldn't have happened in this detail without @kooldev - not much has changed from the outside since my prototype 2 month ago, but the current code is like, completly new :P
I'm fine with HTML and PHP in the same file, but not mixed, meaning some PHP, then HTML, then PHP, then HTML. No, that's crap. But for simple things having a single PHP block at the top and a single HTML block at the bottom is fine. No need to make things harder than they need to be.
(I'm talking very simple things, one page websites like a personal website, not an SPA)
I did split stuff into classes and into other files before, but my whole rendering logic and form defaults is in my index.php, still less than 300 lines though
@LeviMorrison I'm the same way. I dislike pages that go in and out of it haphazardly all through the php file.
It's a jumbled mess.
@PeeHaa Some really good tracks on this: youtube.com/watch?v=j1F5dLm8bxk //Cc: @MarkR because we have similar tastes (it seems) and you may like this too.
@MarkR I would say 90% of the Trance album playlists on YouTube have some female on them and in some cases could be deemed NSFW-ish. I always open up a blank tab while listening to them in case I have to hover over Google Chrome in the taskbar I don't want someone thinking "...what is he watching...?"
I want to explain the issue with <<>> syntax and nested attributes better for Rowan. Is there a good example to use of why this doesn't work? @beberlei @kooldev @NikiC
Grouped attributes in a nested attribute wouldn't make sense, but couldn't that just be disallowed?
i find @@ equally ugly tbh, lets say a closure, you have $foo = @@Attr function () {} - without a terminating symbol this could mislead in interpretation
at least <<>> cannot be confused for something else, like error supression magic
@beberlei Well, it can potentially be confused with shift tokens. I guess both shift tokens and error suppression aren't very common in modern PHP code, though.
I'm using laravel and am trying to do an IF statement which returns different views based on the data inside of a table, my instance I've got a messaging dashboard and have two different times: Messagesin & Messagesout but the views need to be different. Anyone have an idea of how to best do it in the controller?