Bug #77968 [NEW]: extension name must not include funny characters
From: dallas at ekkysoftware dot com
Operating system: linux
PHP version: 7.1.29
Package: *Compile Issues
Bug Type: Bug
Bug description:extension name must not include funny characters
Description:
------------
Hello PHP,
I created an extension with ./ext_skel --extname=texas_api and this
little script was able to create the extension skeleton, but used the
name 'texas_api'. After successfully developing and running on Windows,
I then tried to port to Linux. On Linux, the phpize gave an error and
then the ./configure also erred and the make created a library that was
rejected by the system, as 'not a php library'.
After testing and testing, I finally retired creating the extension but
with the name texasapi instead. This worked without a problem.
Can you please update ./ext_skel to make sure that the all illegal
characters are removed from the extension name, as this can cause
unpredictable results.
Test script:
---------------
Only on Linux:-
./ext_skel --extname=texas_api
phpize
./configure
make
make test
./ext_skel --extname=texasapi
phpize
./configure
make
make test
Expected result:
----------------
no error
Actual result:
--------------
NOTICE: PHP message: PHP Warning: PHP Startup: Invalid library (maybe
not a PHP library) 'texas_api.so' in Unknown on line 0
--
Edit bug report at https://bugs.php.net/bug.php?id=77968&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=77968&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=77968&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=77968&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=77968&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=77968&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=77968&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=77968&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=77968&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=77968&r=support
Expected behavior: https://bugs.php.net/fix.php?id=77968&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=77968&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=77968&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=77968&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=77968&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=77968&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=77968&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=77968&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=77968&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=77968&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=77968&r=mysqlcfg
Thread (4 messages)
- dallas at ekkysoftware dot com