[PHP-DEV] short_open_tag

2002-10-14 Thread Evan Nemerson

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Just a thought, but I think short_open_tag should be Off by default in 
php.ini-dist, to prevent PHP from being confused with XML declarations. I 
know XML declarations aren't required (yet) by w3c, but "XHTML document 
authors are strongly encouraged to use XML declarations in all their 
documents." [http://www.w3.org/TR/xhtml11/conformance.html#s_conform]

I rarely see them in the wild, so I don't think there would be _too_ much of a 
problem with backwards-compatibility... certianly no worse than the 
register_globals fiasco (although it was the right decision).

I'll try to follow this in the archive, but I don't subscribe to this list, so 
if you could CC replies, I'd be grateful.

- -Evan Nemerson
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9qn9W/rncFku1MdIRAhmfAJ9cnzvZk2MIinNXC6z1sNNa3hIo6gCfRilp
QQ2/fCIQ3cW6RY/ZiVeC4o8=
=x9Ig
-END PGP SIGNATURE-


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] Constants

2002-02-13 Thread Evan Nemerson

I was thinking about putting together a list of constants, their purpose, 
what version of PHP they initially appeared in, etc.

So far, I have figured out a function called "REGISTER_LONG_CONSTANT" is 
used, or a constant is defined in the source with a name that has a 
preceeding "PHP_" (eg "PHP_RAND_MAX"- which is 2^31??? why not 2^32? sorry 
off the point.) Are there any other ways? Are these ways inaccurate?

Please reply to my e-mail address ([EMAIL PROTECTED]). I don't subscribe 
to this list.


Evan Nemerson

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] Bug #14075 Updated: PHP/Apache compile with domxml

2001-11-16 Thread evan

ID: 14075
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Old Status: Feedback
Status: Open
Bug Type: DOM XML related
Operating System: RedHat 7.1
PHP Version: 4.0.6
New Comment:

Just wanted to mention I compiled from source on all of the packages, namely, 
libxml2.4.10, apache1.3.22, and php4.0.6 and gave explicit path directions for libxml2 
when using --with-dom=/path/to/xml/source, which I had just built. The oddity here is 
that when make-ing php there were no issues but when I attempted apache the make fails 
(in reality php had the same problem apache did, but was mysteriously fixed when I 
rebuild php again). Unfortunately, this is my nth rebuild of all of the above and I 
still have had no success. I am in the process of getting the most recent php tarball 
and will try to find the libxml-devel rpm (the source?) as I haven't tried that 
approach yet.

Previous Comments:


[2001-11-15 19:29:43] [EMAIL PROTECTED]

You have most likely not installed the -devel rpm for libxml. And it also seems like 
the configure finds some
old version of libxml. Please try the latest CVS snapshot
from http://snaps.php.net/ as it has some fixes in it
for domxml.

--Jani




[2001-11-15 18:07:37] [EMAIL PROTECTED]

Just want to mention my versions:
libxml2-2.4.10-1
apache-1.3.22
php4.0.6
RedHat 7.1




[2001-11-15 17:33:32] [EMAIL PROTECTED]

PHP Configure:

/configure --prefix=/usr --with-config-file-path=/etc 
--disable-debug --enable-pic --enable-shared 
--enable-inline-optimization --with-exec-dir=/usr/bin 
--with-regex=system --with-gettext --with-gd 
--with-jpeg-dir=/usr --with-png --with-zlib --with-db2 
--with-db3 --with-gdbm --enable-debugger 
--enable-magic-quotes --enable-safe-mode --enable-sockets 
--enable-sysvsem --enable-sysvshm --enable-track-vars 
--enable-yp --enable-ftp --enable-wddx --with-mysql 
--without-oracle --without-oci8 --with-xml 
--with-apache=/home/evan/CMS/apache_1.3.22 --with-dom

Apache Configure:

./configure --with-layout=Apache --prefix=/vars/www 
--activate-module=src/modules/php4/libphp4.a

PHP makes fine as does libxml2(I also tried a RH7.1 rpm). 
I also had to do a ln -s to get --with-dom to work 
(originally I pointed --with-dom=/path/to/XML which 
produced identical results as below).
The following is the output of Apache make:


