|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-07-31 19:58 UTC] helly@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Dec 16 10:00:01 2025 UTC |
Description: ------------ get_class_vars return protected property or in the doc, get_class_vars must return PUBLIC property Reproduce code: --------------- class Person{ public $prenom; protected $nom; } class Francais extends Person{ public $securiteSocial; function test(){ print_r(get_class_vars("Francais")); } } $p = new Francais(); $p->test(); Expected result: ---------------- Array ( [securiteSocial] => [prenom] => ) Actual result: -------------- Array ( [securiteSocial] => [prenom] => [nom] => )