Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with old extensions loaded from %PATH% #4

Open
ghost opened this Issue Mar 31, 2018 · 16 comments

Comments

Projects
None yet
2 participants
@ghost
Copy link

ghost commented Mar 31, 2018

hi,

[31-Mar-2018 12:29:26 UTC] PHP Warning: PHP Startup: curl: Unable to initialize module
Module compiled with module API=20100525
PHP compiled with module API=20131226
These options need to match
in Unknown on line 0

[31-Mar-2018 12:29:26 UTC] PHP Warning: PHP Startup: fileinfo: Unable to initialize module
Module compiled with module API=20100525
PHP compiled with module API=20131226
These options need to match
in Unknown on line 0

[31-Mar-2018 12:29:29 UTC] PHP Warning: PHP Startup: curl: Unable to initialize module
Module compiled with module API=20100525
PHP compiled with module API=20131226
These options need to match
in Unknown on line 0

[31-Mar-2018 12:29:30 UTC] PHP Warning: PHP Startup: fileinfo: Unable to initialize module
Module compiled with module API=20100525
PHP compiled with module API=20131226
These options need to match
in Unknown on line 0

regards,
jan

@ghost

This comment has been minimized.

Copy link
Author

ghost commented Mar 31, 2018

[Sat Mar 31 14:56:06.955898 2018] [mpm_winnt:notice] [pid 5008:tid 536] AH00422: Parent: Received shutdown signal -- Shutting down the server.
[Sat Mar 31 14:56:48.385908 2018] [mpm_winnt:notice] [pid 5008:tid 536] AH00431: Parent: Forcing termination of child process 3000
Failed loading ext\php_xdebug.dll
[Sat Mar 31 14:56:51.001942 2018] [mpm_winnt:notice] [pid 5504:tid 536] AH00455: Apache/2.4.10 (Win32) OpenSSL/1.0.1h PHP/5.6.24 configured -- resuming normal operations
[Sat Mar 31 14:56:51.001942 2018] [mpm_winnt:notice] [pid 5504:tid 536] AH00456: Apache Lounge VC9 Server built: Jul 19 2014 13:07:40
[Sat Mar 31 14:56:51.001942 2018] [core:notice] [pid 5504:tid 536] AH00094: Command line: 'C:\xampp\apache\bin\httpd.exe -d C:/xampp/apache'
[Sat Mar 31 14:56:51.001942 2018] [mpm_winnt:notice] [pid 5504:tid 536] AH00418: Parent: Created child process 5524
[Sat Mar 31 14:56:52.845339 2018] [mpm_winnt:notice] [pid 5524:tid 1600] AH00354: Child: Starting 250 worker threads.

@ProgerXP

This comment has been minimized.

Copy link
Owner

ProgerXP commented Mar 31, 2018

You have to read the README more carefully:

(3.) This build bundles all supported extensions except for curl, fileinfo and xdebug (also ported to XP) so comment out all extension=xxx lines in php.ini except for these.

@ghost

This comment has been minimized.

Copy link
Author

ghost commented Mar 31, 2018

do not really understand..?

the error occurs when i comment out all, but not "curl", "fileinfo" and "xdebug"...

the versions i use of these 3 extensions are your compiled ones..

@ghost

This comment has been minimized.

Copy link
Author

ghost commented Mar 31, 2018

I use windows server 2003 x32 with all updated from m$ installed, not xp..

@ProgerXP

This comment has been minimized.

Copy link
Owner

ProgerXP commented Mar 31, 2018

I use windows server 2003 x32 with all updated from m$ installed, not xp..

This version runs on XP x64 and so should run on WinServer 2003.

the versions i use of these 3 extensions are your compiled ones..

No, apparently you are trying to use extensions from PHP 5.4, which has API 2010. PHP 5.6 (in this repo) has API 2013.

You need to have uncommented extension=php_curl.dll lines in php.ini and actual extension DLLs from this repo: https://github.com/ProgerXP/php-5.6-xp/tree/master/release/x86/ext

@ProgerXP ProgerXP added the question label Mar 31, 2018

@ghost

This comment has been minimized.

Copy link
Author

ghost commented Mar 31, 2018

they are from https://github.com/ProgerXP/php-5.6-xp/tree/master/release/x86/ext

my php.ini is that when the problem occurs:

;extension=php_mbstring.dll ---
;extension=php_av.dll ----
;extension=php_blenc.dll ----
;extension=php_bz2.dll ---
;extension=php_com_dotnet.dll --
;extension=php_couchdb.dll ----
;extension=php_couchbase.dll ----

extension=php_curl.dll

;extension=php_dba.dll ----
;extension=php_dbase.dll ----
;extension=php_dio.dll ----
;extension=php_discount.dll ----
;extension=php_doublemetaphone.dll ----
;extension=php_enchant.dll
;extension=php_excel.dll ----
;extension=php_exif.dll ---
;extension=php_ffmpeg.dll ----

extension=php_fileinfo.dll

;extension=php_fribidi.dll ----
;extension=php_gd2.dll ---
;extension=php_gender.dll ----
;extension=php_geoip.dll ----
;extension=php_gettext.dll ---
;extension=php_gmp.dll ---
;extension=php_haru.dll ----
;extension=php_hrtime.dll ----
;extension=php_htscanner.dll ----
;extension=php_propro.dll
;extension=php_raphf.dll
;extension=php_http.dll ----
;extension=php_http1.dll
;extension=php_igbinary.dll ----
;extension=php_imagick.dll ----
;extension=php_imap.dll ----
;extension=php_interbase.dll ----
;extension=php_intl.dll ----
;extension=php_jsmin.dll ----
;extension=php_jsonc.dll
;extension=php_jsond.dll
;extension=php_judy.dll ----
;extension=php_ldap.dll ----
;extension=php_lzf.dll ----
;extension=php_mailparse.dll ----
;extension=php_mdbtools.dll ----
;extension=php_mongo.dll ----
;extension=php_msgpack.dll ----
;extension=php_mysql.dll ----
;extension=php_mysqli.dll ----
;extension=php_mysqlnd_qc.dll
;extension=php_oauth.dll ----
;extension=php_oci8.dll
;extension=php_oci8_11g.dll
;extension=php_oci8_12c.dll ----
;extension=php_openssl.dll ---
;extension=php_crypto.dll ----
;extension=php_pcsc.dll ----
;extension=php_pdflib.dll ----
;extension=php_pdo_firebird.dll ----
;extension=php_pdo_mysql.dll ----
;extension=php_pdo_oci.dll ----
;extension=php_pdo_odbc.dll ----
;extension=php_pdo_pgsql.dll ---
;extension=php_pdo_sqlite.dll ---
;extension=php_pdo_sqlsrv.dll ----
;extension=php_pgsql.dll ---
;extension=php_pop3.dll ----
;extension=php_printer.dll ----
;extension=php_pspell.dll ----
;extension=php_pthreads.dll ----
;extension=php_qb.dll
;extension=php_radius.dll ----
;extension=php_rar.dll ----
;extension=php_redis.dll ----
;extension=php_rsync.dll ----
;extension=php_shmop.dll ----
;extension=php_smtp.dll ----
;extension=php_snmp.dll ---
;extension=php_soap.dll ----
;extension=php_sockets.dll ---
;extension=php_event.dll ; must be loaded after php_sockets.dll ----
;extension=php_solr.dll ----
;extension=php_sqlite3.dll ---
;extension=php_sqlsrv.dll ----
;extension=php_ssdeep.dll ----
;extension=php_ssh2.dll ----
;extension=php_stats.dll ----
;extension=php_stomp.dll ----
;extension=php_strict.dll
;extension=php_svn.dll ----
;extension=php_sybase_ct.dll
;extension=php_sync.dll ----
;extension=php_tidy.dll ----
;extension=php_timezonedb.dll ----
;extension=php_translit.dll ----
;extension=php_uploadprogress.dll ----
;extension=php_uprofiler.dll ----
;extension=php_varnish.dll ----
;extension=php_wfio.dll ----
;extension=php_win32ps.dll ----
;extension=php_win32service.dll
;extension=php_xhprof.dll
;extension=php_xmldiff.dll ----
;extension=php_xmlrpc.dll ---
;extension=php_xsl.dll ----
;extension=php_xslcache.dll ----

;extension=php_memcache.dll
;extension=php_xcache.dll
;extension=php_apc.dll
;extension=php_apcu.dll
;extension=php_eaccelerator.dll
;zend_extension=php_opcache.dll

zend_extension=php_xdebug.dll

@ghost

This comment has been minimized.

Copy link
Author

ghost commented Mar 31, 2018

php_curl.dll = 5.6.24.0
php_fileinfo.dll = 5.6.24.0
php_xdebug.dll = 5.6.24.0

...maybe there is a problem with other apache/php and system PATH variable. will try absolute path now...

@ghost

This comment has been minimized.

Copy link
Author

ghost commented Mar 31, 2018

yes, that was the problem, i'm sorry. i thought that i will use automatically the ones from php/ext when i use relative path?! but i was wrong so it seems...;)

now it seems almost to work, there is still a xdebug message in php_errors.log:

[31-Mar-2018 14:03:12 UTC] PHP Warning: Xdebug MUST be loaded as a Zend extension in Unknown on line 0

[31-Mar-2018 14:03:13 UTC] PHP Warning: Xdebug MUST be loaded as a Zend extension in Unknown on line 0

@ghost

This comment has been minimized.

Copy link
Author

ghost commented Mar 31, 2018

solution was that:

zend_extension="C:/xampp/php/ext/php_xdebug.dll"
;extension="C:/xampp/php/ext/php_xdebug.dll"

thank you very much for your php package!!! :)

@ProgerXP ProgerXP changed the title your 3 compiled extensions are incompatible to your php version... Issue with old extensions loaded from %PATH% Mar 31, 2018

@ghost

This comment has been minimized.

Copy link
Author

ghost commented Mar 31, 2018

some extensions from here are compatible with your php version, if there are some people they need more extensions: https://phpdev.toolsforresearch.com/php-5.6.4-Win32-VC11-x86-xp.zip

(https://www.apachelounge.com/viewtopic.php?p=36701#36701)

e.g.

extension="C:/xampp/php/ext/additional/php_xcache.dll"
;extension=php_apc.dll
extension="C:/xampp/php/ext/additional/php_apcu.dll"
;extension=php_eaccelerator.dll
zend_extension="C:/xampp/php/ext/additional/php_opcache.dll"

they are v. 5.6.4.0, your version is v. 5.6.24 but it seems to work :)

@ProgerXP

This comment has been minimized.

Copy link
Owner

ProgerXP commented Apr 1, 2018

Thanks for this info. Added links to the README.

@ProgerXP ProgerXP referenced this issue May 16, 2018

Closed

odbc is missing #5

@jarek3

This comment has been minimized.

Copy link

jarek3 commented Oct 18, 2018

Hello, I have installed XAMPP by your advice, PHP 5.6 works in it, O.K. Only in Nette I do not have the following functions see screen. I have Windows XP Pro/ SP3 32bit.
nette-checker

@ProgerXP

This comment has been minimized.

Copy link
Owner

ProgerXP commented Oct 20, 2018

@jarek3
memcache and intl extensions were not ported to XP and are not available in this project.

To use fileinfo you need to have extension=php_fileinfo.dll line in your php.ini. See the test folder.

Other extensions (pdo, pdo_sqlite, mbstring, gd) work for me. They are enabled by default (see release/x86/phpinfo.txt).

Use <?php phpinfo(); or php -i to see what extensions were really loaded. Don't rely on the output from Nette (or any other framework).

@jarek3

This comment has been minimized.

Copy link

jarek3 commented Nov 20, 2018

I do not know where I'm wrong, mbstring still does not work in PHP.

@jarek3

This comment has been minimized.

Copy link

jarek3 commented Nov 20, 2018

Hi,

In php.ini I wrote 'extension_dir = "C: \ xampp \ php \ ext"' instead of 'extension_dir = "ext"'. Everything works except for intl extension. At the xampp startup, I have to accept the following errors:

"The application could not be started because the OCID.dll component (avcodec-56.dll, LIBPQ.dll, aspell-15.dll, pthreadVC2.dll, libfuzzy-2.dll, libsvn_client-1. dll, avcodec-56.dll, libcouchbase.dll, libxl.dll, avcodec-52.dll, CORE_RL_wand_.dll, fbclient.dll, icuuc53.dll, libsasl.dll, glib-2.dll, pdflib.dll) can not be found "You may be able to resolve the issue by re-installing the application."

How can they be removed?

@ProgerXP

This comment has been minimized.

Copy link
Owner

ProgerXP commented Nov 24, 2018

intl extension hasn't been ported, as the README suggests.

I don't know what OCID.dll is and Google doesn't seem to, either. I don't have this DLL on my system.

You can get rid of the warning by commenting out the appropriate line in php.ini (extension=intl). This will cause intl not to be loaded (it wouldn't work with this port anyway).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.