===> src
make[1]: Entering directory `/home/evan/CMS/apache_1.3.22'
make[2]: Entering directory 
`/home/evan/CMS/apache_1.3.22/src'
===> src/os/unix
make[3]: Nothing to be done for `all'.
<=== src/os/unix
===> src/ap
make[3]: Nothing to be done for `all'.
<=== src/ap
===> src/main
make[3]: Nothing to be done for `all'.
<=== src/main
===> src/lib
<=== src/lib
===> src/modules
===> src/modules/standard
make[4]: Nothing to be done for `all'.
<=== src/modules/standard
===> src/modules/php4
make[4]: Nothing to be done for `all'.
<=== src/modules/php4
<=== src/modules
gcc -c  -I./os/unix -I./include   -DLINUX=22 
-I/home/evan/CMS/php-4.0.6 -I/home/evan/CMS/php-4.0.6/main 
-I/home/evan/CMS/php-4.0.6/main 
-I/home/evan/CMS/php-4.0.6/Zend 
-I/home/evan/CMS/php-4.0.6/Zend 
-I/home/evan/CMS/php-4.0.6/TSRM 
-I/home/evan/CMS/php-4.0.6/TSRM -I/home/evan/CMS/php-4.0.6 
-DNO_DL_NEEDED `./apaci` modules.c
gcc -c  -I./os/unix -I./include   -DLINUX=22 
-I/home/evan/CMS/php-4.0.6 -I/home/evan/CMS/php-4.0.6/main 
-I/home/evan/CMS/php-4.0.6/main 
-I/home/evan/CMS/php-4.0.6/Zend 
-I/home/evan/CMS/php-4.0.6/Zend 
-I/home/evan/CMS/php-4.0.6/TSRM 
-I/home/evan/CMS/php-4.0.6/TSRM -I/home/evan/CMS/php-4.0.6 
-DNO_DL_NEEDED `./apaci` buildmark.c
gcc  -DLINUX=22 -I/home/evan/CMS/php-4.0.6 
-I/home/evan/CMS/php-4.0.6/main 
-I/home/evan/CMS/php-4.0.6/main 
-I/home/evan/CMS/php-4.0.6/Zend 
-I/home/evan/CMS/php-4.0.6/Zend 
-I/home/evan/CMS/php-4.0.6/TSRM 
-I/home/evan/CMS/php-4.0.6/TSRM -I/home/evan/CMS/php-4.0.6 
-DNO_DL_NEEDED `./apaci`\
  -o httpd buildmark.o modules.o 
modules/standard/libstandard.a modules/php4/libphp4.a 
main/libmain.a ./os/unix/libos.a ap/libap.a
-Wl,-rpath,/home/evan/CMS/XML/lib  -rdynamic 
-L/home/evan/CMS/XML/lib -Lmodules/php4 -L../modules/php4 
-L../../modules/php4 -lmodphp4  -lpam  -ldl -lgd -ljpeg 
-lz -lxml -ldb -ldb2 -lgdbm -lz -lcrypt -lresolv -lm -ldl 
-lnsl  -lresolv   -lm -lcrypt -lexpat
make[2]: Leaving directory 
`/home/evan/CMS/apache_1.3.22/src'
make[1]: Leaving directory `/home/evan/CMS/apache_1.3.22'
modules/php4/libphp4.a(php_domxml.o): In function 
`php_xpathptr_new_context':
/home/evan/CMS/php-4.0.6/ext/domxml/php_domxml.c:1607: 
undefined reference to `xmlXPtrNewContext'
modules/php4/libphp4.a

[PHP-DEV] Bug #14075 Updated: PHP/Apache compile with domxml

2001-11-15 Thread evan

ID: 14075
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: DOM XML related
Operating System: RedHat 7.1
PHP Version: 4.0.6
New Comment:

Just want to mention my versions:
libxml2-2.4.10-1
apache-1.3.22
php4.0.6
RedHat 7.1


Previous Comments:


[2001-11-15 17:33:32] [EMAIL PROTECTED]

PHP Configure:

/configure --prefix=/usr --with-config-file-path=/etc 
--disable-debug --enable-pic --enable-shared 
--enable-inline-optimization --with-exec-dir=/usr/bin 
--with-regex=system --with-gettext --with-gd 
--with-jpeg-dir=/usr --with-png --with-zlib --with-db2 
--with-db3 --with-gdbm --enable-debugger 
--enable-magic-quotes --enable-safe-mode --enable-sockets 
--enable-sysvsem --enable-sysvshm --enable-track-vars 
--enable-yp --enable-ftp --enable-wddx --with-mysql 
--without-oracle --without-oci8 --with-xml 
--with-apache=/home/evan/CMS/apache_1.3.22 --with-dom

Apache Configure:

./configure --with-layout=Apache --prefix=/vars/www 
--activate-module=src/modules/php4/libphp4.a

PHP makes fine as does libxml2(I also tried a RH7.1 rpm). 
I also had to do a ln -s to get --with-dom to work 
(originally I pointed --with-dom=/path/to/XML which 
produced identical results as below).
The following is the output of Apache make:


===> src
make[1]: Entering directory `/home/evan/CMS/apache_1.3.22'
make[2]: Entering directory 
`/home/evan/CMS/apache_1.3.22/src'
===> src/os/unix
make[3]: Nothing to be done for `all'.
<=== src/os/unix
===> src/ap
make[3]: Nothing to be done for `all'.
<=== src/ap
===> src/main
make[3]: Nothing to be done for `all'.
<=== src/main
===> src/lib
<=== src/lib
===> src/modules
===> src/modules/standard
make[4]: Nothing to be done for `all'.
<=== src/modules/standard
===> src/modules/php4
make[4]: Nothing to be done for `all'.
<=== src/modules/php4
<=== src/modules
gcc -c  -I./os/unix -I./include   -DLINUX=22 
-I/home/evan/CMS/php-4.0.6 -I/home/evan/CMS/php-4.0.6/main 
-I/home/evan/CMS/php-4.0.6/main 
-I/home/evan/CMS/php-4.0.6/Zend 
-I/home/evan/CMS/php-4.0.6/Zend 
-I/home/evan/CMS/php-4.0.6/TSRM 
-I/home/evan/CMS/php-4.0.6/TSRM -I/home/evan/CMS/php-4.0.6 
-DNO_DL_NEEDED `./apaci` modules.c
gcc -c  -I./os/unix -I./include   -DLINUX=22 
-I/home/evan/CMS/php-4.0.6 -I/home/evan/CMS/php-4.0.6/main 
-I/home/evan/CMS/php-4.0.6/main 
-I/home/evan/CMS/php-4.0.6/Zend 
-I/home/evan/CMS/php-4.0.6/Zend 
-I/home/evan/CMS/php-4.0.6/TSRM 
-I/home/evan/CMS/php-4.0.6/TSRM -I/home/evan/CMS/php-4.0.6 
-DNO_DL_NEEDED `./apaci` buildmark.c
gcc  -DLINUX=22 -I/home/evan/CMS/php-4.0.6 
-I/home/evan/CMS/php-4.0.6/main 
-I/home/evan/CMS/php-4.0.6/main 
-I/home/evan/CMS/php-4.0.6/Zend 
-I/home/evan/CMS/php-4.0.6/Zend 
-I/home/evan/CMS/php-4.0.6/TSRM 
-I/home/evan/CMS/php-4.0.6/TSRM -I/home/evan/CMS/php-4.0.6 
-DNO_DL_NEEDED `./apaci`\
  -o httpd buildmark.o modules.o 
