Skip to content

Instantly share code, notes, and snippets.

View juan-leon's full-sized avatar

juanleon lahoz juan-leon

  • Madrid
View GitHub Profile
@juan-leon
juan-leon / trigger_php72_bugv2.php
Created September 26, 2018 13:21
Objects cannot access his private attributes anymore while handling error, in PHP 7.2, v2
#!/usr/bin/php -n
<?php
ini_set("display_errors", 1);
error_reporting(E_ALL);
class Foo {
private $dummy1 = 1;
private $dummy2 = 2;
@juan-leon
juan-leon / trigger_php72_bug.php
Created September 26, 2018 10:36
Objects cannot access his private attributes anymore while handling error, in PHP 7.2
#!/usr/bin/php -n
<?php
ini_set("display_errors", 1);
error_reporting(E_ALL);
class Foo {
private $dummy1 = 1;
private $dummy2 = 2;