Skip to content

PHP experiments showing spl_autoload_register() and require_once successfully and failing to resolve circular dependencies

Notifications You must be signed in to change notification settings

richardpon/php_autoloading_experiments

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

To Execute and Generate the Fatal:

php run.php

Three ways to "fix" the fatal

  1. animal.php should not require_once('cat.php'): This commit
  2. Animal class should not extend Creature class: This commit
  3. Instead of using autoloader, explicitly require_once creature.php and animal.php from run.php: This commit

About

PHP experiments showing spl_autoload_register() and require_once successfully and failing to resolve circular dependencies

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages