« first day (3426 days earlier)      last day (1744 days later) » 

00:28
@Sherif first day? I have been using it for 5 years...
@ircmaxell No, I meant on the first day of the market (i.e. Monday)
I guess I should have qualified that with of the week?
 
2 hours later…
02:32
@salathe PING! The doc build is broken. Can you fix it?
Needs a php doc-base/configure.php --enable-xml-details --disable-libxml-check --redirect-stderr-to-stdout --with-lang=en
 
2 hours later…
04:54
meh can't sleep
user11867329
05:27
You guys all AFK?
05:52
morns
06:06
peeks in
Good morning.
 
1 hour later…
07:26
morning
@beberlei how's the things going with attributes? I've seen why you couldn't sleep :P
07:42
@Sherif @salathe and shouldn't we by now clone the doc-base from [email protected]:/doc/base.git?
08:03
@brzuchal code is the first 90% done, it be better to write rfc next
Good morning! Over the weekend I encountered a problem and thought if it warranted a new language feature. Sometimes you have an abstract class with several child implementations, and you want to keep the constructor free for children to implement it.
In other words: you don't want children having to call parent::__construct(). There are some cases though where you also want the abstract parent class to do some setup work which you don't want to bother the child classes with, in essence you'd want a method that's automatically called after an object was contructed (::__constructed ?)
This would of course be a quality-of-life feature for developers, and I know many people oppose to adding core functionality when it can easily be solved in userland. I'm also aware that magic methods are controversial, but they are still the only thing we have.
Though, from a package-maintainer point of view, it would add more flexibility. So I figured I might as well ask the question here. Maybe it's been discussed before?
Hey @BrentRoose: The problem I see is when I explicitly do not want the parent constructor to be called (for reasons) there is no way for me to hinder that. Or we would need a special way to explicitly skip calling this constructor-method.
Or I don't want to call the parents constructor method but the one of the parents parent.... (again: Reasons) IMO using this parent::__construct() makes it explicit that you also want to call the parents method. No magic involved...
Hi! What is the best way to create mutable persistent HashTable in PHP? I want to use it for module globals and curious how it should be done.
gut moaning!
08:21
first sleep() not working ・ *General Issues ・ #79334
@JoeWatkins shared PHP objects are hard to implement indeed ) Need to write a lot of code for low-level initialization of zval for properties, as they are GC-ed during symbol table cleanup procedure, also object->ce pointer is changing between first 2-3 requests, then class_entry became persistent. Property handlers should be reimplemented to perform copying zvals into persistent memory... So, give up that idea
@JoeWatkins Ended with PHP module and shared memory structure in module_entry.globals_ptr
@BrentRoose That is indeed too magical for my taste
Especially when parent::__construct is both more clear and not a lot of work
Also composition > inheritance :P
09:04
Morning
Hello @Tiffany =)
@BrentRoose there is something similar hacklang is solving with attributes. first a Sealed Attribute that allows the parent class to enforce who clients are. second a ConsistentConstruct attribute that requires the signature of each constructor to be the same as parent class:
@beberlei interesting!
I ate so much yesterday evening, I'm not sure I'll be hungry for a couple days
@NikiC Mhhhh, indeed, nothing, thought about a do...while solution, but that wouldn't solve it
09:10
hello
Hàlo!
I've seen some web chats with a PHP backend that can work without JS too
how is it possible to transfer data without using Ajax, websockets or other JavaScript-enabled technologies?
self refreshing iframe?
My only guess is setting the refresh header so that the page gets frequently reloaded
@NikiC Not really uniform, and would still imply a check at each iteration
09:13
I doubt any sane platform does that
exactly, there's probably a better way to do it
Yes. It's called JS :P
can php detect if javascript is enabled?
Stream the response over chunked transfer? :P
@MetaBergman nice
@Washery no
Where is the no JS requirement coming from?
09:15
@MetaBergman a sort of keep-alive connection?
I guess. I've seen some very old CGI chats do things similar to that.
advanced XSS
a.k.a. rendering something like normal?
@JoeWatkins Any idea why an opcode handler would work on 7.0-7.2 and 8.0, but not 7.3 and 7.4? travis-ci.org/nikic/scalar_objects/builds/657654882
It works locally in zts and nts and I can't figure out what the difference is
Brokerssn ・ *General Issues ・ #79335
09:33
if I had to guess, and I have too because I can't reproduce it, then the handler is being invoked and is dispatching early in error
but I don't see how or where and can't reproduce it
	if (!obj || Z_TYPE_P(obj) == IS_OBJECT || Z_TYPE_P(method) != IS_STRING) {
		return ZEND_USER_OPCODE_DISPATCH;
	}

	ce = SCALAR_OBJECTS_G(handlers)[Z_TYPE_P(obj)];
	if (!ce) {
		return ZEND_USER_OPCODE_DISPATCH;
	}
must be something in that ...
@beberlei Can you please check the leak in ext/dom/tests/DOM4_ParentNode_append_with_attributes.phpt ?
you should review that handler against several versions of zend_vm_def.h, from a quick glance you are missing logic like
if ((OP2_TYPE & (IS_VAR|IS_CV)) && Z_ISREF_P(function_name)) {
				function_name = Z_REFVAL_P(function_name);
				if (EXPECTED(Z_TYPE_P(function_name) == IS_STRING)) {
					break;
				}
			} else if (OP2_TYPE == IS_CV && UNEXPECTED(Z_TYPE_P(function_name) == IS_UNDEF)) {
				ZVAL_UNDEFINED_OP2();
				if (UNEXPECTED(EG(exception) != NULL)) {
					FREE_OP1();
					HANDLE_EXCEPTION();
				}
			}
			zend_throw_error(NULL, "Method name must be a string");
			FREE_OP2();
			FREE_OP1();
			HANDLE_EXCEPTION();
might result in early dispatch
I fixed one memory leak, but not sure how to handle this one. It's the hierarchy error.
and there's another block ...
although not in the simple case ...
@JoeWatkins Wouldn't it be reproducible locally then?
09:38
yeah, I'm just thinking out loud, I can't reproduce either ...
It doesn't seem to be due to opcache either
yeah I tried that too
Hm maybe something something hybrid vm. That was introduced in 7.3 I think
cmb
cmb
@NikiC is that perhaps related to Xdebug? PHP 7.2 uses Xdebug 2.6, but 7.3 and 7.4 have 2.9, while master doesn't have Xdebug at all.
that's a promising thought
09:45
@cmb oooh
cmb
cmb
blame Derick :)
@NikiC will do, sorry for causing you work you could have let me the other one. is there a CI build that produces them? i didn't have leaks running with -m
I assume xdebug doesn't respect other people's opcode handlers?
@beberlei USE_ZEND_ALLOC=0 valgrind --leak-checks=full sapi/cli/php ext/dom/tests/DOM4_ParentNode_append_with_attributes.phpt should work
@NikiC Found yet another way: stackoverflow.com/a/60504300/201453 but seems a bit hacky =)
@PatrickAllaert heh, nice
probably gonna break with iterators that don't support rewinding at all ;)
09:50
Might be
Is this bundle any good? humblebundle.com/books/…
I bought it. Some links in one of the books were outdated unfortunately.
@cmb @JoeWatkins It was indeed xdebug: travis-ci.org/nikic/scalar_objects/builds/…
What does it mess up?
Just a memory leak?
@Derick xdebug breaks other extensions that use custom opcode handlers
or at least INIT_METHOD_CALL handlers
09:57
Xdebug overrides it to instrument it - but how would it break other extensions? Because these are not chainable?
As in, they had some "Try this yourself" things with links to a website -- but apparently they replaced that with another course now.
@mega6382 ^
all opcode handlers are chainable
you just have to chain them
I'm pretty sure I do... otherwise it would break everything?
nobody does, including this scalar objects thing
Xdebug uses zend_set_user_opcode_handler
I don't think there is another API?
10:00
I don't see where it does, I don't see the call to get_user_opcode_handler to backup the last call to set_user_opcode_handler
I'm mainly wondering what changed
oh yeah, I don't use _get
Did xdebug not override init_method_call before?
@NikiC I think that's fairly recent, yes
@Derick this results in "otherwise it would break everything" ...
it doesn't play friendly with anything, everybody knows, maybe nobody told you yet ...
10:01
@Derick out of interest, why do you need to overwrite it?
First time I heard of it in 18 years, so it can't be that bad :-)
@NikiC Code coverage
@MetaBergman ok, but beside that, is the technical information up to date and valid?
@Derick But that's not enabled by default ... or is it?
It is, unless you set xdebug.coverage_enable=0
In Xdebug 3, you'd need xdebug.mode=coverage for that to happen though, but that doesn't address the real issue either.
@JoeWatkins In the overridden handlers, I do return ZEND_USER_OPCODE_DISPATCH - I would have thought that by using the API set_user_opcode_handler it would have handled the chaining for me? I'm not sure how to dispatch to the previous handler.
@mega6382 Can't make a judgment call on that yet, I've only had a brief look-through.
10:05
hmm, interesting, thanks for the help
cmb
cmb
There is a "nice" section about replacing opcode handler in the internals book: phpinternalsbook.com/php7/extensions_design/… ;)
@Derick heh Derick, you of all people should know by now that nothing happens automatically when it comes to overriding zend whatever handlers
yeah it doesn't do that, you have to do it manually exactly as you expected zend was doing it - have enough space for user_opcode_handler_t*n and before your call to set_user_opcode_handler in minit do get_user_opcode_handler and call it in place of return _DISPATCH where it's available ...
@cmb nice
@cmb where do those actually get initialized though?
10:15
@cmb That's for something else though, that example?
ah, it's all behind macro magic
oh lol, I see the "TODO" now, nm
I might write that then - adding an item to my todo list.
cmb
cmb
yep, a lot of macro magic in that file. :)
@NikiC How did you reproduce this issue?
@Derick Loading github.com/nikic/scalar_objects together with xdebug
10:17
OK, and running?
> before your call to set_user_opcode_handler in minit do get_user_opcode_handler and call it in place of return _DISPATCH where it's available ...
@JoeWatkins I saw - ta
@Derick and running sapi/cli/php run-tests.php ext/scalar_objects/tests
Do I need to run all the tests?
<?php
class StringHandler {
    public static function length($str) {
        return strlen($str);
    }
}
register_primitive_type_handler('string', 'StringHandler');
var_dump("foo"->length());
@Derick running ^ should do
10:19
perfect
10:41
ext/exif/tests/bug79046.phpt fails on Big endian arch ・ EXIF related ・ #79336
10:55
Morning o/
cmb
cmb
\o
o/
\o
11:12
we always make this pattern
\o
o/

:):):)
optimize FETCH_CONSTANT ・ opcache ・ #79337
fmod() not calculating properly ・ *Math Functions ・ #79338
Ah yes obviously
ThIs iS pLaIN bULlsHiT
11:27
o.O
Reminds me of the YTMND days "This is true lunacy!"
I can see how it's confusing though
Multiple QSECOFR jobs on db2_pconnnect ・ *Database Functions ・ #79339
@heiglandreas Why? You can't push to it.
11:50
@heiglandreas if it's ready for that, sure.
Regardless, the travis job is using my old copy of doc-base that isn't getting updated any more. github.com/php/doc-en/blob/master/.travis.yml#L7
12:44
hfdjd ・ Documentation problem ・ #79340
@NikiC ugg that memory leak you found is something i had in the back of my mind to check the early exits for and forgot bceause i didnt put it into the todolist :( sorry
13:11
Good Morning!
morning
@Sherif Well... you can't push to salathes currently... And the one on git.php.net get's updated every two hours from the SVN repo...
@salathe It's being updated every two hours from the SVN. So I'd say yes: it is ready for that ;-)
@salathe though the changes to use the git-based documentation are currently in a separate branch on the SVN. So those changes need a review IMO before they should be merged into master....
13:48
o/
@NikiC, while somewhat related, I think your fix won't solve issues like:
		use Trait1 {
		    init as private method1trait1;
		}

		use Trait2
		{
		    init as public method1trait2;
		}
Which was what I was trying to fix there
@pmmaga It does fix it by making it an error
The two use blocks are a red herring, that code is equivalent to:
use Trait1, Trait2 {
    init as private method1trait1;
    init as public method1trait2;
}
@JoeWatkins @LeviMorrison @salathe y'all voted no on this Attributes RFC by Dmitry in 2016, do you maybe still know the reason? wiki.php.net/rfc/attributes
@NikiC yeah, I guess it was more of a "I would expect this to work" kind of thing. As the code looks unanmbiguous
@beberlei in the case where an attribute is code, what is passed to userland is an AST representation, which we don't have a good API for ... this makes processing an attribute as near as makes no difference as difficult as parsing out the AST from a doc comment yourself ...
13:58
@JoeWatkins thanks, that is what seems the primary rejection of this RFC
making an execution engine (which is more or less what an AST evaluator is) built in userland a necessity if you want code in attributes made no sense then, and it's make little more sense today even with jit and other improvements in mind ...
would you be more likely to vote yes on a proposal evaluating the expression as constant ast expressions like they are in constant values?
@JoeWatkins Maybe cache these parsed structures in annotation module globals? So annotation info will be reused between requests
not if that places the same restrictions on code attributes as constant expressions ... an expression ought to result in a function closed over the scope is was declared in when accessed from reflection
@lisachenko i think joe refers to something else here, nothing to do with caching parsed structures, dmitrys proposal made ast nodes available to userland, that required evaluation at runtime to make any use
@JoeWatkins so you mean not restriction, but "expansions" in a sense that constant ast expressions import global state?
14:02
@beberlei ok, I see. It is my old dream to have AST API bundled...
@pmmaga It could be allowed if we wanted to change the interpretation of multiple use blocks entirely (i.e. make sure that there are no references to traits in other use blocks etc), but I don't think that's worth the bother.
And well, it would be a larger break, though I have no idea if anyone ever uses more than one use block
@NikiC Yeah, it has the potential to break more stuff.. I agree that it probably isn't worth it. And your fix does forbid it from happening anyway
15:06
We could even take it a step further and forbid multiple use statements. Given that they are treated as one.. It would prevent some confusion
@pmmaga Sounds reasonable per-se, but I'm afraid it would break a lot of code
In particular, I expect that use T1; use T2; instead of use T1, T2; is very common
15:32
How to declare nullable property? The only thing I got to was only helper function to create typed property with long, string, etc. like zend_declare_property_string(semver_ce_ptr, "metadata", sizeof("metadata")-1, "", ZEND_ACC_PUBLIC); ??
In my SemverVersion class properties like major, minor or patch are always long, but from semver pov the metadata and prerelease are optional so I was thinking of declaring them as nullable string properties
I was trying something like that:
	zval property;
	ZVAL_NULL(&property);
	zend_declare_typed_property(
		semver_ce_ptr,
		zend_string_init("prerelease", sizeof("prerelease")-1, 1),
		&property,
		ZEND_ACC_PUBLIC,
		NULL,
		ZEND_TYPE_ALLOW_NULL(ZEND_TYPE_IS_MASK(MAY_BE_STRING))
	);
with no effect
15:46
Hi NiKic, I need your help for paid project, your help would be as guidance to implement a work. Kindly, can u share any way that can show u the project details. Thanks
o_O
smells like spam
the irony writing "introducing sutble bugs due to mistypings" :p
16:19
Anyone aware of PECL projects which install PHP files, documentation, or ini files as part of installation?
I don;t think you can. We ran into that with the mongodb ext, and just used a pecl ext and a composer package
@LeviMorrison couchbase afaik inlines php code and evals it at RINIT :)
Normal make definitely supports this sort of thing, so unless we broke it with PHPisms it's probably a matter of willpower.
Which... is a legitimate reason it's not well-known. I hate how complex autoconf is >.<
@NikiC Look at you! Picking up extra work on the side! chat.stackoverflow.com/transcript/message/48746902#48746902
@Tiffany Sounds exactly like emails I read.
Good morning sir, I has great opportunity for you that will change the life. Change is the world! Please send info for the contact so you be rich like a me.
16:34
it's-a me, mario!
lol
@Ekin Tell @PeeHaa to create a youTube channel for his mixes so I can add them to my programming playlist. Seriously, listening to "Just Alone" again right now.
it's indeed a good one :-)
I am a nigerian prince but I have been forced on the run. I have 5,000 high quality php-src pull requests on my hard drive and need help transferring them so the government cannot take them. If you agree to send me your git.php.net private certificate we have a great opportunity for profit and I will allow you to claim credit for 20% of them.
11
@MarkR Hmm... the grammar looks good... this one might be for reals!
tOtAlLy nOt RePlaCiNg MySqLi_CoNnEcT wItH a VeRsIoN tHaT sEnDs Ur PaSsWoRdS
16:40
That had to take a minute to type that. =D
Longer than I'd care to admit.
17:02
@StatikStasis you've seen these, right? youtube.com/…
17:14
@DaveRandom wat
@NikiC if i have a symbol "Foo" in the AST, when I resolve it with zend_resolve_class_name, does that only resolve classes or also "use const" and "use function" imports?
cmb
cmb
@LeviMorrison Note, though, that there is neither pecl install nor make on Windows, so for portable PECL packages that won't work.
@cmb Sorry, but I don't care, lol.
cmb
cmb
fair enough :)
I wish totally portable software was easier, but until recently Windows almost seemed anti-open-source, so it wasn't a viable platform for people like me.
They are turning a new leaf, which is great.
17:31
I've never had a problem with running open source on windows, for things designed for Windows. But of course if it's a toolkit for a completely foreign API then sure it wont work
@beberlei That is a bad idea.
Just rewrite it all in Go ;-)
i know, hence the smiling emoji
haha, in the honeymoon phase I see :p
@beberlei classes only
There are separate functions for const / function
Also, what the F is wrong with people? bugs.php.net/bug.php?id=79338
Usually? Too many things to enumerate.
> Get off my lawn.
17:41
hah
@Tiffany I had heard about these but I had not watched any yet. That's funny.
@NikiC wondering if i could also resolve attribute names against constants and check they exist, otherwise error. then REflectionAttribute::getAsObject would throw in this case. could help with usecases where you only need to "tag" the declaration and requiring an extra class seems pointless
$ perl -e 'use POSIX (); print POSIX::fmod(75.6, 25.2);'
25.2
MySQL does return 0 though
@beberlei As I said before, I think there's more value in having a uniform syntax/mechanism, even if it is a bit more complicated in some cases
Even if you go by your examples, deprecated already accepts an optional argument
hah, right
17:47
And rather than <<jit>> and <<nojit>> you might want <<jit(true)>> and <<jit(false)>> (probably with true as a default)
cmb
cmb
18:09
@Derick PHP too: <https://3v4l.org/UHHZQ>
Unrelated point of order: I just miss-typed a URL into php.net and noticed it saying it was running NGINX 1.14 which is getting on 15 months old now, I think there's been a few CVEs patched since then too.
@cmb bcmod isn't c-mod
cmb
cmb
I know. Finally, it all depends on the precision/rounding.
@MarkR consider to send mail to systems@
I thought that was Derick xD ... ok will do
cmb
cmb
systems@ is rather Sascha :)
@NikiC IDK, but ziggi is not unique, see bugs.php.net/78073 :(
18:32
@salathe I don't remember seeing any posts from you on get_debug_type, might one enquire what your opposition is?
(I don't know if asking directly is the "proper" thing to do, but I'm interested in the feedback)
18:55
At what point is PG(error_log) initialized, as in, what part of the startup process?
19:45
> It is possible to use the same attribute name more than once on the same declaration. This
is one change to the previous Attributes RFC where this was not possible.
But it doesn't explain the behavior when this happens.
@LeviMorrison Reflection*::getAttributes() returns a list of ReflectionAttribute, each has getName(), which can occur multiple times. what you do with it is userland concern
So it's not associated by name then?
I could reference the "Reflection" section where its explained
it is associated by name on the engine level, so that extensions can do a simple zend_hash_Str_exists() (explained a little lower in the Use Cases for Extensions section)
I'd probably do something like:

getAttributesByName($name): AttributeSet|null
Although it is a bit... XMLish
is getAttributes(string $name = null); not good "enough"? adding a second method seems overkill, the return value stays exactly the same. AttributeSet would bring nothing new to the table over a array list of things or?
i don't want to blow this up to have $n new things, it already has too much new things in reflection imho :)
19:51
Maybe, my brain is wonky tonight. Is there a method to return an array of all of the attributes matching a given name?
yes getAttributes(My\Attributes\SingleValue::class) still returns ReflectionAttribute[]
maybe there is a use case for an api that returns exactly one and if there are more throws?
hm no, that can be built on top by userland
Ah, in that case my apologies, your setup works as i'd think it would
Although I'm less sold on the idea of requiring a class
But it wouldnt be the end of the world
@LeviMorrison i see nice use cases injecting \Tideways\Attribute\Instrumented during ast processing to tag functions and checking that in zend_execute or opcode handlers, not sure how much of this would still be needed after instrumentation API, also the use case of disabling jit for instrumented functions
@MarkR it solves the issue of typos in attributes and nothing happening, i agree though, this is probably the most controversial thing
i feel annotations is like the democratic primary, 6 contenders and in the end nobody gets to 66% :p
Think you missed a 0 off of the number of contenders
Looks alright to me, my only comment would be that I think the use of repeated << >> could be something of an eyesore.
<<
MyClass(value);
SomeTag(other);
Some\Other\Tag(1234);
Some\Other\Tag(5678);
>>

Maybe? *just throwing out ideas*
^ probably not worth it in the grand scheme of things, I don't assume there'll be a lot
(nm I see you already have it with , separated, I was looking for ;) (I'm going to stop filling it with chat now)
20:10
@MarkR thats both supported <<MyClass(value), SomeTag(other), Some\Other\Tag(1234), ...>>
or each with their <<>>
I'm missing something... I had to manually renew my LE cert on my VPS, I tried running one of my domains through ssl labs which is complaining that my server has TLS 1.0 and TLS 1.1 enabled, but in my nginx.conf file, I have ssl_protocols TLSv1.2;, what gives?
thats something i haven't changed from the existing RFC/patch, but maybe standardization to one would be better
yeah, received an email that it was revoked because of a bug
but if I do a dry run of auto-renew, it errors... not sure what that's about 😐 ... but more concerned about handshaking working over TLS 1.0 and 1.1
That's going to be a fun one considering all my stuff is on kubernetes using cert manager
20:22
/me just went through about 5k lines of code... to find out where and how a single inherited prop that I have to work on was set... and it was all the way up in the inheritance tree
D:
@MarkR do you baby-talk to your cat?
lol
(cat was meowing from the other end of my apartment, then got closer, continued to meow repeatedly, until I responded to her)
Surprised there is so much pushback against function/method/expression support for constants/parameters/etc. Seemed a pretty arbitrary distinction to me
@ircmaxell As I said on list, I think the push-back is mainly because the poll doesn't make a good case for them :)
I can just about get behind them being used for class constants, mainly because I think doing constant maths-like equations in constants would be fine. But in parameters I think it gives a different impression, almost as if it would run each time
@NikiC even still, I'd expect it to be a bit more even than it is
@MarkR it would run each time
> For parameter defaults, the proposed behavior would be that default expressions containing calls would get evaluated every time the parameter default was used.
from the RFC itself
20:27
Then hellllll naw
Arbitrary restrictions are arbitrary
@MarkR just noticed ssl_protocols TLSv1 TLSv1.1 TLSv1.2; inside /etc/letsencrypt/options-ssl-nginx.conf, so may want to watch out for that
nginx-ingress overrides them for me but i'll have to go through some other sites, blurgh wasn't p lanning no nginx killing about 3 trillion certs
it's enabling DES ciphers, wtf I guess SSL Labs isn't picking those up...?
yeah, why not let people shot themselve sin the foot, php has enough ways to do this, it is arbitrary to limit it in some places :) i agree nikis examples look so much more useful, especially the public $foo = new Foo(); is something needed
20:45
wow what a monumental cluster**** this LE revokation is
21:36
Indeed...
I'm going to leave it until tomorrow to fix my server, hopefully by then most of the issues are cleared up
Not like my server is used for much of anything, so it's not hurting me
Me, not so much, I just had to take our production servers down for an hour while I tried to figure it out
22:11
Erf, how are you meant to package a PECL release?
manually
what do I need?
package.xml
Cause running pear package doesn't really help to tell me what to do
any doc on how to write it?
i always copy from others, xdebug for example
22:14
Okay lol lovely process
@MarkR what do you need to figure out?
@Tiffany The Jetstack cert-manager for K8S + NGINX is a containerised version that hooks into kubernetes API, there is no --force-renew
:\
@MarkR I'm guessing you've seen this? github.com/jetstack/cert-manager/issues/2641
Yeah, that's kinda what I ended up using once I'd finished figuring out why it was conflicting an old version with the new one
annotation pains, and not the kind beberl is working on
22:33
@Girgias A correct-ish package.xml, then pear package. Any particular thing you want to know about package.xml?
Well I just need to write one for my CSV extension
What should be included in it?
I'm not particularly well-versed on what makes one good or bad, but there's one you can look at :)
I imagine there is no script which can be used to generate part of it for the files?
cmb
cmb
pro tip: don't forget to consult the DTD at pear.php.net/dtd/package-1.0 ;)
Not that I am aware of.
22:38
hmmm xml, reminds me I need to go update php-meta.markrandall.uk/releases
@cmb I know you are joking, but here's a working link: pear.php.net/dtd/package-2.0.xsd
cmb
cmb
cool, thanks! :)
I consulted it today when figuring out what valid values are for release.
cmb
cmb
Indeed, there is no RC! :(
22:58
Ah man, I was hoping you could do a <phprelease> and <extsrcrelease> in the same package.xml.
The schema allows it, but the tool does not.
Do you need a changelog section when it's the first release?
Wait should I include tests files as well in the package.xml ??
23:25
@Girgias I say yes: this way you can test that the installation is working as expected.
At least, that's the theory.
At least as of yet, I haven't found out how to install them or get pecl to run them or anything.
Welp
It's actually what I'm looking into right now, so hopefully I'll have an answer soon.
Maybe in the next release
Ping me when you do :D
$ pecl run-tests package.xml
Running 0 tests
TOTAL TIME: 00:00
0 PASSED TESTS
0 SKIPPED TESTS
I was thinking maybe I can make my CI upload the tarball to PECL automatically
23:29
That's where I'm at.
But I don't think I can :|
what authentication does it need?
Login, manual upload then confirming the release
You can probably automate it as long as you don't need MFA?
Or just find out where the PECL website source code is and submit a PR to add an automation endpoint
Something something, I don't want to look into that code base, something, docs would also be nice, something, but for how rarely I'm going to use it ...
stares
cmb
cmb
huh, CSV-0.3.0 is stable? :)
All releases are "stable", right?
Well it is, technically following semver
Or did I mess up my semver thing?
cmb
cmb
well, I think there are QA releases
23:45
"snapshot", "devel", "alpha", "beta", "stable"
Cause IIRC 0.x is still "stable" just you don't provide any BC guarantee between 0.x and 0.(x+1)
cmb
cmb
"Major version zero (0.y.z) is for initial development. Anything MAY change at any time. The public API SHOULD NOT be considered stable."
oups
Welp I'll fix it for next time
cmb
cmb
no problem
PECL release process is adventurous, IMO
yes
I have a text file which compiles a bunch of stuff that I need to know/lerned to participate in PHP internals dev
Really should try to make an article out of that file
23:50
We all should :)
cmb
cmb
Maybe it would even be better to contribute to phpinternalsbook.com?
Well, haven't figured out how to hook up the tests yet, but I figured out how to install files :)
I struggled constantly (and to some extent still do) with how there's so much outdated information about there on internals. Mainly aimed at 5.x
I'm literally learning how pecl works by reading schema, looking at other exts, and running pecl commands. That's basically PHP's documentation philosophy: read the source, look at other works.
@cmb does phpinternalsbook has a section about PECL?
And most of the stuff is already in it
It's more a handy memo kinda list

« first day (3426 days earlier)      last day (1744 days later) »