Skip to content

Instantly share code, notes, and snippets.

View bukka's full-sized avatar

Jakub Zelenka bukka

View GitHub Profile
@bukka
bukka / gist:9877180
Last active August 29, 2015 13:57
Test for json
<?php
$json = file_get_contents(__DIR__ . '/sample.json');
$rs = json_decode($json);
if (!$rs) {
var_dump(json_last_error(), json_last_error_msg());
exit;
} else {
echo "JSON decode success\n";
}
$rs_enc = json_encode($rs);
#define _GNU_SOURCE
#include <string.h>
#include <stdlib.h>
#ifdef ZTS
#include "TSRM.h"
#endif
#ifdef HAVE_CONFIG_H
#include "config.h"
@bukka
bukka / gist:7617548
Last active December 29, 2015 04:49
php-openssl 64bit issues

PHP openssl ext - 64bit changes

openssl.c

Done

1674, 2010, 2022, 2476, 2532, 2542, 2560, 2882: bio_buf_st->length is size_t from OpenSSL >= 1.0.0 (ifdef check added)

3737, 3829: double check that BIO_get_mem_data can't be negative (error) - it can't be negative in these cases

php-8.3.0alpha1.tar.bz2
SHA256 hash: cb931d09ebacd9c773baebd0d714153c657d6a3a5fc63a1c2fc67728d10efa3c
PGP signature:
-----BEGIN PGP SIGNATURE-----
iHUEABYIAB0WIQTCjZN1dWA+tKu3JYYcB3ncXAqd5AUCZH9XRwAKCRAcB3ncXAqd
5J74AQDOoVwrpRbr4QA0+2u0+9BbZuB+BAkH/9oUy7cZN6uFCAD/XYWokZX30c61
GIl+K86bhuMG2vXVse7cSU6oFbYlaQ8=
=6ISB
-----END PGP SIGNATURE-----
php-8.3.0alpha3.tar.bz2
SHA256 hash: 181db88f226dfb9592a2f921038ff147f88b4f07c5f26240a897dcc4cb18496a
PGP signature:
-----BEGIN PGP SIGNATURE-----
iHUEABYIAB0WIQTCjZN1dWA+tKu3JYYcB3ncXAqd5AUCZKRjkgAKCRAcB3ncXAqd
5JQVAP9VhXxcK/UJtEJUKTCS6u2bcOIUk9jiyXUekDYUikhxdgD/WabLw7uPCm+5
qXA6epxoURUKUD4nRLimBan21o0TmAM=
=RavV
-----END PGP SIGNATURE-----
php-8.3.0beta2.tar.bz2
SHA256 hash: ad7d48195a77d5caa219f6db9e3cbd507aaf8d40c4d799dcc9d59947e06f35d3
PGP signature:
-----BEGIN PGP SIGNATURE-----
iHUEABYIAB0WIQTCjZN1dWA+tKu3JYYcB3ncXAqd5AUCZMjoFAAKCRAcB3ncXAqd
5DvpAP9UK32PN+CfFXXtP7Zno+Oci5wK2ZITDIBtR/nBUhAe2AD/TnI0CFIW8x/U
Sy+ngxh/gkwvFSiDmNFgzHRUvaR2bQE=
=XDB6
-----END PGP SIGNATURE-----
php-8.3.0RC1.tar.bz2
SHA256 hash: 090d6b0e323794012633776864d8bcc122c0cd9afd6ea6f79c602d8466718c08
PGP signature:
-----BEGIN PGP SIGNATURE-----
iHUEABYIAB0WIQTCjZN1dWA+tKu3JYYcB3ncXAqd5AUCZO4rfAAKCRAcB3ncXAqd
5OB7AP94Ggs+qH/atx4EakM2gnvhqJSu59in/KkPN+YDeqMvOQEAnZImGjkeiShU
FWfggetn/A+dbIqLRhvP7oE62cE7EwQ=
=cL6l
-----END PGP SIGNATURE-----
php-8.3.0RC3.tar.bz2
SHA256 hash: 66c1c24ae3b57c9d6c09ccaa4d1ac0a2d921352e1a85da8bbca620bffba35282
PGP signature:
-----BEGIN PGP SIGNATURE-----
iHUEABYIAB0WIQTCjZN1dWA+tKu3JYYcB3ncXAqd5AUCZRLKoQAKCRAcB3ncXAqd
5OjeAP98+07QUjY0kZXwErG5jlL29IUO/wmlJExyVlKYQWhCHAEAnetMyY1VcbMr
quTYOWHGsD+wKUPPNBZ26YmJ/NWdHgQ=
=YPGG
-----END PGP SIGNATURE-----
php-8.3.0RC5.tar.bz2
SHA256 hash: 44f883a68f7ebff3dca4cd5903bc7707a587f18307f2384eea832d70ddcfa3de
PGP signature:
-----BEGIN PGP SIGNATURE-----
iHUEABYIAB0WIQTCjZN1dWA+tKu3JYYcB3ncXAqd5AUCZTevFwAKCRAcB3ncXAqd
5EsZAQDCbT5SoZCXuu7n6jfr2vRWVJ6IubCq361ZmzFOcAQCgQEAnO27FzRa+bJB
y4cOAlVG3xTp/zF4TB0TWf9BttiovQA=
=Vu1K
-----END PGP SIGNATURE-----
php-8.3.0.tar.bz2
SHA256 hash: de67d0833d42b196e5a66fa1a332f45e296cbe8e9472e9256b2a071c34dc5ed6
PGP signature:
-----BEGIN PGP SIGNATURE-----
iHUEABYIAB0WIQTCjZN1dWA+tKu3JYYcB3ncXAqd5AUCZVzCAgAKCRAcB3ncXAqd
5JBFAQCaYK3jZ8YtgaOUpIRTYsAEVf4wgHshahMsxyOOL9GP9AEAlz/sd2HK/Wod
J9AsSbX68jX98PK0RG/WE+gA2L/DXQs=
=Y0F0
-----END PGP SIGNATURE-----