Stanislav Malyshev | 2 Feb 05:07 2009

Re: [PHP-DEV] memleak in zend_object_handlers.c

Hi!

> I don't yet have a short isolating script, but just wanted to give a
> heads up that I've been getting a memleak in zend_object_handlers.c on
> line 1215 in several scripts running 5.3.0beta1.  The code in questions
> is in zend_std_object_get_class_name:
> 
> *class_name = estrndup(ce->name, ce->name_length);
> 
> This is never freed.  Anyone else seen this leak?

I'd say the client of this function is supposed to free it.
-- 
Stanislav Malyshev, Zend Software Architect
stas <at> zend.com   http://www.zend.com/
(408)253-8829   MSN: stas <at> zend.com

--

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

mike | 2 Feb 09:28 2009
Picon

[PHP-DEV] Quick question about closing PHP tags

There's some discussion going on -discuss about whether or not to
close PHP tags.

The Zend Framework says to not use them...
http://framework.zend.com/manual/en/coding-standard.php-file-formatting.html#coding-standard.php-file-formatting.general

Is there any opinion from the internals/PHP experts on this? Is there
any technical or performance reason to include them or go without
them?

Obviously the bonus is no stupid human error/whitespace type issues
with output buffering and such. But I wanted to know if there's any
opinion either way for any other reasons?

Thanks.

--

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

George Antoniadis | 2 Feb 09:55 2009
Picon

Re: [PHP-DEV] Quick question about closing PHP tags

On Mon, Feb 2, 2009 at 10:28 AM, mike <mike503 <at> gmail.com> wrote:

> There's some discussion going on -discuss about whether or not to
> close PHP tags.
>
> The Zend Framework says to not use them...
>
> http://framework.zend.com/manual/en/coding-standard.php-file-formatting.html#coding-standard.php-file-formatting.general
>
> Is there any opinion from the internals/PHP experts on this? Is there
> any technical or performance reason to include them or go without
> them?
>
> Obviously the bonus is no stupid human error/whitespace type issues
> with output buffering and such. But I wanted to know if there's any
> opinion either way for any other reasons?
>
> Thanks.
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
While on this subject, would it be a waste of time to suggest a file
extension or include/require parameter that would consider a whole file as
php even if there is no starting <?php tag?
Would save a lot of people from bothering with leading whitespaces, BOM,
etc.

(Continue reading)

internals | 2 Feb 10:30 2009
Picon
Picon

[PHP-DEV] PHP 5 Bug Summary Report

 PHP 5 Bug Database summary - http://bugs.php.net/

 Num Status     Summary (1290 total -- which includes 793 feature requests)
===============================================[*Directory/Filesystem functions]
46990 Assigned   Passing UTF8 strings to filesystem functions produce wrong filenames
===============================================[Apache2 related]==============
32220 Assigned   [PATCH] thread_resources for thread not getting freed when apache kills thread
44625 Assigned   php.ini doesn't show changed variable value for extension_dir and include_path
46479 Open       virtual() prints output to browser
46481 Open       apache_lookup_uri() draws blank if Apache auth enabled
===============================================[Arrays related]===============
46283 Open       array_merge_recursive() Warning recursion detected in...
47221 Open       no result from array_diff()
47252 Feedback   Memory corruption bug in extract()
===============================================[BC math related]==============
44995 Open       bcpowmod() using a scale function always returns 0
46564 Open       bcmod( '1071', '357.5' ) returns '0'
===============================================[Bzip2 Related]================
29521 Assigned   compress.bzip2 wrapper
===============================================[Calendar related]=============
40213 Suspended  easter_date() returns wrong timestamp if ...
44474 Open       GregorianToJD wrong return value
===============================================[CGI related]==================
43313 Open       getopt doesn't handle unknown parameters.
45217 Open       crash if -z and -m are used together
46305 Open       Exception handler not invoked when using -r command line option
===============================================[Class/Object related]=========
45199 Assigned   Serializing objects with private properties
45281 Assigned   each on objects shows private and protected properties
46140 Open       Unserializing with __wakeup that removes child causes subsequent refs to shift
(Continue reading)

zoe | 2 Feb 10:49 2009

PHP TestFest 2009

Hi all

I apologise for spamming both lists with this and also having blogged 
first, I intended then all to go at the same time :-). We (Lukas, Scott, 
Pierre and others ) have been talking about this a little on IRC and I 
updated the QA web pages a while ago. We thought it was time to be a bit 
more public. I have appended a copy of my  my blog entry below.

As far as mentors go, I've said 'let me know on the IRC channels if you 
can help' - what I probably meant was watch out because we'll be 
pestering you for help on those channels :-). We'll also be putting up a 
list of things to do on the TestFest wiki 
(http://wiki.php.net/qa/testfest), help with any of them will earn 
undying gratitude and your choice of beverage when I next see you.

*PHP TestFest 2009*

It's time to start getting the 2009 PHP TestFest underway. The TestFest 
is a worldwide event in which PHP user groups and individuals contribute 
to PHP by writing tests for PHP. It's a great way to contribute to one 
of the most successful open source projects there has ever been, it's 
also pretty cool to see your name in the the source distribution for 
code that's running on over 20 million web domains.

So how does it work?

User groups can register by sending a mail to php-qa <at> lists.php.net. In 
the mail we'd like you to pick an date for your event (somewhere between 
April 1st and June 30th), it would be great if you could let us have the 
name and e-mail for the primary contact too. As these arrive on the QA 
(Continue reading)

