Problems with pthreads in PHP












1















I have a problem with pthreads in PHP.



When I start apache I see error like this:



php.exe - Entry point not found
The procedure entry point was not found _zend_hash_update@@12 in library D:xamppphpextphp_pthreads.dll


When I execute script in CMD I have a warning:



PHP Warning:  PHP Startup: Unable to load dynamic library 'php_pthreads.dll' (tried: D:xamppphpextphp_pthreads.dll


I copied pthreadVC2.dll to:



C:/windows/system32
D:/xampp/php
D:/xampp/apache/bin


And I copied last file php_pthreads.dll to:



D:/xampp/ext


I added to php.ini line with:



extension=php_pthreads.dll


My config:




  • XAMPP on Windows 10

  • PHP Version 7.3.0

  • Compiler: MSVC15 (Visual C++ 2017)

  • Architecture: x86

  • Thread Safety is enabled

  • Thread API is Windows Threads

  • php_threads 3.1.6 x86 downloaded from https://windows.php.net/downloads/pecl/releases/pthreads/3.1.6/


I tried in php 7.2.x and i had the same problem but other apache startup error message.
Maybe someone can help me.










share|improve this question





























    1















    I have a problem with pthreads in PHP.



    When I start apache I see error like this:



    php.exe - Entry point not found
    The procedure entry point was not found _zend_hash_update@@12 in library D:xamppphpextphp_pthreads.dll


    When I execute script in CMD I have a warning:



    PHP Warning:  PHP Startup: Unable to load dynamic library 'php_pthreads.dll' (tried: D:xamppphpextphp_pthreads.dll


    I copied pthreadVC2.dll to:



    C:/windows/system32
    D:/xampp/php
    D:/xampp/apache/bin


    And I copied last file php_pthreads.dll to:



    D:/xampp/ext


    I added to php.ini line with:



    extension=php_pthreads.dll


    My config:




    • XAMPP on Windows 10

    • PHP Version 7.3.0

    • Compiler: MSVC15 (Visual C++ 2017)

    • Architecture: x86

    • Thread Safety is enabled

    • Thread API is Windows Threads

    • php_threads 3.1.6 x86 downloaded from https://windows.php.net/downloads/pecl/releases/pthreads/3.1.6/


    I tried in php 7.2.x and i had the same problem but other apache startup error message.
    Maybe someone can help me.










    share|improve this question



























      1












      1








      1


      1






      I have a problem with pthreads in PHP.



      When I start apache I see error like this:



      php.exe - Entry point not found
      The procedure entry point was not found _zend_hash_update@@12 in library D:xamppphpextphp_pthreads.dll


      When I execute script in CMD I have a warning:



      PHP Warning:  PHP Startup: Unable to load dynamic library 'php_pthreads.dll' (tried: D:xamppphpextphp_pthreads.dll


      I copied pthreadVC2.dll to:



      C:/windows/system32
      D:/xampp/php
      D:/xampp/apache/bin


      And I copied last file php_pthreads.dll to:



      D:/xampp/ext


      I added to php.ini line with:



      extension=php_pthreads.dll


      My config:




      • XAMPP on Windows 10

      • PHP Version 7.3.0

      • Compiler: MSVC15 (Visual C++ 2017)

      • Architecture: x86

      • Thread Safety is enabled

      • Thread API is Windows Threads

      • php_threads 3.1.6 x86 downloaded from https://windows.php.net/downloads/pecl/releases/pthreads/3.1.6/


      I tried in php 7.2.x and i had the same problem but other apache startup error message.
      Maybe someone can help me.










      share|improve this question
















      I have a problem with pthreads in PHP.



      When I start apache I see error like this:



      php.exe - Entry point not found
      The procedure entry point was not found _zend_hash_update@@12 in library D:xamppphpextphp_pthreads.dll


      When I execute script in CMD I have a warning:



      PHP Warning:  PHP Startup: Unable to load dynamic library 'php_pthreads.dll' (tried: D:xamppphpextphp_pthreads.dll


      I copied pthreadVC2.dll to:



      C:/windows/system32
      D:/xampp/php
      D:/xampp/apache/bin


      And I copied last file php_pthreads.dll to:



      D:/xampp/ext


      I added to php.ini line with:



      extension=php_pthreads.dll


      My config:




      • XAMPP on Windows 10

      • PHP Version 7.3.0

      • Compiler: MSVC15 (Visual C++ 2017)

      • Architecture: x86

      • Thread Safety is enabled

      • Thread API is Windows Threads

      • php_threads 3.1.6 x86 downloaded from https://windows.php.net/downloads/pecl/releases/pthreads/3.1.6/


      I tried in php 7.2.x and i had the same problem but other apache startup error message.
      Maybe someone can help me.







      php pthreads php-7.2 pthreads-win32 php-7.3






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jan 2 at 15:14







      NeroTestero

















      asked Jan 2 at 13:59









      NeroTesteroNeroTestero

      566




      566
























          1 Answer
          1






          active

          oldest

          votes


















          1














          My problem is solved!



          My advices:




          • Downgrade to 7.2.x version PHP on xampp (because pthreads 3.2.0 is compltible with php 7.2)

          • Download and install php_pthreads-3.2.0 (which is compiled MSVC 15 the same as
            PHP. Link: https://github.com/krakjoe/pthreads/releases)

          • Delete pthreadVC2.dll from apache/bin (because it isn't needed)

          • Make copy php.ini and save copy as php-cli.ini

          • From php.ini remove line with extension=php_pthreads.dll (this line must be exist in php-cli.ini)


          Try in CMD command: php --ini and check Loaded Configuration File. That must be set as php-cli.ini. And also try command: php -i and find pthreads in result.






          share|improve this answer


























          • What is the use for php-cli.ini? pthreads is not diplayed in phpinfo()!

            – BigPino
            Mar 12 at 17:25











          • Because pthreads works only with CLI. Try to use PHP in command line eq. terminal, CMD. Learn more in: secure.php.net/manual/en/intro.pthreads.php

            – NeroTestero
            Mar 13 at 18:19











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54007662%2fproblems-with-pthreads-in-php%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          1














          My problem is solved!



          My advices:




          • Downgrade to 7.2.x version PHP on xampp (because pthreads 3.2.0 is compltible with php 7.2)

          • Download and install php_pthreads-3.2.0 (which is compiled MSVC 15 the same as
            PHP. Link: https://github.com/krakjoe/pthreads/releases)

          • Delete pthreadVC2.dll from apache/bin (because it isn't needed)

          • Make copy php.ini and save copy as php-cli.ini

          • From php.ini remove line with extension=php_pthreads.dll (this line must be exist in php-cli.ini)


          Try in CMD command: php --ini and check Loaded Configuration File. That must be set as php-cli.ini. And also try command: php -i and find pthreads in result.






          share|improve this answer


























          • What is the use for php-cli.ini? pthreads is not diplayed in phpinfo()!

            – BigPino
            Mar 12 at 17:25











          • Because pthreads works only with CLI. Try to use PHP in command line eq. terminal, CMD. Learn more in: secure.php.net/manual/en/intro.pthreads.php

            – NeroTestero
            Mar 13 at 18:19
















          1














          My problem is solved!



          My advices:




          • Downgrade to 7.2.x version PHP on xampp (because pthreads 3.2.0 is compltible with php 7.2)

          • Download and install php_pthreads-3.2.0 (which is compiled MSVC 15 the same as
            PHP. Link: https://github.com/krakjoe/pthreads/releases)

          • Delete pthreadVC2.dll from apache/bin (because it isn't needed)

          • Make copy php.ini and save copy as php-cli.ini

          • From php.ini remove line with extension=php_pthreads.dll (this line must be exist in php-cli.ini)


          Try in CMD command: php --ini and check Loaded Configuration File. That must be set as php-cli.ini. And also try command: php -i and find pthreads in result.






          share|improve this answer


























          • What is the use for php-cli.ini? pthreads is not diplayed in phpinfo()!

            – BigPino
            Mar 12 at 17:25











          • Because pthreads works only with CLI. Try to use PHP in command line eq. terminal, CMD. Learn more in: secure.php.net/manual/en/intro.pthreads.php

            – NeroTestero
            Mar 13 at 18:19














          1












          1








          1







          My problem is solved!



          My advices:




          • Downgrade to 7.2.x version PHP on xampp (because pthreads 3.2.0 is compltible with php 7.2)

          • Download and install php_pthreads-3.2.0 (which is compiled MSVC 15 the same as
            PHP. Link: https://github.com/krakjoe/pthreads/releases)

          • Delete pthreadVC2.dll from apache/bin (because it isn't needed)

          • Make copy php.ini and save copy as php-cli.ini

          • From php.ini remove line with extension=php_pthreads.dll (this line must be exist in php-cli.ini)


          Try in CMD command: php --ini and check Loaded Configuration File. That must be set as php-cli.ini. And also try command: php -i and find pthreads in result.






          share|improve this answer















          My problem is solved!



          My advices:




          • Downgrade to 7.2.x version PHP on xampp (because pthreads 3.2.0 is compltible with php 7.2)

          • Download and install php_pthreads-3.2.0 (which is compiled MSVC 15 the same as
            PHP. Link: https://github.com/krakjoe/pthreads/releases)

          • Delete pthreadVC2.dll from apache/bin (because it isn't needed)

          • Make copy php.ini and save copy as php-cli.ini

          • From php.ini remove line with extension=php_pthreads.dll (this line must be exist in php-cli.ini)


          Try in CMD command: php --ini and check Loaded Configuration File. That must be set as php-cli.ini. And also try command: php -i and find pthreads in result.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Jan 3 at 15:17

























          answered Jan 3 at 14:33









          NeroTesteroNeroTestero

          566




          566













          • What is the use for php-cli.ini? pthreads is not diplayed in phpinfo()!

            – BigPino
            Mar 12 at 17:25











          • Because pthreads works only with CLI. Try to use PHP in command line eq. terminal, CMD. Learn more in: secure.php.net/manual/en/intro.pthreads.php

            – NeroTestero
            Mar 13 at 18:19



















          • What is the use for php-cli.ini? pthreads is not diplayed in phpinfo()!

            – BigPino
            Mar 12 at 17:25











          • Because pthreads works only with CLI. Try to use PHP in command line eq. terminal, CMD. Learn more in: secure.php.net/manual/en/intro.pthreads.php

            – NeroTestero
            Mar 13 at 18:19

















          What is the use for php-cli.ini? pthreads is not diplayed in phpinfo()!

          – BigPino
          Mar 12 at 17:25





          What is the use for php-cli.ini? pthreads is not diplayed in phpinfo()!

          – BigPino
          Mar 12 at 17:25













          Because pthreads works only with CLI. Try to use PHP in command line eq. terminal, CMD. Learn more in: secure.php.net/manual/en/intro.pthreads.php

          – NeroTestero
          Mar 13 at 18:19





          Because pthreads works only with CLI. Try to use PHP in command line eq. terminal, CMD. Learn more in: secure.php.net/manual/en/intro.pthreads.php

          – NeroTestero
          Mar 13 at 18:19




















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54007662%2fproblems-with-pthreads-in-php%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          MongoDB - Not Authorized To Execute Command

          Npm cannot find a required file even through it is in the searched directory

          in spring boot 2.1 many test slices are not allowed anymore due to multiple @BootstrapWith