WordPress.org

Make WordPress Core

Ticket #23381: testbroken.php

File testbroken.php, 353 bytes (added by rmccue, 2 years ago)

Test file to reproduce the issue. Requires APC to demonstrate

Line 
1<?php
2/**
3 * Plugin Name: Test Brokenness
4 */
5
6function rmccue_get_option() {
7        #delete_option('rmccue_test_apc_add');
8
9        $option = get_option('rmccue_test_apc_add', array());
10
11        var_dump($option);
12
13        $option[] = new rmccue_Test_Object;
14
15        update_option('rmccue_test_apc_add', $option);
16}
17add_action('init', 'rmccue_get_option');
18
19class rmccue_Test_Object {}