Brian Moon | 2 Feb 21:37 2009

Re: [PHP-DEV] Quick question about closing PHP tags

On 2/2/09 2:55 AM, George Antoniadis wrote:
> While on this subject, would it be a waste of time to suggest a file
> extension or include/require parameter that would consider a whole file as
> php even if there is no starting<?php tag?
> Would save a lot of people from bothering with leading whitespaces, BOM,
> etc.

See 2001: http://marc.info/?t=99986406900001&r=1&w=2

-- 

Brian Moon
Senior Web Engineer
------------------------------
When you care enough to spend the very least.
http://dealnews.com/

--

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

George Antoniadis | 2 Feb 23:17 2009
Picon

Re: [PHP-DEV] Quick question about closing PHP tags

On Mon, Feb 2, 2009 at 10:37 PM, Brian Moon <brianm <at> dealnews.com> wrote:

> On 2/2/09 2:55 AM, George Antoniadis wrote:
>
>> While on this subject, would it be a waste of time to suggest a file
>> extension or include/require parameter that would consider a whole file as
>> php even if there is no starting<?php tag?
>> Would save a lot of people from bothering with leading whitespaces, BOM,
>> etc.
>>
>
> See 2001: http://marc.info/?t=99986406900001&r=1&w=2
>
> --
>
> Brian Moon
> Senior Web Engineer
> ------------------------------
> When you care enough to spend the very least.
> http://dealnews.com/
>

Damn that thread was from the stone ages... People top posted then ha? nice
:P

The thread suggested an option (-p or -S) for the CLI that would not require
the php files to have <? ?> tags...
AFAIK this is currently not implemented and I could not see anywhere in the
thread someone dismissing the concept so...

(Continue reading)

D. Dante Lorenso | 3 Feb 03:24 2009

Re: [PHP-DEV] Quick question about closing PHP tags

George Antoniadis wrote:
> On Mon, Feb 2, 2009 at 10:37 PM, Brian Moon <brianm <at> dealnews.com> wrote:
> 
>> On 2/2/09 2:55 AM, George Antoniadis wrote:
>>
>>> While on this subject, would it be a waste of time to suggest a file
>>> extension or include/require parameter that would consider a whole file as
>>> php even if there is no starting<?php tag?
>>> Would save a lot of people from bothering with leading whitespaces, BOM,
>>> etc.
>>>
>> See 2001: http://marc.info/?t=99986406900001&r=1&w=2
>>
>> --
>>
>> Brian Moon
>> Senior Web Engineer
>> ------------------------------
>> When you care enough to spend the very least.
>> http://dealnews.com/
>>
> 
> Damn that thread was from the stone ages... People top posted then ha? nice
> :P
> 
> The thread suggested an option (-p or -S) for the CLI that would not require
> the php files to have <? ?> tags...
> AFAIK this is currently not implemented and I could not see anywhere in the
> thread someone dismissing the concept so...
> 
(Continue reading)

internals | 2 Feb 11:00 2009
Picon
Picon

[PHP-DEV] PHP 6 Bug Summary Report

 PHP 6 Bug Database summary - http://bugs.php.net/

 Num Status     Summary (77 total -- which includes 32 feature requests)
===============================================[*General Issues]==============
26771 Suspended  register_tick_funtions crash under threaded webservers
===============================================[Apache related]===============
47061 Open       User not logged under Apache
===============================================[Apache2 related]==============
44083 Open       virtual() not outputting results if zlib.output_compression = On
===============================================[Arrays related]===============
35277 Suspended  incorrect recursion detection
41758 Assigned   SORT_LOCALE_STRING broken for sort() in PHP6
43109 Open       array_intersect() emits unexpected no of notices when 2d array is passed as arg
===============================================[Class/Object related]=========
41461 Assigned   E_STRICT notice when overriding methods not defined by an Interface in hierarchy
===============================================[COM related]==================
45836 Open       cannot use com 
46909 Open       COM object not allowing calls to methods
===============================================[Compile Failure]==============
42606 Open       unicode/constants.c relies on ICU draft api
44502 Suspended  Compiling ok with MySQL 5.0
===============================================[Filesystem function related]==
42110 Open       fgetcsv doesn't handle ""\n correctly in multiline csv record
44034 Open       FILE_IGNORE_NEW_LINES in FILE does not work as expected when lines end in \r\n
46688 Open       Return values differ from 5.3 and are also inconsistent
46689 Open       Downcoded notices suggest unfinished code in file system?
===============================================[GD related]===================
34670 Assigned   imageTTFText for Indian scripts (Devanagari)
34992 Assigned   imageconvolution does not respect alpha
===============================================[I18N and L10N related]========
(Continue reading)

Karsten Dambekalns | 3 Feb 10:44 2009

[PHP-DEV] Re: Quick question about closing PHP tags

Hi.

On 02.02.2009 9:28 Uhr, mike wrote:
> There's some discussion going on -discuss about whether or not to
> close PHP tags.
  ...
> Obviously the bonus is no stupid human error/whitespace type issues
> with output buffering and such. But I wanted to know if there's any
> opinion either way for any other reasons?

If I expect human errors with whitespace, I better not trust the code.

Honestly, how hard is it to simply start and end your files with <?php 
and ?> and never write HTML and PHP mixed? MVC was mentioned, and 
templating is already some years old as well.

I don't get it, why would I want this? If the tags never had been 
needed, fine, but now...

Regards,
Karsten

PS: Let the idea grow for another eight years! :)

--

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


Gmane