llaville / php-compatinfo-db

Reference Database of all functions, constants, classes, interfaces on PHP standard distribution and about 110 extensions
https://llaville.github.io/php-compatinfo-db/6.12/
BSD 3-Clause "New" or "Revised" License
10 stars 3 forks source link

[3.4.0] Proxy files management is broken #69

Closed remicollet closed 3 years ago

remicollet commented 3 years ago

APP_PROXY_DIR is only define in bin/compatinfo-db

So is ONLY honnors when using this command

So doctrine orm:generate-proxies is broken (use /tmp)

And phpcompatinfodb is also broken

There is, for now, no clean way to properly set this value.

This value have to be set properly in config/set/default.php

llaville commented 3 years ago

The properly way is to do as in php-compatinfo 5.5 and 6.0 : using a config/bootstap.php file. I'll fix it right away !

llaville commented 3 years ago

3.4.1 is on way with such result (with default APP_PROXY_DIR)

vendor/bin/doctrine orm:generate-proxies

 Processing entity "Bartlett\CompatInfoDb\Infrastructure\Persistence\Doctrine\Entity\ClassRelationship"
 Processing entity "Bartlett\CompatInfoDb\Infrastructure\Persistence\Doctrine\Entity\Class_"
 Processing entity "Bartlett\CompatInfoDb\Infrastructure\Persistence\Doctrine\Entity\ConstantRelationship"
 Processing entity "Bartlett\CompatInfoDb\Infrastructure\Persistence\Doctrine\Entity\Constant_"
 Processing entity "Bartlett\CompatInfoDb\Infrastructure\Persistence\Doctrine\Entity\Dependency"
 Processing entity "Bartlett\CompatInfoDb\Infrastructure\Persistence\Doctrine\Entity\Extension"
 Processing entity "Bartlett\CompatInfoDb\Infrastructure\Persistence\Doctrine\Entity\FunctionRelationship"
 Processing entity "Bartlett\CompatInfoDb\Infrastructure\Persistence\Doctrine\Entity\Function_"
 Processing entity "Bartlett\CompatInfoDb\Infrastructure\Persistence\Doctrine\Entity\IniEntry"
 Processing entity "Bartlett\CompatInfoDb\Infrastructure\Persistence\Doctrine\Entity\IniRelationship"
 Processing entity "Bartlett\CompatInfoDb\Infrastructure\Persistence\Doctrine\Entity\Platform"
 Processing entity "Bartlett\CompatInfoDb\Infrastructure\Persistence\Doctrine\Entity\Relationship"
 Processing entity "Bartlett\CompatInfoDb\Infrastructure\Persistence\Doctrine\Entity\Release"

 Proxy classes generated to "/tmp/bartlett/php-compatinfo-db/3.4.1/proxies"
llaville commented 3 years ago

Just been released 3.4.1

llaville commented 3 years ago

There is a conflict now with php-compatinfo 5.5.0 and 6.0-dev. Don't waste your time to open an issue, I'm already on it ;-)

llaville commented 3 years ago

php-compatinfo 5.5 and 6.0 regression confirmed with compatinfo-db 3.4.1 => 3.4.2 is on way !

llaville commented 3 years ago

php-compatinfo 5.5.1 is on way to use 3.4.2 (that fix autoloader regression)

llaville commented 3 years ago

Just been released php-compatinfo 5.5.1