Opened 11 years ago

Last modified 11 years ago

#38293 new enhancement

php54 @5.4.12 Enable Thread Safety

Reported by: waltersonntag@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.1.3
Keywords: Cc:
Port: php54

Description

I am trying to get php54 installed with "Thread Safety => enabled".

I am able to get "Thread Safety" enabled by compiling php 5.4.12 from the php.net source, by appending configure arguments:

  • --enable-maintainer-zts
  • --with-tsrm-pthreads

I have been unsuccessful in enabling "Thread Safety" by editing the php/Portfile. I have tried to add this:

  • configure.args-append --enable-maintainer-zts
  • configure.args-append --with-tsrm-pthreads

.. and also tried to append this to the main "configure.args" declaration:

  • --enable-maintainer-zts \
  • --with-tsrm-pthreads

However, neither of those methods seemed to actually compile php54 with "Thread Safety" enabled.

Perhaps I am just doing it wrong but any help with this issue would be greatly appreciated.

Change History (3)

comment:1 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Are you requesting that we add a variant for thread safety to the php53/php54/php55 ports? Or perhaps that we enable it always? What is the significance of enabling thread safety? Are there any negative consequences?

Certainly, if using that argument on the command line works, then putting it in the portfile in the right place will work too. Either you didn't put it in the right place in the portfile, or you received a pre-compiled binary from our server; if the latter, avoid that by using the -s switch.

comment:2 Changed 11 years ago by jmroot (Joshua Root)

Owner: changed from macports-tickets@… to ryandesign@…
Port: php54 added

comment:3 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Can you provide some answers to the questions I asked above?

I'm also concerned about whether this change would affect any of the modules.

Note: See TracTickets for help on using tickets.