Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:103762 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 15583 invoked from network); 18 Jan 2019 04:37:16 -0000 Received: from unknown (HELO mail-ot1-f54.google.com) (209.85.210.54) by pb1.pair.com with SMTP; 18 Jan 2019 04:37:16 -0000 Received: by mail-ot1-f54.google.com with SMTP id t5so7937792otk.1 for ; Thu, 17 Jan 2019 17:13:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=cAb+Ckhj0N2iut+osZ5FC8BAAqd9KjtRWP2mGAEji0w=; b=Zw3RCMFHUCsV2zQsXRepHoT5Rftha2vG3QV2BZjh/JbZwQ25qlv18TrFTlajIYU2xQ /I4XGb14pfPJsEROTO6yWD7UmdJMTqYujELWp5qS7Njmse9uXc8Smc9lWzXzPS4EqQt5 J35HJ05CWgrQzwRMoFrvZferxwnLXXCOcz+GNpYZWydDPwAJnp2V1UxjKj3nWPI13Tt6 2KbP18Q9DTOIAWUSu+er+PXRKhix+p0gXoNX5tHDfYKGpyWM0a9hpGYlyGjnDdjWj14i daJf7FWSgrkeo83x5wOMpUYlvySF2PN0DGNpFXobzC3as4ZC1xOJQ/+9+eA59qJW2hdf LYWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=cAb+Ckhj0N2iut+osZ5FC8BAAqd9KjtRWP2mGAEji0w=; b=bnxlgd/2nf4oFkZfYRmMLAkrq41AYnEEmHKWOJI13zQlg6JD2yimwxj1pHJnQ4AMxV ZDctkHtNYwVm8HFac7Ol79OLqtAhVgvkm1P05aYUnutLCJMuRmlm8NbaglkGKSQ7Vmvl xO6LVQ3h7VBdoFw7EfWJrEok32ugIwEeQ1Cj1u7GoBd+ZoSQDmwvZccU3jK6bpNenS2N uAiTDEgwl8iHkobX2/oyyt6zVQ6gfJhj6qv3UvaHZFlBNaZOYZsT6/W8VcrC8yvVYnTv qN4ydz+WoWY7tF7/2U+tMjrnMz9PR+qbRUUV3z+WXb20VJpnLbu9GopG7wFT/KeRZoh3 T6Jg== X-Gm-Message-State: AJcUukc0Owe9muTzw8tVeYfkheuOIboemS9gu2erhIdpsjz14Fpp4qMb 3QEMTg0d83f4S0wp4x4EzqCxXp7ntrwxccgHKk8= X-Google-Smtp-Source: ALg8bN7GA/mSNKiUubADIXOcQyiqSkFLkIb+P1IAgwjaVXzM9/qXYs1i6ZQ8Rz8bkKUQG7lkQ78cHq10qCOtXV0KIeM= X-Received: by 2002:a9d:4f0e:: with SMTP id d14mr10733878otl.259.1547774026177; Thu, 17 Jan 2019 17:13:46 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Thu, 17 Jan 2019 23:13:36 -0200 Message-ID: To: Marco Pivetta Cc: internals Content-Type: multipart/alternative; boundary="00000000000005e3aa057fb1394b" Subject: Re: [PHP-DEV] Unserializes, inheritance and allows_classes From: marcospassos.com@gmail.com (Marcos Passos) --00000000000005e3aa057fb1394b Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable > > How would you fix this example, then? Perhaps we should add more examples > in the docs. > But it closes for extension preventing the serialization of instances not whitelisted. It may work for @internal or package private classes, but not for public classes. Em qui, 17 de jan de 2019 =C3=A0s 23:03, Marco Pivetta escreveu: > > > On Fri, Jan 18, 2019 at 2:00 AM Marcos Passos > wrote: > >> How would you fix this example, then? Perhaps we should add more example= s >> in the docs. >> > > You'd include all expected child classes in the list of `allowed_classes`= . > As for the docs, feel free to go ahead and edit them directly :+1: > > Marco Pivetta > > http://twitter.com/Ocramius > > http://ocramius.github.com/ > > --00000000000005e3aa057fb1394b--