You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 6, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 6, 2023. It is now read-only.
$ ../inst/bin/pyrus-5.3.7 install pecl/apc
Pyrus version 2.0.0a3 SHA-1: BE7EA9D171AE3873F1BBAF692EEE9165BB14BD5D
Using PEAR installation found at /home/cweiske/php/phpfarm/inst/php-5.3.7/pear
Downloading pecl.php.net/APC
Connected...
Mime-type: application/octet-stream
PEAR2\Pyrus\Registry\Exception: Error: package pecl.php.net/APC could not be installed in registry: Unable to execute statement: constraint failed
Exception: Unable to execute statement: constraint failed
oname, prompt & default refer to the (PECL-specific) <configureoption> tag in package.xml.
Eg. for APC, package.xml contains:
<extsrcrelease>
<configureoption default="no" name="enable-apc-debug" prompt="Enable internal debugging in APC" />
<configureoption default="no" name="enable-apc-filehits" prompt="Enable per request file info about files used from the APC cache" />
<configureoption default="no" name="enable-apc-spinlocks" prompt="Enable spin locks (EXPERIMENTAL)" />
<configureoption default="no" name="enable-apc-memprotect" prompt="Enable memory protection (EXPERIMENTAL)" />
<configureoption default="yes" name="enable-apc-pthreadmutex" prompt="Enable pthread mutexes (default)" />
<configureoption default="no" name="enable-apc-pthreadrwlocks" prompt="Enable pthread read/write locks (EXPERIMENTAL)" />
</extsrcrelease>
I think the meaning of each parameter in the SQL query should be pretty clear now.
AFAICT, I think this is triggered by \Pyrus\PackageFile\v2\Configureoption::current() which sets the name, default & prompt to null explicitely when one of them is missing...
For some reason, $this->info['configureoption'] receives a different structure during install and uninstall.
During install, the structure is close to a SimpleXML tree, mapped into an array (eg. with an "attribs" key containing an array of XML attribute => XML value). This looks like this:
Activity
cweiske commentedon Aug 19, 2011
I added some debug statements (pull please):
cweiske commentedon Aug 19, 2011
Prompt is NULL, but the SQL creation statement says it may not be null:
till commentedon Nov 13, 2011
I just ran into this too.
What does 'prompt' refer to?
fpoirotte commentedon Nov 16, 2011
oname,prompt&defaultrefer to the (PECL-specific)<configureoption>tag in package.xml.Eg. for APC, package.xml contains:
I think the meaning of each parameter in the SQL query should be pretty clear now.
AFAICT, I think this is triggered by
\Pyrus\PackageFile\v2\Configureoption::current()which sets thename,default&promptto null explicitely when one of them is missing...fpoirotte commentedon Nov 18, 2011
ok, I managed to install APC by doing a few changes in
\Pyrus\PackageFile\v2\Release::__get():For some reason,
$this->info['configureoption']receives a different structure during install and uninstall.During
install, the structure is close to a SimpleXML tree, mapped into an array (eg. with an "attribs" key containing an array of XML attribute => XML value). This looks like this:During
uninstall, the structure is simpler, there is no intermediary "attribs" sub-array:Note: even after that change, APC won't build. I still need to investigate that.
cweiske commentedon Dec 3, 2013
Happes with pecl/memcache, too.