This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Storage: /var/lib/systemd/coredump/core.php.1000.dc4d8d901afc458882fef3a2cb5a2225.16488.1767373281000000.zst (present) | |
| Size on Disk: 1.2M | |
| Message: Process 16488 (php) of user 1000 dumped core. | |
| Module libgomp.so.1 from deb gcc-14-14.2.0-4ubuntu2~24.04.amd64 | |
| Module libzstd.so.1 from deb libzstd-1.5.5+dfsg2-2build1.1.amd64 | |
| Module libgcc_s.so.1 from deb gcc-14-14.2.0-4ubuntu2~24.04.amd64 | |
| Module libstdc++.so.6 from deb gcc-14-14.2.0-4ubuntu2~24.04.amd64 | |
| Stack trace of thread 16488: | |
| #0 0x00007a68c5b50ce9 relayIncrSharedStats (relay.so + 0xe3ce9) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM debian:latest | |
| RUN apt-get update && apt-get install -y \ | |
| php-cli \ | |
| php-dev \ | |
| php-pear \ | |
| gcc \ | |
| make \ | |
| redis \ | |
| openssl \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM ubuntu:22.04 | |
| ENV PHP_VERSION=8.4.0alpha1 | |
| ENV PHPREDIS_VERSION=develop | |
| RUN apt-get update && apt-get install -y \ | |
| build-essential \ | |
| wget \ | |
| curl \ | |
| libxml2-dev \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| function accCommandCounts(array &$acc, array $stats) { | |
| $re_cmd = '/cmdstat_([a-zA-Z]+)\|?([a-zA-Z]*)/'; | |
| $re_num = '/^calls=(\d+).*/'; | |
| foreach ($stats as $cmd => $info) { | |
| if ( ! preg_match($re_cmd, $cmd, $matches)) | |
| die("Malformed command name\n"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <stdint.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include <time.h> | |
| #include <sys/time.h> | |
| #include <locale.h> | |
| #define MAX_DIGITS 3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Compile with: cc -Wall -ggdb3 -o hiredis-binary-example hiredis-binary-example.c -lhiredis | |
| #include <stdio.h> | |
| #include <hiredis/hiredis.h> | |
| #include <stddef.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| struct binaryData { | |
| char *str; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdlib.h> | |
| #include <hiredis/hiredis.h> | |
| int main() { | |
| redisContext *c = redisConnect("127.0.0.1", 6379); | |
| // Short circuit if we fail to allocate a redisContext or if it | |
| // reports an error state. | |
| if (c == NULL || c->err) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <termios.h> | |
| #include <unistd.h> | |
| /* If it is the carriage return thing, here is the exact same | |
| * functionality, but also setting termio. | |
| * NOTE: I have no idea what the performance implications of calling | |
| * `tcgetaddr`/`tcsetaddr` for this little routine would be | |
| * or whether it is acceptable in your situation. | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Compile with: cc -Wall -otermio termio.c | |
| #include <stdio.h> | |
| #include <termios.h> | |
| #include <unistd.h> | |
| int main(void) { | |
| static struct termios oldt, newt; | |
| /* Get current termio settings */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM rockylinux:8 as build0 | |
| RUN yum -y update && yum -y install gcc make autoconf gcc-c++ git wget libzstd-devel libxml2-devel \ | |
| sqlite-devel | |
| FROM build0 as build1 | |
| # Download build and install PHP 8.0 | |
| RUN mkdir -p /root/dev && cd /root/dev/ && \ | |
| cd /root/dev/ && wget -q "https://www.php.net/distributions/php-8.0.14.tar.gz" && \ |
NewerOlder