Hyperf\RpcClient\ProxyFactory 使用RPC自动生成客户端功能与打包器冲突

Open
#4 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
30/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
php
Domain
build-system

Research direction

Reproduce the failure with php hyperf-skeleton.phar start using the default packaging path, focusing on the Hyperf\RpcClient\ProxyFactory proxy generation and the packager. Trace why the packaged application cannot write the proxy file; done means the generated package starts without the write failure or segmentation fault.

Written by the indexing model from the issue text.

Description

image

在使用默认路径打包时,程序无法写入代理文件导致无法启动

$ php hyperf-skeleton.phar start       
#!/usr/bin/env php
[DEBUG] Event Hyperf\Framework\Event\BootApplication handled by Hyperf\RpcMultiplex\Listener\RegisterProtocolListener listener.
[DEBUG] Event Hyperf\Framework\Event\BootApplication handled by Hyperf\RpcClient\Listener\AddConsumerDefinitionListener listener.
[DEBUG] Event Hyperf\Framework\Event\BootApplication handled by Hyperf\JsonRpc\Listener\RegisterProtocolListener listener.
[DEBUG] Event Hyperf\Framework\Event\BootApplication handled by Hyperf\ExceptionHandler\Listener\ExceptionHandlerListener listener.
[DEBUG] Event Hyperf\Framework\Event\BootApplication handled by Hyperf\DbConnection\Listener\RegisterConnectionResolverListener listener.
[DEBUG] Event Hyperf\Framework\Event\BootApplication handled by Hyperf\Config\Listener\RegisterPropertyHandlerListener listener.
[1]    80421 segmentation fault  php hyperf-skeleton.phar start
Dominant language
PHP
Stars
3
Forks
0
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from hyperf/phar

All issues in hyperf/phar

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.