f



phpdoc not work

$ 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?
0
alex
12/6/2016 8:31:55 AM
comp.lang.php 32646 articles. 0 followers. Post Follow

15 Replies
270 Views

Similar Articles

[PageSpeed] 36

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>

<https://github.com/doctrine/annotations/releases/tag/v1.2.5>

<http://askubuntu.com/questions/810739/php-7-and-phpdocumentor-install>



-- 
Arno Welzel
https://arnowelzel.de
https://de-rec-fahrrad.de
http://fahrradzukunft.de
0
Arno
12/6/2016 1:22:41 PM
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

0
alex
12/6/2016 5:18:02 PM
Il 06/12/2016 18:18, alex ha scritto:
> 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
>

but must install into any project directories?
0
alex
12/6/2016 5:59:43 PM
Am 2016-12-06 um 18:59 schrieb alex:
> Il 06/12/2016 18:18, alex ha scritto:
>> 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
>>
> 
> but must install into any project directories?

No. That's why you got a -d parameter.

Gregor
0
Gregor
12/7/2016 10:45:53 AM
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?

0
alex
12/7/2016 12:00:52 PM
On 07.12.2016 at 13:00, alex wrote:

> 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?

Use the global command, see <https://getcomposer.org/doc/03-cli.md#global>.

-- 
Christoph M. Becker

0
Christoph
12/7/2016 12:16:31 PM
Am 2016-12-07 um 13:00 schrieb alex:
> 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?

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

0
Gregor
12/7/2016 1:19:53 PM
Il 07/12/2016 13:16, Christoph M. Becker ha scritto:
> On 07.12.2016 at 13:00, alex wrote:
>
>> 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?
>
> Use the global command, see <https://getcomposer.org/doc/03-cli.md#global>.
>

$ composer require --dev phpdocumentor/phpdocumentor -d /usr/local/phpdoc

sorry, I just needed this
0
alex
12/7/2016 1:24:46 PM
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

0
alex
12/7/2016 1:29:58 PM
On 07.12.2016 at 14:29, alex wrote:

> 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

Have you tried configuring opcache.load_comments=1?

-- 
Christoph M. Becker

0
Christoph
12/7/2016 2:14:10 PM
Il 07/12/2016 15:14, Christoph M. Becker ha scritto:
> On 07.12.2016 at 14:29, alex wrote:
>
>> 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
>
> Have you tried configuring opcache.load_comments=1?
>

var_dump(ini_get('opcache.load_comments'));

bool(false)
0
alex
12/7/2016 3:12:57 PM
Christoph M. Becker wrote:

> On 07.12.2016 at 14:29, alex wrote:
>> 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
> 
> Have you tried configuring opcache.load_comments=1?

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.
0
Thomas
12/7/2016 3:53:28 PM
Christoph M. Becker wrote:

> On 07.12.2016 at 14:29, alex wrote:
>> 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
> 
> Have you tried configuring opcache.load_comments=1?

aioe.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.
0
Thomas
12/7/2016 3:53:54 PM
Am 2016-12-07 um 14:29 schrieb alex:
> 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

Did you really pick this release?

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



0
Gregor
12/8/2016 12:31:49 AM
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
alex
12/9/2016 9:01:58 AM
Reply: