Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use submodules for Git-hosted dependencies #1

Closed
wants to merge 1 commit into from
Closed

Use submodules for Git-hosted dependencies #1

wants to merge 1 commit into from

Conversation

sebastianbergmann
Copy link
Contributor

This allows to use phpdox directly from a Git checkout

sb@thinkpad src % git clone [email protected]:sebastianbergmann/phpdox.git
Initialized empty Git repository in /usr/local/src/phpdox/.git/
remote: Counting objects: 121, done.
remote: Compressing objects: 100% (49/49), done.
remote: Total 121 (delta 65), reused 115 (delta 64)
Receiving objects: 100% (121/121), 32.61 KiB, done.
Resolving deltas: 100% (65/65), done.

sb@thinkpad src % cd phpdox 

sb@thinkpad phpdox % git submodule init
Submodule 'lib/Autoload' (git://github.com/theseer/Autoload.git) registered for path 'lib/Autoload'
Submodule 'lib/DirectoryScanner' (git://github.com/theseer/DirectoryScanner.git) registered for path 'lib/DirectoryScanner'
Submodule 'lib/docblock' (git://github.com/spriebsch/docblock.git) registered for path 'lib/docblock'
Submodule 'lib/fDOMDocument' (git://github.com/theseer/fDOMDocument.git) registered for path 'lib/fDOMDocument'
Submodule 'lib/staticReflection' (git://github.com/manuelpichler/staticReflection.git) registered for path 'lib/staticReflection'
sb@thinkpad phpdox % git submodule update
Initialized empty Git repository in /usr/local/src/phpdox/lib/Autoload/.git/
remote: Counting objects: 416, done.
remote: Compressing objects: 100% (401/401), done.
remote: Total 416 (delta 242), reused 0 (delta 0)
Receiving objects: 100% (416/416), 109.84 KiB, done.
Resolving deltas: 100% (242/242), done.
Submodule path 'lib/Autoload': checked out '4afd5dccd0f2f1496bda4783b6febc1fa7958de2'
Initialized empty Git repository in /usr/local/src/phpdox/lib/DirectoryScanner/.git/
remote: Counting objects: 106, done.
remote: Compressing objects: 100% (96/96), done.
remote: Total 106 (delta 45), reused 0 (delta 0)
Receiving objects: 100% (106/106), 13.73 KiB, done.
Resolving deltas: 100% (45/45), done.
Submodule path 'lib/DirectoryScanner': checked out '87b21d8035406d1d1c5e90d51ccd416273712d3d'
Initialized empty Git repository in /usr/local/src/phpdox/lib/docblock/.git/
remote: Counting objects: 166, done.
remote: Compressing objects: 100% (153/153), done.
remote: Total 166 (delta 72), reused 0 (delta 0)
Receiving objects: 100% (166/166), 20.96 KiB, done.
Resolving deltas: 100% (72/72), done.
Submodule path 'lib/docblock': checked out 'cfc41bcb0f388625131bad22d0062a398eaeec97'
Initialized empty Git repository in /usr/local/src/phpdox/lib/fDOMDocument/.git/
remote: Counting objects: 24, done.
remote: Compressing objects: 100% (22/22), done.
remote: Total 24 (delta 11), reused 0 (delta 0)
Receiving objects: 100% (24/24), 17.89 KiB, done.
Resolving deltas: 100% (11/11), done.
Submodule path 'lib/fDOMDocument': checked out '960d2e4235026ffd5522d686ecc27bd6718a96af'
Initialized empty Git repository in /usr/local/src/phpdox/lib/staticReflection/.git/
remote: Counting objects: 3182, done.
remote: Compressing objects: 100% (1101/1101), done.
remote: Total 3182 (delta 2057), reused 3058 (delta 1986)
Receiving objects: 100% (3182/3182), 489.27 KiB | 78 KiB/s, done.
Resolving deltas: 100% (2057/2057), done.
Submodule path 'lib/staticReflection': checked out 'a2cdac397fe9cf738b7c0554648550f590ac6907'

sb@thinkpad phpdox % ./phpdox.php 
Argument with name 'directory' is mandatory but was not submitted.

The only dependency that needs to be installed in ezcConsoleTools (which is not hosted on Git).

@ctasca ctasca mentioned this pull request Apr 8, 2012
@jskarpe jskarpe mentioned this pull request Jul 26, 2012
@devtop devtop mentioned this pull request May 10, 2013
@jpruiz114 jpruiz114 mentioned this pull request Feb 12, 2015
@Eternal-Infinity Eternal-Infinity mentioned this pull request Apr 1, 2015
@ghost ghost mentioned this pull request Jun 3, 2015
Gasol pushed a commit to Gasol/phpdox that referenced this pull request Feb 27, 2019
The error_get_last function returns NULL if there hasn't been an error
yet, Says from from https://secure.php.net/error_get_last.

    PHP Fatal error:  Uncaught TypeError: Return value of TheSeer\phpDox\ErrorHandler::getLastError() must be of the type array,
    null returned in /net/enterprise-data1/home/ad min/gasolwu/Code/phpdox/src/shared/ErrorHandler.php:147
    Stack trace:
    #0 /net/enterprise-data1/home/admin/gasolwu/Code/phpdox/src/shared/ErrorHandler.php(55): TheSeer\phpDox\ErrorHandler->getLastError()
    theseer#1 [internal function]: TheSeer\phpDox\ErrorHandler->handleShutdown()
    theseer#2 {main}
      thrown in /net/enterprise-data1/home/admin/gasolwu/Code/phpdox/src/shared/ErrorHandler.php on line 147
Gasol pushed a commit to Gasol/phpdox that referenced this pull request Feb 27, 2019
The error_get_last function returns NULL if there hasn't been an error
yet, And the exit status 255 is reserved by PHP and shall be used when fatal
error occurred.

    PHP Fatal error:  Uncaught TypeError: Return value of TheSeer\phpDox\ErrorHandler::getLastError() must be of the type array,
    null returned in /net/enterprise-data1/home/ad min/gasolwu/Code/phpdox/src/shared/ErrorHandler.php:147
    Stack trace:
    #0 /net/enterprise-data1/home/admin/gasolwu/Code/phpdox/src/shared/ErrorHandler.php(55): TheSeer\phpDox\ErrorHandler->getLastError()
    theseer#1 [internal function]: TheSeer\phpDox\ErrorHandler->handleShutdown()
    theseer#2 {main}
      thrown in /net/enterprise-data1/home/admin/gasolwu/Code/phpdox/src/shared/ErrorHandler.php on line 147

References:
- https://secure.php.net/exit
- https://secure.php.net/error_get_last
@v0idpwn v0idpwn mentioned this pull request May 29, 2019
@bellenuit bellenuit mentioned this pull request Dec 28, 2021
dereckson pushed a commit to nasqueron/phpdox that referenced this pull request Mar 26, 2023
@hgodinho hgodinho mentioned this pull request Aug 7, 2023
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant