- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在尝试在 macOS 上的 xampp 或 MAMP 上安装 phalcon
请告诉我如何在 MAMP 上正确安装 phalcon(我在 XAMPP 上安装时遇到相同的错误)
我使用本教程 https://madebyextreme.com/insights/how-to-install-phalcon-php-framework-with-mamp-on-osx
请帮我!我使用 php 7.3.7
错误:
./install: line 133: aclocal: command not found
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
appending configuration tag "CXX" to libtool
mkdir .libs
gcc -I. -I/Applications/XAMPP/xamppfiles/htdocs/cphalcon/build/php7/64bits -DPHP_ATOM_INC -I/Applications/XAMPP/xamppfiles/htdocs/cphalcon/build/php7/64bits/include -I/Applications/XAMPP/xamppfiles/htdocs/cphalcon/build/php7/64bits/main -I/Applications/XAMPP/xamppfiles/htdocs/cphalcon/build/php7/64bits -I/Applications/XAMPP/xamppfiles/include/php -I/Applications/XAMPP/xamppfiles/include/php/main -I/Applications/XAMPP/xamppfiles/include/php/TSRM -I/Applications/XAMPP/xamppfiles/include/php/Zend -I/Applications/XAMPP/xamppfiles/include/php/ext -I/Applications/XAMPP/xamppfiles/include/php/ext/date/lib -DPHALCON_RELEASE -DHAVE_CONFIG_H -mtune=native -O2 -fomit-frame-pointer -c /Applications/XAMPP/xamppfiles/htdocs/cphalcon/build/php7/64bits/phalcon.zep.c -fno-common -DPIC -o .libs/phalcon.o
In file included from /Applications/XAMPP/xamppfiles/htdocs/cphalcon/build/php7/64bits/phalcon.zep.c:52:
./phalcon.zep.h:5760:47: warning: \U used with no following hex digits; treating as '\' followed by identifier [-Wunicode]
ZEND_ARG_OBJ_INFO(0, uri, Psr\\Http\\Message\\UriInterface, 0)
^
./phalcon.zep.h:10328:47: warning: \U used with no following hex digits; treating as '\' followed by identifier [-Wunicode]
ZEND_ARG_OBJ_INFO(0, uri, Psr\\Http\\Message\\UriInterface, 0)
^
./phalcon.zep.h:10341:122: warning: \U used with no following hex digits; treating as '\' followed by identifier [-Wunicode]
...0, 1, Psr\\Http\\Message\\UriInterface, 0)
^
./phalcon.zep.h:19544:100: warning: \U used with no following hex digits; treating as '\' followed by identifier [-Wunicode]
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_url_urlinterface_setbasepath, 0, 1, Phalcon\\Url\\UrlInterface, 0)
^
./phalcon.zep.h:19544:105: warning: \U used with no following hex digits; treating as '\' followed by identifier [-Wunicode]
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_url_urlinterface_setbasepath, 0, 1, Phalcon\\Url\\UrlInterface, 0)
^
./phalcon.zep.h:19556:99: warning: \U used with no following hex digits; treating as '\' followed by identifier [-Wunicode]
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_url_urlinterface_setbaseuri, 0, 1, Phalcon\\Url\\UrlInterface, 0)
^
./phalcon.zep.h:19556:104: warning: \U used with no following hex digits; treating as '\' followed by identifier [-Wunicode]
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_url_urlinterface_setbaseuri, 0, 1, Phalcon\\Url\\UrlInterface, 0)
^
./phalcon.zep.h:30753:139: warning: \U used with no following hex digits; treating as '\' followed by identifier [-Wunicode]
...0, 1, Phalcon\\Http\\Message\\UploadedFile, 0)
^
./phalcon.zep.h:30815:129: warning: \U used with no following hex digits; treating as '\' followed by identifier [-Wunicode]
...0, 2, Phalcon\\Http\\Message\\Uri, 0)
^
./phalcon.zep.h:31150:134: warning: \U used with no following hex digits; treating as '\' followed by identifier [-Wunicode]
...0, 1, Psr\\Http\\Message\\UploadedFileInterface, 0)
^
./phalcon.zep.h:31241:116: warning: \U used with no following hex digits; treating as '\' followed by identifier [-Wunicode]
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_http_message_uri_withfragment, 0, 1, Phalcon\\Http\\Message\\Uri, 0)
^
./phalcon.zep.h:31249:112: warning: \U used with no following hex digits; treating as '\' followed by identifier [-Wunicode]
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_http_message_uri_withpath, 0, 1, Phalcon\\Http\\Message\\Uri, 0)
^
./phalcon.zep.h:31257:112: warning: \U used with no following hex digits; treating as '\' followed by identifier [-Wunicode]
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_http_message_uri_withport, 0, 1, Phalcon\\Http\\Message\\Uri, 0)
^
./phalcon.zep.h:31265:113: warning: \U used with no following hex digits; treating as '\' followed by identifier [-Wunicode]
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_http_message_uri_withquery, 0, 1, Phalcon\\Http\\Message\\Uri, 0)
^
./phalcon.zep.h:31273:114: warning: \U used with no following hex digits; treating as '\' followed by identifier [-Wunicode]
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_http_message_uri_withscheme, 0, 1, Phalcon\\Http\\Message\\Uri, 0)
^
./phalcon.zep.h:31281:116: warning: \U used with no following hex digits; treating as '\' followed by identifier [-Wunicode]
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_http_message_uri_withuserinfo, 0, 1, Phalcon\\Http\\Message\\Uri, 0)
^
./phalcon.zep.h:31290:112: warning: \U used with no following hex digits; treating as '\' followed by identifier [-Wunicode]
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_http_message_uri_withhost, 0, 1, Phalcon\\Http\\Message\\Uri, 0)
^
./phalcon.zep.h:31422:116: warning: \U used with no following hex digits; treating as '\' followed by identifier [-Wunicode]
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_http_message_urifactory_createuri, 0, 0, Psr\\Http\\Message\\UriIn...
^
./phalcon.zep.h:45839:89: warning: \U used with no following hex digits; treating as '\' followed by identifier [-Wunicode]
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_tag_geturlservice, 0, 0, Phalcon\\Url\\UrlInterface, 0)
^
./phalcon.zep.h:45839:94: warning: \U used with no following hex digits; treating as '\' followed by identifier [-Wunicode]
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_tag_geturlservice, 0, 0, Phalcon\\Url\\UrlInterface, 0)
^
./phalcon.zep.h:47203:87: warning: \U used with no following hex digits; treating as '\' followed by identifier [-Wunicode]
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_url_setbasepath, 0, 1, Phalcon\\Url\\UrlInterface, 0)
^
./phalcon.zep.h:47203:92: warning: \U used with no following hex digits; treating as '\' followed by identifier [-Wunicode]
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_url_setbasepath, 0, 1, Phalcon\\Url\\UrlInterface, 0)
^
./phalcon.zep.h:47215:86: warning: \U used with no following hex digits; treating as '\' followed by identifier [-Wunicode]
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_url_setbaseuri, 0, 1, Phalcon\\Url\\UrlInterface, 0)
^
./phalcon.zep.h:47215:91: warning: \U used with no following hex digits; treating as '\' followed by identifier [-Wunicode]
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_url_setbaseuri, 0, 1, Phalcon\\Url\\UrlInterface, 0)
^
./phalcon.zep.h:47227:92: warning: \U used with no following hex digits; treating as '\' followed by identifier [-Wunicode]
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_url_setstaticbaseuri, 0, 1, Phalcon\\Url\\UrlInterface, 0)
^
./phalcon.zep.h:47227:97: warning: \U used with no following hex digits; treating as '\' followed by identifier [-Wunicode]
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_url_setstaticbaseuri, 0, 1, Phalcon\\Url\\UrlInterface, 0)
^
/Applications/XAMPP/xamppfiles/htdocs/cphalcon/build/php7/64bits/phalcon.zep.c:8282:9: warning: nonnull parameter 'ce' will
evaluate to 'true' on first encounter [-Wpointer-bool-conversion]
while (ce) {
~~~~~ ^~
/Applications/XAMPP/xamppfiles/htdocs/cphalcon/build/php7/64bits/phalcon.zep.c:3061:83: note: declared 'nonnull' here
static int zephir_has_constructor_ce(const zend_class_entry *ce) ZEPHIR_ATTR_PURE ZEPHIR_ATTR_NONNULL;
^
./php_phalcon.h:73:45: note: expanded from macro 'ZEPHIR_ATTR_NONNULL'
# define ZEPHIR_ATTR_NONNULL __attribute__((nonnull))
^
/Applications/XAMPP/xamppfiles/htdocs/cphalcon/build/php7/64bits/phalcon.zep.c:12759:74: warning: format specifies type 'long'
but the argument has type 'zend_long' (aka 'long long') [-Wformat]
php_error_docref(NULL, E_WARNING, "max(%ld) is smaller than min(%ld)", max, min);
~~~ ^~~
%lld
/Applications/XAMPP/xamppfiles/htdocs/cphalcon/build/php7/64bits/phalcon.zep.c:12759:79: warning: format specifies type 'long'
but the argument has type 'zend_long' (aka 'long long') [-Wformat]
php_error_docref(NULL, E_WARNING, "max(%ld) is smaller than min(%ld)", max, min);
~~~ ^~~
%lld
/Applications/XAMPP/xamppfiles/htdocs/cphalcon/build/php7/64bits/phalcon.zep.c:140546:35: warning: \U used with no following hex
digits; treating as '\' followed by identifier [-Wunicode]
ZEPHIR_REGISTER_CLASS_EX(Phalcon\\Url, Exception, phalcon, url_exception, phalcon_exception_ce, NULL, 0);
^
/Applications/XAMPP/xamppfiles/htdocs/cphalcon/build/php7/64bits/phalcon.zep.c:140564:36: warning: \U used with no following hex
digits; treating as '\' followed by identifier [-Wunicode]
ZEPHIR_REGISTER_INTERFACE(Phalcon\\Url, UrlInterface, phalcon, url_urlinterface, phalcon_url_urlinterface_method_entry);
^
/Applications/XAMPP/xamppfiles/htdocs/cphalcon/build/php7/64bits/phalcon.zep.c:140757:65: warning: incompatible pointer types
passing 'zend_ulong *' (aka 'unsigned long long *') to parameter of type 'unsigned long *' [-Wincompatible-pointer-types]
...replace = phalcon_replace_marker(1, paths, replacements, &position, cursor, marker);
^~~~~~~~~
/Applications/XAMPP/xamppfiles/htdocs/cphalcon/build/php7/64bits/phalcon.zep.c:140625:89: note: passing argument to parameter
'position' here
zval *phalcon_replace_marker(int named, zval *paths, zval *replacements, unsigned long *position, char *cursor, char *marker)
^
/Applications/XAMPP/xamppfiles/htdocs/cphalcon/build/php7/64bits/phalcon.zep.c:140791:65: warning: incompatible pointer types
passing 'zend_ulong *' (aka 'unsigned long long *') to parameter of type 'unsigned long *' [-Wincompatible-pointer-types]
...replace = phalcon_replace_marker(0, paths, replacements, &position, cursor, marker);
^~~~~~~~~
/Applications/XAMPP/xamppfiles/htdocs/cphalcon/build/php7/64bits/phalcon.zep.c:140625:89: note: passing argument to parameter
'position' here
zval *phalcon_replace_marker(int named, zval *paths, zval *replacements, unsigned long *position, char *cursor, char *marker)
^
/Applications/XAMPP/xamppfiles/htdocs/cphalcon/build/php7/64bits/phalcon.zep.c:140817:64: warning: incompatible pointer types
passing 'zend_ulong *' (aka 'unsigned long long *') to parameter of type 'unsigned long *' [-Wincompatible-pointer-types]
replace = phalcon_replace_marker(0, paths, replacements, &position, curso...
^~~~~~~~~
/Applications/XAMPP/xamppfiles/htdocs/cphalcon/build/php7/64bits/phalcon.zep.c:140625:89: note: passing argument to parameter
'position' here
zval *phalcon_replace_marker(int named, zval *paths, zval *replacements, unsigned long *position, char *cursor, char *marker)
最佳答案
由于版本 4.0.0 Phalcon 需要 PSR 扩展。该扩展可以从this GitHub repository下载和编译。 .安装说明可在 README
上找到存储库的文件。一旦扩展被编译并在您的系统中可用,您需要将它加载到您的 php.ini
.您将需要添加这一行:
extension=psr.so
extension=phalcon.so
50-phalcon.ini
和
20-psr.ini
)。
关于macos - 在 macOS 上的 MAMP 或 XAMPP 上安装错误 phalcon,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59473354/
我卸载了 xampp 并在 Windows 上安装了最新版本的 5.4 php。当我尝试安装新版本的 php 时,C://xampp 中的旧文件夹将被删除。我从该文件夹中删除了除 memcached
在全新安装的 Windows 7 和 Xampp 上,我无法访问 localhost .它只是说找不到,即使 Apache 和 MySQL 运行得很好。到目前为止我尝试过的: 检查 hosts此行的文
我最近没有在我的 xampp 中进行任何更改,直到昨天它都在正常工作。 但是现在我得到了这个错误: Object not found! The requested URL was not found
我最近没有在我的 xampp 中进行任何更改,直到昨天它都在正常工作。 但是现在我得到了这个错误: Object not found! The requested URL was not found
我在笔记本电脑上安装了Xampp 3.2.1版,之前MySQL在它上面运行得很好,但突然MySQL停止运行,而阿帕奇和其他公司都在运行。当我点击开始MySQL时,它显示这个错误我使用Windows 1
我希望在小型办公室内使用 xampp 设置服务器。我当然会保护 xampp,但为了让网络上的其他 4 台 PC 可以使用我的 web 应用程序,我是否只需创建一个虚拟主机?有没有办法确保只能在局域网上
我希望能够在 c:\xampp-scope 之外使用别名,如 alias /opt "C:\opt" 在 xampp 中有一些设置我无法确定,尝试更改用户,添加等,但这些设置都不起作用,它是一个纯粹的
我正在使用 XAMPP,Apache 2.2.17。我添加了虚拟主机,但我的虚拟主机和 localhost 都指向同一个位置。这是我在 httpd-vhosts.conf 中的代码 ServerNa
试图编辑 xampp 图标,但不能这样做,所以删除了它们。现在我的网页甚至没有 xampp 图标,我无法添加自己的图标。有人可以指导我完成真正有效的整个过程。如果不能,那么就教我如何在我的网站即将托管
已关闭。这个问题是 off-topic 。目前不接受答案。 想要改进这个问题吗? Update the question所以它是on-topic用于堆栈溢出。 已关闭10 年前。 Improve th
当我尝试启动 XAMPP - MySql 时它不起作用。 我已经尝试修复它,但我找不到任何实际的解决方案,我希望你能找到它的问题所在。 有日志: 2019-06-26 9:08:35 0 [Note
出于某种原因,我需要同时运行两个 xampp 副本。我在互联网上阅读了很多教程,但如果我需要运行另一个,他们最终会告诉我关闭当前的 xampp。这有可能实现吗? 最佳答案 您可以使用不同的端口同时运行
关闭。这个问题是off-topic .它目前不接受答案。 想改善这个问题吗? Update the question所以它是 on-topic对于堆栈溢出。 9年前关闭。 Improve this q
如何在 XAMPP 中启用目录和文件列表?在 WAMP 中,它默认启用。 最佳答案 我的 Xampp httpd.conf 在 xampp 目录条目下已经有 Indexes 选项 删除所有默认的#co
我在 xampp 服务器上安装了 Moodle。它安装正确。但是当我尝试注销或任何其他事件时,Firefox 显示错误,页面没有正确重定向。我清除了浏览器的 cookie,但没有用。我重新安装了 Mo
关闭。这个问题不符合Stack Overflow guidelines .它目前不接受答案。 这个问题似乎不是关于 a specific programming problem, a softwar
我目前有 4 个网站使用 XAMPP 在我的家用台式电脑上运行。它们在端口 80、81、7733 和 25293 上运行。 从外部网络访问时,前三个运行良好,但最后一个 (25293) 无法加载。 (
我的 XAMPP 最新版本有问题,这是我第一次使用它,我一直使用 EasyPHP。 在我站点的“include”目录中有一个名为“header.php”的文件,当我从本地主机浏览该文件夹时,如果我直接
我已经安装了 xampp,默认情况下我的网站文件存储在 htdocs 中。如何更改网络目录路径? 最佳答案 编辑文件/opt/lampp/etc/httpd.conf 并更改包含当前 Web 目录路径
我只用 Apache 和 PHP 安装了 XAMPP,现在我意识到我还需要 MySQL。我下载了 XAMPP 安装程序并运行它,但它不会安装在 C:\xampp 中因为它已经存在。 如何将 MySQL
我是一名优秀的程序员,十分优秀!