« first day (4229 days earlier)      last day (735 days later) » 

1:58 AM
@bwoebi that idea scares me. Though I definitely get it, and see the use-cases. Though I'd argue if you're doing that much, just write it in PECL...
@bwoebi Yup, that definitely makes sense
 
 
3 hours later…
4:35 AM
Quick question guys, why am still receiving error PHP Notice: Undefined index: key. Even though I already set it here is the code.
$field_value = isset($_POST[$_key['key']]) ? $_POST[$_key['key']] : '';
 
@winresh24 Because 'key' isn't present in $_key. You'd need to run isset($_key['key'])
 
ohh I see, let me try that. Thanks
 
Or, probably based on your example... isset($_key['key']) && isset($_POST[$_key['key']])
 
yes, That worked @CharlesSprayberry thanks. Another issues arise haha
 
@winresh24 That's normally how it goes :) Good luck!
 
Wes
4:58 AM
do you think the q factor weight of the Accept header is a mime type parameter?

application/xml;q=0.9

Structure of a MIME type:
type/subtype;parameter=value
 
 
2 hours later…
7:01 AM
Oh man, the ducks are quacking
 
 
3 hours later…
9:55 AM
:D
 
 
3 hours later…
12:42 PM
How can i perform a http request just like browser in PHP ?
I don't have knowledge enough about TLS handshake stauff
I'm using a package called "curl-impersonate" which do the same thing github.com/lwthiker/curl-impersonate
"When you use an HTTP client with a TLS website, it first performs a TLS handshake. The first message of that handshake is called Client Hello. The Client Hello message that curl produces differs drastically from that of a real browser. Compare the following Wireshark capture. Left is a regular curl, right is Firefox."
is it possible to manipulate TLS stuff with PHP ?
The packageabove is not a PHP script, So i'm looking for a way to do the same thing with PHP
 
 
2 hours later…
2:57 PM
@Mwthreex curl, guzzle, symfony
@Mwthreex yes
 
3:28 PM
No issue
Now try get html by guzzle or curl or whathever you want
you will be block by cloudflare
no JS involved
Show me the code if you succeed
 
 
2 hours later…
5:04 PM
Does Github offer CI for PHP?
 
@samayo I would imagine with GitHub Actions you could setup CI for most, if not all, languages
 
What does Github actions allow you to do? They sound like hooks, which doesn't test the code from what I read
 
@samayo They're basically compute tasks and you can do whatever you wanna do with them. I use them to test pull requests with PHPUnit and code linting.
 
Can you have a badge for failling/passing tests?
 
5:09 PM
eh, another new thing to learn ... i hope it's worth it
thanks
 
6:08 PM
@Mwthreex that's not TLS, that's cloudflare... there are ways to workaround that but it's not easy
 
Thanks
 
6:32 PM
Hey guys, how can I make this one possible inside a foreach and use the $array_key to insert data in db.
$array_key[] = $field_key => $field_value;
 
7:22 PM
While doing Apache reloads with PHP on master, I pretty regularly get segmentation faults.
#0  0x00007f2599a20868 in zend_signal_handler_defer (signo=1, siginfo=0x7f253cff87f0, context=0x7f253cff86c0)
    at /usr/local/src/php/Zend/zend_signal.c:98
#1  <signal handler called>
#2  0x00007f259cccafde in epoll_wait (epfd=8, events=0x7f2597cf7620, maxevents=52, timeout=3988) at ../sysdeps/unix/sysv/linux/epoll_wait.c:30
#3  0x00007f259cdf56b0 in ?? () from /lib/x86_64-linux-gnu/libapr-1.so.0
#4  0x00007f259ca32be8 in ?? () from /usr/lib/apache2/modules/mod_mpm_event.so
#5  0x00007f259cc39b43 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
(gdb) l
93			zend_signal_handler(signo, siginfo, context);
94			return;
95		}
96	#endif
97
98		if (EXPECTED(SIGG(active))) {
99			if (UNEXPECTED(SIGG(depth) == 0)) { /* try to handle signal */
100				if (UNEXPECTED(SIGG(blocked))) {
101					SIGG(blocked) = 0;
102				}
This stack is for ZTS, but it's happened on NTS as well.
@NikiC I can't remember if I was root or not -- I was doing some things out of a container (not root) and some things in a container (root).
 
8:13 PM
[Sun May 15 20:12:50.650092 2022] [mpm_event:notice] [pid 5247:tid 139834919950208] AH00493: SIGUSR1 received.  Doing graceful restart
[lifecycle_module] [139834919950208] GINIT.
[lifecycle_module] [139834919950208] MINIT.
[lifecycle_module] [139834919950208] MSHUTDOWN.
[lifecycle_module] [139834919950208] GSHUTDOWN.
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.2. Set the 'ServerName' directive globally to suppress this message
[Sun May 15 20:12:50.675751 2022] [mpm_event:notice] [pid 5247:tid 139834919950208] AH00489: Apache/2.4.52
^ This suggests the signal is happening when extensions are unloaded. Not sure how to specifically debug sapi hooks though.
 
8:29 PM
err, I meant debug the signal hooks.
 

« first day (4229 days earlier)      last day (735 days later) »