]> granicus.if.org Git - php/commit
Fix called scope assignment in autoloader
authorNikita Popov <nikita.ppv@gmail.com>
Wed, 10 Jun 2020 07:55:50 +0000 (09:55 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Wed, 10 Jun 2020 07:55:50 +0000 (09:55 +0200)
commit097043db2a0d113f89bd26c6f1d7a976d83951a8
tree606662d7f78cc705adc68354151f1fed2bdeaa16
parente0e4a61847962e7e9cb227fc22e7e39ce0ec74a9
Fix called scope assignment in autoloader

We should use the scope specified in the spl_autoload_register()
call, not whatever LSB scope just so happens to be active at the
time of the autoloader call.
ext/spl/php_spl.c
ext/spl/tests/spl_autoload_called_scope.phpt [new file with mode: 0644]