Cookies op Tweakers

Tweakers maakt gebruik van cookies, onder andere om de website te analyseren, het gebruiksgemak te vergroten en advertenties te tonen. Door gebruik te maken van deze website, of door op 'Ga verder' te klikken, geef je toestemming voor het gebruik van cookies. Wil je meer informatie over cookies en hoe ze worden gebruikt, bekijk dan ons cookiebeleid.

Meer informatie

Door , , 11 reacties
Bron: PHP.net

Peerke en ChiLLeR hier bekijken. Op moment van schrijven is alleen de sourcecode (2,3MB) te downloaden, houd PHP.net in de gaten voor de executables. Hier een hap uit het changelog:

  • Fixed/created support for Solid 3.0 databases (kalowsky)
  • Added OpenSSL extension (Stig Venaas)
  • Allow user to use mysql_use_result in mysql queries (Stas)
  • Fixed mysql_close(), pg_close(), msql_close() and sybase_close() - they weren't properly closing the SQL connections (Zeev)
  • Added CORBA client extension, ready for use (eriksson@php.net)
  • Updated ext/mysql/libmysql to version 3.23 (tim@mysql.com)
  • Added IIS Admin extension. (Frank)
  • Fixed a bug that caused PHP not to properly flush its output buffer, if more than one output buffer was used. (Zeev)
  • Fixed a bug that could draw the shutdown sequence of the PHP Apache module into an endless loop, under certain circumstances. It could cause Apache processes under Solaris to get stuck, especially when using output buffering. (Zeev)
  • Fixed a memory leak that would occur when restarting Apache often (mookid@sigent.ru)

Lees meer over

Versienummer:4.0.4
Besturingssystemen:Windows 9x, Windows NT, Windows 2000, Linux
Website:PHP.net
Download:http://www.php.net/do_download.php?download_file=php-4.0.4.tar.gz&source_site=www.php.net
Moderatie-faq Wijzig weergave

Reacties (11)

En voor de mensen die niet zosnel kenne upgraden:

function ob_mygz_handler($string) {
$Return = "\x1f\x8b\x08\x00\x00\x00\x00\x00";
$Size = strlen($string);
$Compressed = gzcompress($string, 9);
$Return .= substr($Compressed, 0, strlen($Compressed) - 4);
$CRC = crc32 ($string);
$Return .= pack('V', $CRC);
$Return .= pack('V', $Size);
return $Return;
}

header("Content-Encoding: gzip");
ob_start("ob_mygz_handler");


--KePZ
if (strpos($HTTP_ACCEPT_ENCODING,'gzip') !== (false) {
header("Content-Encoding: gzip");
ob_start("ob_mygz_handler");
}

Om problemen met oude browsers te voorkomen, deze kleine aanvulling.
Check hier voor de windoos binaries:

www.mm4.de/php4win/download/php4.0.4-dev-win32-20001123.zip

Komt van www.php4win.de

[update]

Never mind! Dit ding is nog erg gaar en levert constant crashes! |:(

(Maar de HTTP compressie werkt very nicely! ;))

[/update]
PHP 4.04 ondersteund nu 'native' gzip/deflate http compression, dus dat scheelt weer wat overhead aan php code om het "handmatig" te doen...
In PHP 4.0.4, a new function has been introduced ob_gzhandler(). This function is designed to check the Content-Encoding header for deflate or gzip, and automatically compresses the output using the supported encoding. Using it is as simple as turning output buffering on, and setting it as the output handler function:


ob_start("ob_gzhandler");

or, in php.ini:

output_handler = ob_gzhandler ; turn on HTTP compression for PHP content
:Y)
hmm.. gaat wel errug traag, dat neerhalen..
maja, jullie mogen hem ook wel www.student.utwente.nl/k.hoekzema/php-4.0.4.tar.gz gebruiken (gaat tenminste snel :)
Ik vind 293KB/s niet traag eigenlijk :P

Ik doe ./configure en dan begint tie te blaten dat lex er niet is ofzo?![quote]
[root@www.php-4.0.4]# ./configure --with-mysql --with-apxs
loading cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... missing
checking for working autoconf... missing
checking for working automake... missing
checking for working autoheader... missing
checking for working makeinfo... missing
checking whether to enable maintainer-specific portions of Makefiles... no
checking host system type... i586-pc-linux-gnu
checking for gawk... gawk
checking for bison... no
checking for byacc... no
configure: warning: You will need bison if you want to regenerate the PHP parsers.
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking for AIX... no
checking for gcc option to accept ANSI C... none needed
checking for ranlib... ranlib
checking whether gcc and cc understand -c and -o together... yes
checking whether ln -s works... yes
checking for flex... no
checking for lex... no
./configure: flex: command not found
checking for flex... lex
checking for yywrap in -ll... no
checking lex output file root... ./configure: lex: command not found
configure: error: cannot find output from lex; giving up
[root@www.php-4.0.4]#[/quote]
:) Opgelost:
rpmfind.net/linux/rpm2html/search.php?query=flex

:( Nieuw probleem:
[root@www.php-4.0.4]# make
Making all in Zend
make[1]: Entering directory `/root/php-4.0.4/Zend'
/bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main -DXML_BYTE_ORDER=12 -g -O2 -c zend_language_scanner.c
In file included from zend_globals.h:27,
from zend_compile.h:209,
from zend_language_scanner.c:2624:
zend_globals_macros.h:3: redefinition of `zend_compiler_globals'
zend_globals_macros.h:3: `zend_compiler_globals' previously declared here
zend_globals_macros.h:4: redefinition of `zend_executor_globals'
zend_globals_macros.h:4: `zend_executor_globals' previously declared here
zend_globals_macros.h:5: redefinition of `zend_alloc_globals'
zend_globals_macros.h:5: `zend_alloc_globals' previously declared here
In file included from zend_fast_cache.h:46,
from zend_globals.h:33,
from zend_compile.h:209,
from zend_language_scanner.c:2624:
zend_globals_macros.h:3: redefinition of `zend_compiler_globals'
zend_globals_macros.h:3: `zend_compiler_globals' previously declared here
zend_globals_macros.h:4: redefinition of `zend_executor_globals'
zend_globals_macros.h:4: `zend_executor_globals' previously declared here
zend_globals_macros.h:5: redefinition of `zend_alloc_globals'
zend_globals_macros.h:5: `zend_alloc_globals' previously declared here
In file included from zend_language_scanner.c:2629:
zend_operators.h: In function `is_numeric_string':
zend_operators.h :74: `ERANGE' undeclared (first use in this function)
zend_operators.h :74: (Each undeclared identifier is reported only once
zend_operators.h :74: for each function it appears in.)
zend_language_scanner.c: In function `lex_scan':
zend_language_scanner.c:3985: `ERANGE' undeclared (first use in this function)
make[1]: *** \[zend_language_scanner.lo] Error 1
make[1]: Leaving directory `/root/php-4.0.4/Zend'
make: *** \[all-recursive] Error 1
Emmm, jouw compileproblemen interesseren me eigenlijk geen fuk (niet op dit forum ;))....
<?
print "beters";
?>

Op dit item kan niet meer gereageerd worden.



Apple iOS 10 Google Pixel Apple iPhone 7 Sony PlayStation VR AMD Radeon RX 480 4GB Battlefield 1 Google Android Nougat Watch Dogs 2

© 1998 - 2016 de Persgroep Online Services B.V. Tweakers vormt samen met o.a. Autotrack en Carsom.nl de Persgroep Online Services B.V. Hosting door True