« first day (3737 days earlier)      last day (1202 days later) » 

12:18 AM
@Trowski When from Wed-Fri works best? I'm in the GMT timezone?
 
Wes
1:03 AM
\o
 
 
2 hours later…
3:26 AM
My first major project at my still relatively new job has a deadline of tomorrow and I'm about 90% positive I'll make it, and I'm pretty fucking excited.
 
 
2 hours later…
5:16 AM
@Derick Morning preferred, though I can probably make anytime during the day work. I'm in GMT-6, so after 15:00 GMT.
 
 
1 hour later…
6:33 AM
@DaveRandom Basically the first idea was to create an OOP Interface and to get rid of having to pass the resources.
 
7:17 AM
morn
 
>Support group for those afflicted with PHP.

Excellent, count on me for the _afflicted_, or even _harmed_, part :P
 
Wes
#brohug
 
7:35 AM
guys, when a task (in bugs.php.net) it's assigned, isn't helpful to work on? right?
 
morns
 
8:01 AM
@BruceStackOverFlow depends, if someone assigned it to themselves they probably (want to) work on it
@BruceStackOverFlow if someone else assigned it to them it might simply mean they hope that person will look at it
 
@Danack thanks
@Tiffany congrats. how are you finding the job overall? is it what you expected? better? worse?
 
@Tiffany Grewat! Congratulations on that!
 
8:52 AM
!!version
Aw, Jeeves was deprecated?
 
 
1 hour later…
10:17 AM
Good morning.
 
10:53 AM
@Derick It might be possible that @beberlei is interested in the interview :)
 
11:16 AM
@Sjon Would it possible for you to add the enum branch to 3v4l.org? github.com/php/php-src/pull/6489 @IMSoP has suggested that a few days ago. Would make testing for people on the ML much easier. I'd still like to fix a couple of bugs first though.
 
11:27 AM
 
doesn't NYtimes fact-check their stories? What a mess.
 
@Trowski Wed 13th at 1500 or 1530 GMT?
 
@Jimbo yo, long time no see.
 
@NikiC Is there any reason why it would make sense to scan an op array to see if there are IS_CV op type/variables if I've already looked at all the compiled vars from the op_array? (through ->last_var) ?
 
@Derick I guess there could be compiled vars that aren't actually used. But not the other way around
 
11:38 AM
That's what I figured - thanks. /me deletes some more code.

And @NikiC now that I have you, can I book you for a podcast recording ? :-)
 
@Derick Hum, which ones do we have to talk about?
 
restrict globals, serializable removal, and unpacking string keys
 
12:01 PM
@IluTov yeah, sure. Let me know when it's ready and I can deploy it for you
 
@Sjon Awesome, thanks :)
 
12:36 PM
anyone familiar with nikic/PHP-Parser, $this->di->get('config')['fileStorage'];How can I access fileStorage, I have access the to the MethodCall node, get and I can access the args, 'config' but I can't see the ending array at all..
 
12:46 PM
Huh, phpize.bat on windows doesn't seem to like being in/targeting a directory with spaces?
Input Error: Can not find script file "C:\Program".
Error generating configure script, configure script was not copied
 
cmb
@Sean yes; that shouldn't be hard to fix, but there may be other issues with such paths
 
1:02 PM
Morning, all!
 
Hey there :)
 
@Sean just put it in a directory with no spaces
mklink /D C:\php "C:\Program Files\PHP" if you want
 
1:32 PM
@DaveRandom Yeah that solved it, moved it to \php-dev\8.0.1-ts :D Hitting my face against configure.bat, is there a recommended VS version to build on?
VS 2019 x64 - "parallel\configure.js(3345, 2) Microsoft JScript runtime error: Object doesn't support this property or method"
Not sure if it's an issue trying to build parallel on 8 or an issue with VS
var major = ver.substr(0, 2);
 
cmb
@Sean PHP 8.0 should be built with VS 2019. It seems that parallel is not ready for PHP 8, though: github.com/krakjoe/parallel/commit/…
 
Oh, PEBCAK, it's looking for link but I think my linux utils are screwing things up
 
2:20 PM
What mc would it be looking for? Besides midnight commander lol
 
cmb
that's the "message compiler"
 
Ah, ta!
 
2:34 PM
Cool, well configure did something, but flagged --enable-parallel as an invalid argument.
 
did you buildconf?
actually, what are you doing? are you building php or are you building an ext with phpize?
 
Ultimately trying to do the latter, and there's no buildconf, just phpize.bat
 
2:49 PM
ah, well firstly it's --with-parallel
ARG_WITH vs ARG_ENABLE
 
Ah man, facepalm. Still, progress. Missing pthread.h, time to go for another dive.
 
you will most likely want to get pthreads from wherever that lives, put it in another path with no spaces in it, and tell php where it is with --with-parallel=C:\path\to\dir
I don't know if I have ever built an extension like that on windows
actually I will have done at some point but it was certainly a very long time ago and I don't remember any specifics about it
you need to point the build process at the headers and the library file, you will put the dll probably just in the root dir of your PHP install
 
3:05 PM
Enabling extension C:\php-dev\8.0.1-ts\custom-extensions\parallel [shared] \o/
 
cmb
@DaveRandom you can get dependency libs from windows.php.net/downloads/pecl/deps, and just put them in ..\deps (relative to the build dir); these should be detected by default
 
Weird, complaining about malloc.h, thought I'd have that with the C runtime library
 
cmb
3:32 PM
@Sean the CRT doesn't have any header files
 
@KerrialBeckettNewham I've not used it, so might be wrong, but as far as I know, that ['fileStorage'] isn't part of the method call as far as PHP's concerned, so you presumably need to look a level up the tree
 
@IMSoP Will give it a go, thanks
 
@cmb Yeah, think I was being dumb not trying to compile in the VS Dev Command Prompt. Next hurdle comes from pthreads lol
 
in the same way as if it was $this->di->get('config') + 42 - the whole of $this->di->get('config') is one whole operand
anyone been making changes to the php.net styles recently? the search results page is all messed up: php.net/results.php?q=test&l=en&p=all
 
Took the pthreads from the pecl deps link above, progressed a bit further. link.exe bailed this time. no argument specified with option /libpath

This is actually a pretty fun puzzle, trying to solve all this stuff :V Thanks for your help by the way, really appreciated
 
3:39 PM
not sure about that one I'm afraid ^
 
cmb
@Sean you should build from phpsdk-vs16-x64.bat (from github.com/microsoft/php-sdk-binary-tools)
see also github.com/krakjoe/parallel/blob/develop/.appveyor.yml for a fully automated "script"
 
guys PHP doesn't support overloading right? what meanss this
https://www.php.net/manual/en/dateperiod.construct.php ?
 
LDFLAGS_PARALLEL=/libpath:"" seems to be the problem
 
cmb
@BruceStackOverFlow this is just for clarity; that constructor dispatches internally according to the given arguments
 
@cmb I not understood :-(
 
cmb
3:53 PM
It's a bit like having something like:
function foo(mixed $arg) {
    if (is_array($arg)) {
        // do something
    } elseif (is_string($arg)) {
        // do something else
    }
}
 
@cmb Perfect:+1
 
4:26 PM
Ah, turns out I've tried this before. Parallel on 7.4 doesn't work with amp's Thread, hence why I'm pinning at 7.2, for pthreads
 
4:43 PM
Though ripping the code out of Thread into its own file and swapping it for Parallel actually seems to have provisionally worked. Think I've just been hesitant to put it into another file.
 
Hi, I am trying to import my database into another computer via PHP my admin
I am getting this error ----> Unknown collation: 'utf8mb4_0900_ai_ci'
 
Are your MySQL versions the same?
 
I went through some answers and didn't find a proper solution.
@Sean Not sure yet.
I'll check it out. Propably google it
 
Would recommend checking that first, sounds like you're trying to migrate from a newer version to an older one which is missing that collation
 
@Sean Ok. I'll check it out. But I recently exported another database doing a different function to another computer on which I did not make any changes. It worked fine
 
4:51 PM
@Derick 1530
 
@Sean I am using AMMPS on my machine where the SQL version is 8.0.18 and in that production server the version is 10.3.27
wait a second!!
 
@RifkyNiyas that collation was added (and made the default) in MySQL 8.0; compare dev.mysql.com/doc/refman/5.7/en/charset-charsets.html and dev.mysql.com/doc/refman/8.0/en/charset-charsets.html
 
in the production server its showing as MariaDB for server type!!
 
cmb
@RifkyNiyas this is likely MariaDB 10.3.27, not MySQL 10.3.27
 
4:58 PM
@cmb aah yes. exactly
how can I switch to MYSQL in the production server? I am using a shared hosting
 
cmb
likely you can't
 
@Sean What? 7.4 works with ext-parallel.
 
I am pretty unused to production servers and same like the last time, created the database through MYSQL database and how did it create a MariaDB database?
 
@RifkyNiyas MySQL and MariaDB aren't things you "create", they're things you install; if you've just bought some hosting package, it's the software they've included in the package
 
@Trowski Yeah, indeed it does! Amp\Parallel's Thread uses ext-pthreads, which was kicked to the curb, that's what's not supported in 7.4. Swapping Thread out with Parallel, which does use ext-parallel does work. Just needed to refactor a bunch of code.
 
5:03 PM
@IMSoP oh! ok. I'll check out that
 
@Sean Ah, yes, if you were specifically using Thread then you'll have to change a few things.
 
Ultimately I wanted to try and get it running on 8 (hence all the faff earlier with trying to build from source), but it's still a success that I've been able to push past 7.2
 
If it works in 7.4 I think 8 should be fine.
 
But a kind of confusion I have is how did a database was created on MariaDB when I create it using the MYSQL wizard in cpanel?
 
To be honest, I've really only tested Amp v3 libs on 8 :-P
 
5:05 PM
@RifkyNiyas MariaDB and MySQL are 90+% compatible, so most tools don't bother specialising; the heading on the page may have said "MySQL", but it was connecting to a MariaDB server in the background
CPanel is a generic tool that a lot of cheap hosts don't spend much time setting up
 
v3? Ooooo!
 
@IMSoP ooh!!!
 
@RifkyNiyas a sensible approach is often to decide where your production code's going to be hosted first, find out what software that hosting supports, and then install that software locally to test on
that way you get fewer surprises when moving from one to the other
 
@IMSoP ok
Now I am using the stellar hosting plans of namecheap and here is the link namecheap.com/hosting/shared
I have previously worked with the stellar hosting and I have got the MYSQL as the server engine ago.
is there any ways to check the database engines in that plan?
 
@NikiC Now $GLOBALS is no longer registered as a variable in user land, how can I still get access to it from an extension? (Xdebug reads the GLOBALS zval array in some of its tests, and to show variables in PhpStorm)
@Trowski OK, Wednesday the 13th at 15:30 GMT. I'll email you on Monday about it
 
5:18 PM
@Derick Sounds good. Audio only, yes?
 
@Derick &EG(symbol_table)
 
@RifkyNiyas rather unhelpfully, under "Databases Features" it says you get "50 MySQL Databases", but under "Server Features", they say you actually get "MariaDB 10.X.X "
 
@Trowski Yes. ALthough I will use video chat software (whereby.com) to do the actual interaction.
 
@Trowski They also only worked on 8, no?
 
@NikiC Uh, OK. I thought that was the local symbol table?
 
5:21 PM
@Derick Ok, but I won't worry then about lighting, etc.
 
Right, no need to worry about that. My email will have audio suggestions/tricks though.
 
@IMSoP oops. thanks for this info. I was unable to notice that
 
for the price of those plans, they probably don't pay anyone to proofread that page very often
 
@kelunik I meant as opposed to testing Amp v2 on 8.
 
@Derick nah that's the global one. Local is somewhere in execute_data
 
5:24 PM
@kelunik Would you like to join @Trowski and me for the podcast recording on Fibers next Wed 15:30 GMT?
@NikiC cheers
 
Wait… that's totally not true. I'm running a production server with 8 using Amp v2.
I guess I decided to do it in production :-P
 
@NikiC The first thing you broke in Xdebug('s tests) for PHP 8.1! Congrats :-D
 
Cannot install via Pecl in PHP 8.0.1 due to unsupported 'asm goto' ・ PECL ・ #80607
 
@RifkyNiyas looks like they switched from MySQL to MariaDB in 2016: namecheap.com/blog/the-best-hosting-gets-even-better so if you had an account before that, it would indeed have been actual MySQL
 
5:37 PM
Hey, what does it mean: Your Composer dependencies require the following PHP extensions to be installed: Phalcon it's not mentioned at all in my composer.json..is this a global thing?
 
Once of your dependencies depend on it
 
@PeeHaa not in the project composer.json or lock
 
@KerrialBeckettNewham He meant "One [or some]" not 'Once'.
 
@Tpojka my response still stands :) I have 2 dependencies, neither require Phalcon.
 
composer why phalcon
(Or possibly ext-phalcon, not sure for extensions.)
 
5:46 PM
@KerrialBeckettNewham ok
 
@KerrialBeckettNewham After install, update? After composer du?
 
@Crell I installed Phalcon globally for a different project. But the project I'm in now, doesn't use Phalcon at all.
 
@KerrialBeckettNewham I dunno. I've never used it.
 
@Crell my advice, don't :P
 
:-)
 
