Date: Mon, 25 Dec 2023 13:23:16 +0300 From: Odhiambo Washington <odhiambo@gmail.com> To: questions <questions@freebsd.org>, php-general@lists.php.net Subject: PHP Issue - for the sysadmins Message-ID: <CAAdA2WMj0KH=62q_LAwY9KJa1EpHUqw2GbVNUD9U4xZGJjj_TA@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
I am perplexed by a situation here:
When I run php -r "print_r(get_loaded_extensions());", I get the output
below, which has memcache/memcached modules loaded.
```
Array
(
[0] => Core
[1] => date
[2] => libxml
[3] => openssl
[4] => pcre
[5] => hash
[6] => json
[7] => random
[8] => Reflection
[9] => SPL
[10] => session
[11] => standard
[12] => mysqlnd
[13] => apcu
[14] => bcmath
[15] => bz2
[16] => calendar
[17] => ctype
[18] => curl
[19] => dom
[20] => mbstring
[21] => FFI
[22] => fileinfo
[23] => filter
[24] => ftp
[25] => gd
[26] => gettext
[27] => gmp
[28] => iconv
[29] => imagick
[30] => intl
[31] => ldap
[32] => exif
[33] => mysqli
[34] => PDO
[35] => pgsql
[36] => zlib
[37] => posix
[38] => pspell
[39] => SimpleXML
[40] => soap
[41] => sockets
[42] => sodium
[43] => sqlite3
[44] => sysvmsg
[45] => sysvsem
[46] => sysvshm
[47] => tidy
[48] => tokenizer
[49] => xml
[50] => xmlwriter
[51] => zip
[52] => Phar
[53] => imap
[54] => memcache
[55] => memcached
[56] => pdo_mysql
[57] => pdo_pgsql
[58] => pdo_sqlite
[59] => redis
[60] => xmlreader
[61] => xsl
[62] => Zend OPcache
)
```
However, when I put a file containing <?PHP phpinfo(); ?> in a publicly
accessible directory and access it from a browser, the two modules are NOT
listed as loaded.
What am I missing?
--
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223
"Oh, the cruft.", egrep -v '^$|^.*#' ¯\_(ツ)_/¯ :-)
[How to ask smart questions:
http://www.catb.org/~esr/faqs/smart-questions.html]
[-- Attachment #2 --]
<div dir="ltr">I am perplexed by a situation here:<div><br></div><div>When I run php -r "print_r(get_loaded_extensions());", I get the output below, which has memcache/memcached modules loaded.</div><div>```</div>Array<br>(<br> [0] => Core<br> [1] => date<br> [2] => libxml<br> [3] => openssl<br> [4] => pcre<br> [5] => hash<br> [6] => json<br> [7] => random<br> [8] => Reflection<br> [9] => SPL<br> [10] => session<br> [11] => standard<br> [12] => mysqlnd<br> [13] => apcu<br> [14] => bcmath<br> [15] => bz2<br> [16] => calendar<br> [17] => ctype<br> [18] => curl<br> [19] => dom<br> [20] => mbstring<br> [21] => FFI<br> [22] => fileinfo<br> [23] => filter<br> [24] => ftp<br> [25] => gd<br> [26] => gettext<br> [27] => gmp<br> [28] => iconv<br> [29] => imagick<br> [30] => intl<br> [31] => ldap<br> [32] => exif<br> [33] => mysqli<br> [34] => PDO<br> [35] => pgsql<br> [36] => zlib<br> [37] => posix<br> [38] => pspell<br> [39] => SimpleXML<br> [40] => soap<br> [41] => sockets<br> [42] => sodium<br> [43] => sqlite3<br> [44] => sysvmsg<br> [45] => sysvsem<br> [46] => sysvshm<br> [47] => tidy<br> [48] => tokenizer<br> [49] => xml<br> [50] => xmlwriter<br> [51] => zip<br> [52] => Phar<br> [53] => imap<br> [54] => memcache<br> [55] => memcached<br> [56] => pdo_mysql<br> [57] => pdo_pgsql<br> [58] => pdo_sqlite<br> [59] => redis<br> [60] => xmlreader<br> [61] => xsl<br> [62] => Zend OPcache<br>)<div><div>```</div><div><br></div><div>However, when I put a file containing <?PHP phpinfo(); ?> in a publicly accessible directory and access it from a browser, the two modules are NOT listed as loaded.</div><div>What am I missing?</div><div><br></div><div><br></div><div><span class="gmail_signature_prefix"><br></span></div><div><span class="gmail_signature_prefix">--</span></div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div dir="ltr"><div>Best regards,<br>Odhiambo WASHINGTON,<br>Nairobi,KE<br>+254 7 3200 0004/+254 7 2274 3223<br>"<span style="font-size:12.8px">Oh, the cruft.</span><span style="font-size:12.8px">", </span><span style="font-size:12.8px">egrep -v '^$|^.*#' </span><span style="background-color:rgb(34,34,34);color:rgb(238,238,238);font-family:"Lucida Console",Consolas,"Courier New",monospace;font-size:13.6px">¯\_(ツ)_/¯</span><span style="font-size:12.8px"> :-)</span></div><div><span style="font-size:12.8px">[How to ask smart questions: </span><span style="font-size:12.8px"><a href="http://www.catb.org/~esr/faqs/smart-questions.html" target="_blank">http://www.catb.org/~esr/faqs/smart-questions.html</a>]</span></div></div></div></div></div></div>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAAdA2WMj0KH=62q_LAwY9KJa1EpHUqw2GbVNUD9U4xZGJjj_TA>
