Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

phpdoc not work

209 views
Skip to first unread message

alex

unread,
Dec 6, 2016, 3:32:06 AM12/6/16
to
$ phpdoc -d src -t docs
PHP Fatal error: Uncaught
Doctrine\Common\Annotations\AnnotationException: You have to enable
opcache.load_comments=1 or zend_optimizerplus.load_comments=1. in
/usr/share/php/phpDocumentor/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationException.php:193

Because?

Arno Welzel

unread,
Dec 6, 2016, 8:22:55 AM12/6/16
to

alex

unread,
Dec 6, 2016, 12:18:14 PM12/6/16
to
Il 06/12/2016 14:22, Arno Welzel ha scritto:
> alex wrote:
>
>> $ phpdoc -d src -t docs
>> PHP Fatal error: Uncaught
>> Doctrine\Common\Annotations\AnnotationException: You have to enable
>> opcache.load_comments=1 or zend_optimizerplus.load_comments=1. in
>> /usr/share/php/phpDocumentor/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationException.php:193
>>
>> Because?
>
> <http://stackoverflow.com/questions/34958319/phpdocumentor-2-and-php-7-with-opcache-issues-in-doctrine>

thanks

alex

unread,
Dec 6, 2016, 12:59:46 PM12/6/16
to
but must install into any project directories?

Gregor Kofler

unread,
Dec 7, 2016, 5:45:58 AM12/7/16
to
No. That's why you got a -d parameter.

Gregor

alex

unread,
Dec 7, 2016, 7:00:57 AM12/7/16
to
Il 07/12/2016 11:45, Gregor Kofler ha scritto:
> No. That's why you got a -d parameter.
>

$ composer require --dev phpdocumentor/phpdocumentor
install into current directory

but, for example, how-to install into /usr/local/phpdoc?

Christoph M. Becker

unread,
Dec 7, 2016, 7:16:30 AM12/7/16
to
Use the global command, see <https://getcomposer.org/doc/03-cli.md#global>.

--
Christoph M. Becker

Gregor Kofler

unread,
Dec 7, 2016, 8:20:02 AM12/7/16
to
Why not pick the phar-File (version 2.9 works with PHP7), set chmod +x,
place it wherever you want and execute it with the prefered parameters?

Gregor

alex

unread,
Dec 7, 2016, 8:24:52 AM12/7/16
to
$ composer require --dev phpdocumentor/phpdocumentor -d /usr/local/phpdoc

sorry, I just needed this

alex

unread,
Dec 7, 2016, 8:30:04 AM12/7/16
to
Il 07/12/2016 14:19, Gregor Kofler ha scritto:
> Why not pick the phar-File (version 2.9 works with PHP7), set chmod +x,
> place it wherever you want and execute it with the prefered parameters?

$ ./phpDocumentor.phar
PHP Fatal error: Uncaught
Doctrine\Common\Annotations\AnnotationException: You have to enable
opcache.load_comments=1 or zend_optimizerplus.load_comments=1. in
phar:///mnt/common2/pending/phpDocumentor.phar/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationException.php:193

Christoph M. Becker

unread,
Dec 7, 2016, 9:14:07 AM12/7/16
to
Have you tried configuring opcache.load_comments=1?

--
Christoph M. Becker

alex

unread,
Dec 7, 2016, 10:13:02 AM12/7/16
to
var_dump(ini_get('opcache.load_comments'));

bool(false)

Thomas 'PointedEars' Lahn

unread,
Dec 7, 2016, 10:53:33 AM12/7/16
to
aoie.org, address munger, luser. Hopeless. Waste of time.

It is good to see when one’s scorefile is adjusted properly.

--
PointedEars
Zend Certified PHP Engineer <http://www.zend.com/en/yellow-pages/ZEND024953>
<https://github.com/PointedEars> | <http://PointedEars.de/wsvn>
Twitter: @PointedEars2 | Please do not cc me./Bitte keine Kopien per E-Mail.

Thomas 'PointedEars' Lahn

unread,
Dec 7, 2016, 10:53:58 AM12/7/16
to
aioe.org, address munger, luser. Hopeless. Waste of time.

Gregor Kofler

unread,
Dec 7, 2016, 7:31:54 PM12/7/16
to
Did you really pick this release?

https://github.com/phpDocumentor/phpDocumentor2/releases/



alex

unread,
Dec 9, 2016, 4:02:03 AM12/9/16
to
Il 08/12/2016 01:31, Gregor Kofler ha scritto:
> Did you really pick this release?
>
> https://github.com/phpDocumentor/phpDocumentor2/releases/
>
>
>

No.
http://phpdoc.org/phpDocumentor.phar

but https://github.com/phpDocumentor/phpDocumentor2/releases/ works

Thanks :)
0 new messages