6:08 PM
Phalcon seems an odd thing to be a non-direct dependency, as it's a full framework; possibly just accidentally listed somewhere?
 
@IMSoP ok
 
or perhaps you're accidentally using a Phalcon-based tool without realising it, and didn't notice because your dev environment has it installed
but composer why ext-phalcon should tell you
 
@IMSoP Could not find package "ext-phalcon" in your project
 
Have you used Xampp or WAMPS? I am using Ammps for my local host and as said there is difference in databases. does Xampp use Maria DB?
 
in the same place you saw the error message?
 
6:11 PM
@IMSoP yes
 
that's very peculiar then
is your composer up-to-date? Composer 2 came out not long ago and is sometimes more helpful in its error messages
run composer --version, and if it's not 2.0, try composer self-update or sudo $(which composer) self-update
 
@IMSoP Composer version 2.0.8 2020-12-03 17:20:38
 
oh; dunno then, sorry
maybe grep -r phalcon and see if you can find a reference to it somewhere?
 
@IMSoP no, thanks for the help, much appreciated.
 
6:53 PM
@Crell What are your favorite names for separating is_enum? I'm down with literally anything ^^
 
@IluTov I meant to post an issue about that at some point. :-) I'm leaning toward enum_exists('Suit') and either is_enum_case(mixed) or "go use instanceof you heathen".
 
@Crell I'm ok with instanceof if you are. I can't think of a good use-case for is_enum_case anyway.
 
Easier to add later than remove later, I suppose. We can punt that to ADTs.
 
7:15 PM
@IluTov Shall I update the RFC accordingly? I think that's the last of it aside from sorting out the reflection hierarchy.
 
@Crell Please :)
 
@IluTov Fin.
 
 
2 hours later…
9:03 PM
@Sjon I'm ready. Will 3v4l automatically be updated when I push new changes?
I'm assuming it will be run on Linux, x86 without opcache?
 
9:45 PM
hey guys
my laravel login form keeps throwing "The POST method is not supported for this route. Supported methods: GET, HEAD" can anyone help?
 
Set in your form action="post". php artisan route:list to check is route there.
 
I don't know why it is, but my login route only has a get|head route. I followed the tutorial exactly :( here is my web.php
Route::get('/login', [LoginController::class, 'index'])->name('login');
Route::post('/login', [LoginController::class, 'store']);
Why is there no post route when I do php artisan route:list ?? :(
I did the same thing for /register and the register route has a post method :(
 
Try php artisan route:clear && php artisan route:cache
 
Oh geez, you're the man. Thank you so much. Can I click somewhere here to get you more points?
It works now
 
Np. Happy coding.
 
9:56 PM
Yup. It's fun until I'm stuck. I'm glad I found this chatroom. Stay healthy
 
 
1 hour later…
10:57 PM
who wants to make me a userscript that will let me ctrl+v paste images in and automagically handle them like file uploads?
also OLE drag and drop file upload would be mint
I can pay you $1
 
@DaveRandom ping
 
lol I was in the middle of writing you a ping :-P
got the van back today, is now at end of road, will fetch shit out of it and sort through it tomorrow
it's only at the end of the road but it's currently snowing
I mean technically snowing, it's more like icy drizzle
or were you just going to offer to build me my userscript for between -$∞ and $1 ?
 
Haha, right :)
no I wasn't
 
shame
 
11:21 PM
Frigging bugs keeping me from finishing my dang project
Sooo close to completion but can't get categories to appear for items... probably time for a break
 

« first day (3737 days earlier)      last day (1202 days later) »