modules/standard/libstandard.a modules/php4/libphp4.a 
main/libmain.a ./os/unix/libos.a ap/libap.a
-Wl,-rpath,/home/evan/CMS/XML/lib  -rdynamic 
-L/home/evan/CMS/XML/lib -Lmodules/php4 -L../modules/php4 
-L../../modules/php4 -lmodphp4  -lpam  -ldl -lgd -ljpeg 
-lz -lxml -ldb -ldb2 -lgdbm -lz -lcrypt -lresolv -lm -ldl 
-lnsl  -lresolv   -lm -lcrypt -lexpat
make[2]: Leaving directory 
`/home/evan/CMS/apache_1.3.22/src'
make[1]: Leaving directory `/home/evan/CMS/apache_1.3.22'
modules/php4/libphp4.a(php_domxml.o): In function 
`php_xpathptr_new_context':
/home/evan/CMS/php-4.0.6/ext/domxml/php_domxml.c:1607: 
undefined reference to `xmlXPtrNewContext'
modules/php4/libphp4.a(php_domxml.o): In function 
`php_xpathptr_eval':
/home/evan/CMS/php-4.0.6/ext/domxml/php_domxml.c:1670: 
undefined reference to `xmlXPtrEval'
collect2: ld returned 1 exit status
make[2]: *** [target_static] Error 1
make[1]: *** [build-std] Error 2
make: *** [build] Error 2






Edit this bug report at http://bugs.php.net/?id=14075&edit=1


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #14075: PHP/Apache compile with domxml

2001-11-15 Thread evan

From: [EMAIL PROTECTED]
Operating system: RedHat 7.1
PHP version:  4.0.6
PHP Bug Type: *Compile Issues
Bug description:  PHP/Apache compile with domxml

PHP Configure:

/configure --prefix=/usr --with-config-file-path=/etc 
--disable-debug --enable-pic --enable-shared 
--enable-inline-optimization --with-exec-dir=/usr/bin 
--with-regex=system --with-gettext --with-gd 
--with-jpeg-dir=/usr --with-png --with-zlib --with-db2 
--with-db3 --with-gdbm --enable-debugger 
--enable-magic-quotes --enable-safe-mode --enable-sockets 
--enable-sysvsem --enable-sysvshm --enable-track-vars 
--enable-yp --enable-ftp --enable-wddx --with-mysql 
--without-oracle --without-oci8 --with-xml 
--with-apache=/home/evan/CMS/apache_1.3.22 --with-dom

Apache Configure:

./configure --with-layout=Apache --prefix=/vars/www 
--activate-module=src/modules/php4/libphp4.a

PHP makes fine as does libxml2(I also tried a RH7.1 rpm). 
I also had to do a ln -s to get --with-dom to work 
(originally I pointed --with-dom=/path/to/XML which 
produced identical results as below).
The following is the output of Apache make:


===> src
make[1]: Entering directory `/home/evan/CMS/apache_1.3.22'
make[2]: Entering directory 
`/home/evan/CMS/apache_1.3.22/src'
===> src/os/unix
make[3]: Nothing to be done for `all'.
<=== src/os/unix
===> src/ap
make[3]: Nothing to be done for `all'.
<=== src/ap
===> src/main
make[3]: Nothing to be done for `all'.
<=== src/main
===> src/lib
<=== src/lib
===> src/modules
===> src/modules/standard
make[4]: Nothing to be done for `all'.
<=== src/modules/standard
===> src/modules/php4
make[4]: Nothing to be done for `all'.
<=== src/modules/php4
<=== src/modules
gcc -c  -I./os/unix -I./include   -DLINUX=22 
-I/home/evan/CMS/php-4.0.6 -I/home/evan/CMS/php-4.0.6/main 
-I/home/evan/CMS/php-4.0.6/main 
-I/home/evan/CMS/php-4.0.6/Zend 
-I/home/evan/CMS/php-4.0.6/Zend 
-I/home/evan/CMS/php-4.0.6/TSRM 
-I/home/evan/CMS/php-4.0.6/TSRM -I/home/evan/CMS/php-4.0.6 
-DNO_DL_NEEDED `./apaci` modules.c
gcc -c  -I./os/unix -I./include   -DLINUX=22 
-I/home/evan/CMS/php-4.0.6 -I/home/evan/CMS/php-4.0.6/main 
-I/home/evan/CMS/php-4.0.6/main 
-I/home/evan/CMS/php-4.0.6/Zend 
-I/home/evan/CMS/php-4.0.6/Zend 
-I/home/evan/CMS/php-4.0.6/TSRM 
-I/home/evan/CMS/php-4.0.6/TSRM -I/home/evan/CMS/php-4.0.6 
-DNO_DL_NEEDED `./apaci` buildmark.c
gcc  -DLINUX=22 -I/home/evan/CMS/php-4.0.6 
-I/home/evan/CMS/php-4.0.6/main 
-I/home/evan/CMS/php-4.0.6/main 
-I/home/evan/CMS/php-4.0.6/Zend 
-I/home/evan/CMS/php-4.0.6/Zend 
-I/home/evan/CMS/php-4.0.6/TSRM 
-I/home/evan/CMS/php-4.0.6/TSRM -I/home/evan/CMS/php-4.0.6 
-DNO_DL_NEEDED `./apaci`\
  -o httpd buildmark.o modules.o 
modules/standard/libstandard.a modules/php4/libphp4.a 
main/libmain.a ./os/unix/libos.a ap/libap.a
-Wl,-rpath,/home/evan/CMS/XML/lib  -rdynamic 
-L/home/evan/CMS/XML/lib -Lmodules/php4 -L../modules/php4 
-L../../modules/php4 -lmodphp4  -lpam  -ldl -lgd -ljpeg 
-lz -lxml -ldb -ldb2 -lgdbm -lz -lcrypt -lresolv -lm -ldl 
-lnsl  -lresolv   -lm -lcrypt -lexpat
make[2]: Leaving directory 
`/home/evan/CMS/apache_1.3.22/src'
make[1]: Leaving directory `/home/evan/CMS/apache_1.3.22'
modules/php4/libphp4.a(php_domxml.o): In function 
`php_xpathptr_new_context':
/home/evan/CMS/php-4.0.6/ext/domxml/php_domxml.c:1607: 
undefined reference to `xmlXPtrNewContext'
modules/php4/libphp4.a(php_domxml.o): In function 
`php_xpathptr_eval':
/home/evan/CMS/php-4.0.6/ext/domxml/php_domxml.c:1670: 
undefined reference to `xmlXPtrEval'
collect2: ld returned 1 exit status
make[2]: *** [target_static] Error 1
make[1]: *** [build-std] Error 2
make: *** [build] Error 2

-- 
Edit bug report at: http://bugs.php.net/?id=14075&edit=1


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]