首页 \ 问答 \ PHP Closure对象是否有资格进行垃圾回收(Are PHP Closure Objects eligible for garbage collection)

PHP Closure对象是否有资格进行垃圾回收(Are PHP Closure Objects eligible for garbage collection)

我想知道是否有人知道PHP的匿名函数是否符合垃圾回收的条件?

我知道使用create_function创建的函数不是垃圾回收,但我一直无法找到有关使用function(){}语法(内部表示为Closure对象)创建的function(){}任何引用。


I was wondering if anyone knows if PHP's anonymous functions are eligible for garbage collection?

I know that functions created with create_function are not garbage collected but I haven't been able to find any reference about ones created with the function(){} syntax (internally represented as a Closure object).


原文:https://stackoverflow.com/questions/16616456
更新时间:2024-01-30 12:01

最满意答案

您可以通过多种方式进行设置。

您可以使用自适应支付平台 (特别是Pay API )来创建并行或链式支付,以便多个接收方可以在同一交易中接收资金。

您也可以使用Express Checkout进行并行付款,但不能进行链式付款。

主要区别在于,通过并行付款,买方将在结账时看到拆分。 使用链式支付,您可以隐藏它,这样他们只能看到主要接收者。 此外,链接付款可能会延迟,因此您可以在必要时触发佣金以便稍后付款(例如,等待服务完成。)

另一种方法是使用Payments Standard ,Express Checkout或Payments Pro ,并将付款完全转移到一个帐户。 然后设置Pay API请求以向第二接收方提交付款,或使用MassPay API。 这可以在IPN解决方案中设置,因此整个过程都是自动化的。 在这种情况下,您基本上将构建自适应支付平台为您所做的事情,但它会让您在应用程序中的所有内容上获得更多自由。


There are a number of ways you could set this up.

You could use the Adaptive Payments platform, specifically the Pay API, to create parallel or chained payments so that multiple receivers can receive money within the same transaction.

You can also do a parallel payment with Express Checkout, but you can't do a chained payment.

The main difference is that with parallel payments the buyer will see the split during checkout. With a chained payment you can hide that so they only see the primary receiver. Also, chained payments can be delayed so you can trigger the commission to be paid at a later time if necessary (for example, waiting for services to be completed.)

Another way you could do this is to use Payments Standard, Express Checkout, or Payments Pro, and let the payment go entirely to a single account. Then setup a Pay API request to submit payment to the secondary receiver, or use the MassPay API. This could be setup within an IPN solution so the entire thing is automated. In this case you'd basically be building what the adaptive payments platform does for you, but it would give you a little bit more freedom over everything in the application.

相关问答

更多

相关文章

更多

最新问答

更多
  • 获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
  • 如何通过引用返回对象?(How is returning an object by reference possible?)
  • 矩阵如何存储在内存中?(How are matrices stored in memory?)
  • 每个请求的Java新会话?(Java New Session For Each Request?)
  • css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
  • 无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
  • xcode语法颜色编码解释?(xcode syntax color coding explained?)
  • 在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
  • 从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
  • 从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
  • 西安哪有PLC可控制编程的培训
  • 在Entity Framework中选择基类(Select base class in Entity Framework)
  • 在Android中出现错误“数据集和渲染器应该不为null,并且应该具有相同数量的系列”(Error “Dataset and renderer should be not null and should have the same number of series” in Android)
  • 电脑二级VF有什么用
  • Datamapper Ruby如何添加Hook方法(Datamapper Ruby How to add Hook Method)
  • 金华英语角.
  • 手机软件如何制作
  • 用于Android webview中图像保存的上下文菜单(Context Menu for Image Saving in an Android webview)
  • 注意:未定义的偏移量:PHP(Notice: Undefined offset: PHP)
  • 如何读R中的大数据集[复制](How to read large dataset in R [duplicate])
  • Unity 5 Heighmap与地形宽度/地形长度的分辨率关系?(Unity 5 Heighmap Resolution relationship to terrain width / terrain length?)
  • 如何通知PipedOutputStream线程写入最后一个字节的PipedInputStream线程?(How to notify PipedInputStream thread that PipedOutputStream thread has written last byte?)
  • python的访问器方法有哪些
  • DeviceNetworkInformation:哪个是哪个?(DeviceNetworkInformation: Which is which?)
  • 在Ruby中对组合进行排序(Sorting a combination in Ruby)
  • 网站开发的流程?
  • 使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
  • 条带格式类型格式模式编号无法正常工作(Stripes format type format pattern number not working properly)
  • 透明度错误IE11(Transparency bug IE11)
  • linux的基本操作命令。。。